Apache And Mysql As Services
Just for those that don't know, An easy way to start and stop windows
services such as apache and mysql if you don't want them to automatically
run would be to enter the followin a batch file and then setting up a
shortcut on the desk top for it.
@echo off
net start Apache2
if ERRORLEVEL 1 (
net stop MySQL
net stop Apache2
) ELSE (
net start MySQL
)
This will toggle apache on and off and make sure mysql is running along with
it. If Apache2 is running then it will stop it. It will also sync MySQL to
the state of Apache2.
Just a simple few lines of code that might make it easier than manually
starting and stoping through admin services.
View Complete Forum Thread with Replies
Related Forum Messages:
- Web Services & PHP
- How To Run Xml-rpc Or Other Web Services
- Web Services
- .Net Web Services
- Php Web Services
- Web Services Using PHP
- Xml-php Web Services
- Creating Web Services In Php
- How To Get Started With Web Services?
- Web Services Class
- Web Services Behind Proxy
- Soap Web Services
- PDF's In Services Pages
- Offering PHP Services
- Sharepoint Services
- Different Services Are Running
- Web Services - Argument Against PHP
- Understanding Web Services
- How To Consume Web Services
- How To Return And Array In Php Web Services?
- Problem Securing Web Services In PHP
- Website For Mobile Services
- Services Web Site & Spiders
- Web Services Requests Using Nusoap
- Amazon-Web Services Without Fopen () - Is That Possible
- PHP/MySQL/Apache
- Php/apache/mysql On RH 7.2
- Apache/mySQL/PHP On XP
- Apache 2.0, Php 5 And Mysql + Win Xp
- Mysql/php/apache
- Apache 2.0 + Php 5.2 +mysql 5
- How To Set Up Apache/mysql/php
- MySQL With Apache 2.2.4
- Apache 2.0.52, MySQL 5.0.0
- Sending Java Classes To Web Services From PHP
- Why Php Web Progam Will Generate Port 113 Services ?
- Web Services : Passing Variables By Reference ??
- For Permanent Services, Is Java Preferable To PHP?
- Amazon Web Services Without Fopen - Doable
- Install Apache,MySQL And PHP
- PHP, Apache, MySQL, Dreamweaver MX
- Can't Get Php And Mysql To Cooperate On Apache
- MySQL, PHP, And Apache Configuration.
- Compliling Apache With Php And MYSQL
- Installing Apache+mysql+php
- Apache 1.3.14, PHP 4.0, MYSQL And Win98
- PHP/MySQL/Apache Uninstall
- Using Sessions And MySQL In Apache
- Question About Apache+Php+MySql
- Installing Php, Mysql, Apache
- PHP/MySQL/Apache Documentation.
- Install Apache PHP And MySQL
Web Services & PHP
I work for a web application company and we currently have a web service set up and working correctly using ColdFusion. I've been given the honor of figuring out how to do it in PHP. Currently, our app generates the XML code needed to run the webservice correctly in CF. Then through a little editing, our clients are able to create their own form & host it on their server and by using the web service, submit information to our application to a database that is set up to receive it. I've been trying to figure out how to do this in php for about 3 weeks now, and have had no luck at all. We were able to get a web service running correctly from php for a different application, but I just can't figure this one out. I've been through google many times and all the articles seem to point back to a single source, which I still can't figure out.
View Replies !
.Net Web Services
New on PHP and I have a problem, I'm making __call to a web .Net Web service and I have responde but is structure like that stdClass Object ( [schema] => [any] => "The Information that web service responce" ) ; But I dont know how separte the data from to read a specific field.
View Replies !
Php Web Services
I m using nusoap library to call a webservice publishe in.net. it is not a normal webservice. it is a security enabled webservice. that means before peform any transaction we have to authenticate with it. they have provided simple vb. net code for authentication. so what I want to know is how to implement that authentication part using nusoap.vb.net code is as follows. Dim token As UsernameToken token=New UsernameToken("UserID", "Password",PasswordOption.SendHashed) proxy.RequestSoapContext.Security.Tokens.Add(token) ws.GetRoles(); // where ws is webservice object
View Replies !
Web Services Using PHP
I'm starting to get into web services and kinda of a newbie at this, could any of you tell me how I could go about using a web service to calculate the distance between two postal / zip codes? I'm building a webpage that has a list of store addresses and what i'm trying to do is take an a zipcode/postal input from the web user and it will find the closest address.
View Replies !
Xml-php Web Services
I have to implement a web service that you give p.o box number and returns the names of theaters that exist in this p.o box number and the name of the movies that are playing. i have to implement this web service to xml and php (as i think that is the most easy) if someone has a better opinion just tell it i just want to say that we speak about a newbie in programming and the time is not too much for learning too many new and difficult things.
View Replies !
How To Get Started With Web Services?
I have a project that would be perfect to use a web services architecture. Although I've never done anything with web services. I've been doing quite a bit of reading on how to create a web service with PHP and I got about 10 different ways to do them. So my question is, what is the absolute best way to create a web service using PHP. Do you know of any good books, article, tutorials, etc. that would help with this issue? I just need to be pointed in the right direction so I can start reading and playing around with them.
View Replies !
Web Services Class
I'm looking for a good and reliable class to build a SOAP server in PHP. So far I've only found nuSoap and Pear::Soap. Which one would you recommend to use?
View Replies !
Web Services Behind Proxy
I was trying out nusoap by using it with google search web services. After a few unsuccessful tries I figured out the problem was not with my code but with my connectivity. I am behind an proxy and my scripts don't work 'cos of that. I tried disconnecting from the network and connected to another network and my scripts worked fine. Is there any way we can specify the proxy address when connecting to web services?
View Replies !
Soap Web Services
I'm trying to call a function from my webservice that I know works. I've called all the functions through php4 using nusoap and everything's good. I'm not sure of the syntax in php5 though. When I call my createUser web service function with an array of the users details I get this exception: Code:
View Replies !
PDF's In Services Pages
I wan't your opinion for a optimization for PHP code. The ideia is when I insert a new service in the administration, the service is inserted in DB and is writed in a file with a number and the name. A webdesigner, that doesn´t understand PHP, with base on file, must reference the number of the service in HTML code, in some way that it goes at DB looking for the reference of a pdf file for show in a page. I have a PHP function ready, but how can i put the numbers in it,with the reference may be in XML? More Ideias?
View Replies !
Offering PHP Services
I have written about 5-6 scripts. I want to offer them as a service on my site. How can I include a php file via javascript? I want the php to be parsed, and the output to be sort of, echoed using javascript. I have searched for a solution on google and what i came up with was: <script language=javascript src="http://www.example.com/scripts/FastNEWS/view.php" type="text/javascript"></script> but that didn't work.
View Replies !
Sharepoint Services
I dont like using MS Access for a web based app so i decided to learn php and mySql. But in order for me to be able to use it I need it to be able to communicate with Microsoft Sharepoint Services.
View Replies !
Different Services Are Running
Can we write something in PHP to find out if different services on the Linux machine are running, the three most important ones which i would run the script for, are, httpd Mysql Bind (dns) ?
View Replies !
Web Services - Argument Against PHP
Since I am trying to convince a teacher of mine to include Web Services / SOAP and PHP as a compulsory optional subject for the next term I've spent quite some thinking about reasons to use PHP when implementing web services. His main argument against PHP is that every enterprise uses .net and java for web services anyway and that there does not seem to be a reason to use PHP at all. Code:
View Replies !
Understanding Web Services
I have used the Yahoo! Maps and the Google Maps API. Though neither of really require any server side scripting, Yahoo! offers a REST based service where if you send a URL with an address in it, and you get back an XML file containing detail about the zip code. The XML could then be parsed using something like the SimpleXML module of php. I simply used fopen to open the URL and sent the contents of the opened file into another file and that file had the XML details returned. Code:
View Replies !
How To Consume Web Services
We are trying to consume webservices using php. The webservices are from a third party, which they built it in .net. My question is how to consume those web services using php.?
View Replies !
Problem Securing Web Services In PHP
I'm trying to get https to work for Web Services in PHP. I've installed PHP 5.0.5 with the following configuration line: ../configure --with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs --with-gd=/usr/local/src/ --with-gd --with-freetype-dir=/usr --enable-gd-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib --with-zlib --with-lib-xml --with-lib-xsl --enable-soap --with-open-ssl --with-curl=/usr/local/bin/curl --with-curlwrappers I'm able to open https streams with fopen, I've even connected to WSDLs with fopen and https. I'm able to open and use non-https web services with the SoapClient. I am unable to open any https web services with SoapClient. For example, trying to run this script: http://playground.jwscripts.com/php...dwords-api.phps results in a fatal exception on my server. Unfortunately I'm not at liberty to divulge the URL for the server. But, here is the (doctored) output: SoapFault exception: [HTTP] Could not connect to host in /usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php:39 Stack trace: #0 /usr/local/apache/sites/website.com/htdocs/soap/soaptestscript.php(39): SoapClient->__doRequest('__soapCall('estimateKeyword...', Array, NULL, Array) #2 {main}
View Replies !
Services Web Site & Spiders
I am in the process of building a new web site that provides a listing of services (salons, dry cleaners, etc...) for a given City/State. The goal is to provide a site where people can find services in their area without having to use Google and scroll through hundreds of invalid links. I would like to populate a database with a listing of all these services that were found doing searches and have the new web site query this database and display the results for a given City / State. how can I automatically populate this database? Do I need to write a spider to do this? If so, should I use PHP for the spider? If not a spider, what other methods can I use?
View Replies !
Web Services Requests Using Nusoap
am looking at constructing a request in the following format. I have used the following code - $result = $client->call('login', array('username' ='Scott', 'password' >= '****', 'softwareid' = 5, 'vendorid' = 7, 'locationid' = 9)); ,but I am unsure to where put the request tag in my code. Can you please assist? The web service request must be in the format below. soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <login xmlns="http://www.betfair.com/publicapi/v3/BFGlobalService/"> <request> <locationId xmlns="">0</locationId> <password xmlns="">yyyy</password> <productId xmlns="">0</productId> <username xmlns="">xxx</username> <vendorSoftwareId xmlns="">0</vendorSoftwareId> </request> </login> </soap:Body> </soap:Envelope>
View Replies !
Amazon-Web Services Without Fopen () - Is That Possible
want to run a AWS product feed and - unfortunatley my server is limited - it is configured with allow_url_fopen to off! that means: i may have troubles to process requests - since (in my humble opinion) Amazon web services only function with the fopen-option: is this correct. Does any AWs (even in the new standard ecs 4 ) make usage of the fopen - function? Code:
View Replies !
PHP/MySQL/Apache
I got PHP MySQL and Apache all running on my local development machine, and have now written some useful code that runs fine locally. The problem is that now i have to make it work on the companies server, or my supervisor will look a bit dumb, as will I. What i need help with is what to do to make php which is on the same server, talk to MySQL and fetch/write the data it needs to. Could anyone give me idiot-proof help with making this work? From looking at other posts and some literature i have made a guess that its to do with the part where i go: <? mysql_connect ('localhost', 'user', 'password'); mysql_select_db (dbname); ?> But i'm not sure a: what to change the localhost to when its on the server. and b: if i need to make changes to any other files, especially server files.
View Replies !
Php/apache/mysql On RH 7.2
I am trying to install php/apache/mysql on RedHat 7.2 I know that the default install does not work properly with MySQL If you choose to install apache, mysql, and php with the default install everything works great. Except. When I go to check out the php setup using phpinfo() I see the dreaded --without-myql at the end of the configure section of the phpinfo page. I've tried to install from the source files from a few different sites that give you instructions on installing from source. but they seem to be all for older operating systems. Is there anybody here that has got php and mysql working in RedHat 7.2. Are there specific instructions for RH 7.2 somewhere.
View Replies !
Apache/mySQL/PHP On XP
I am looking for some sort of easy-to-install binary package to get an environment ready for PHP development on XP. I am starting the development of a site, starting with learning PHP and design etc. The final site will run on some sort Linux/*nix, but for the purpose of the first development phase I will have to use Windows. I know the FoxServ package, but it seems to be very slowly updated. I saw other things (Google) but they seem to be a one-man-show, not really promising if I need to keep an up to date environment for a year or more. I am looking for a precompiled environment with installation, because I do not want to get into too many details of compilation/configuration at the beginning. I will have enough work with learning PHP and designing the site. :-) Do you guys have any suggestions for such an environment?
View Replies !
Apache 2.0, Php 5 And Mysql + Win Xp
I am trying to run and configure Apache 2.0, php 5 and mysql on win xp professional - this is the first time I have tried to install and configure all three. I am having difficulty trying to configure them on my computer. Can somebody help me - this is what I have done so far. Installed Apache 2.0, it worked perfectly ( I checked with my browser - http://localhost) till the point where I started to point where I wanted to store my html files. I have named the folder html_files and have changed the DocumentRoot "C:/html_files" and <Directory "C:/html_files/htdocs"> on the configuration file. And now it does not work (http://localhost does not work). I get an error message saying "You don't have permission to access / on the server". What am I doing wrong? Also I have installed and configured php 5, renamed Rename e:phpphp.ini-dist it to php.ini and enterd the following on the apache configuration file LoadModule php5_module "c:/php/php5apache2.dll" AddType application/x-httpd-php .php PHPIniDir "c:/php"
View Replies !
Mysql/php/apache
I run a high traffic website, one of the issues we have hit is we run out of available ports due to the way apache/php/mysql work together when apache and mysql are on diffrent servers. It seems when apache closes the connection to mysql it sits in TIME_WAIT for quite some time. Now when a few 1000 people are on the site that eats up all the ports. Now as a temp fix I upped the amount of ports available for this. However it will obviously happen again. Once all the ports are gone the machine load spirals out of control and it locks up even at the console. One thing that been suggested is to use pconnect, is this the best soloution or are others avaiable. We already have a load balencer and two servers, I don't want to just throw servers when theres cpu and ram resouces spare. I'm sorry if this isn't quite the right section, as it covers LAMP in general I guess. It's RHEL 4 with PHP 5, eaccelerator, stock apache and 64 bit stock mysql.
View Replies !
Apache 2.0 + Php 5.2 +mysql 5
i'm having problems the website laods and all but it wont comunecate whit the database it keeps saying i nead to update my sql version evendo i have the curent version. this is in my httpd.conf PHPIniDir "D:/WebServer/PHP/" LoadModule php5_module "D:/WebServer/PHP/php5apache2_2.dll" AddHandler application/x-httpd-php .php my php.ini has extension=php_mysql.dll enabled.
View Replies !
How To Set Up Apache/mysql/php
I followed the steps in a book i bought on how to set up apache/mysql/php. I went through each step however i am running into a problem. When i try to view php files through my localhost i get a save/open dialog box. if i choose save it simply get saved to my desktop and if i choose open, then it opens in dreamweaver.
View Replies !
Apache 2.0.52, MySQL 5.0.0
I'm having a little trouble getting MySQL to load with Apache. Apache and PHP are working OK, but MySQL isn't loading. I know php.ini is loading because the following lines are in php.ini: extension_dir = "C:Program FilesPHP" extension=php_mysql.dll and the error I get when Apache starts up is: PHP Startup: Unable to load dynamic load library 'C:Program FilesPHPphp_mysql.dll' - The specified procedure could not be found. php_mysql.dll is definitely there. This same setup ( MySQL 5.0.0, PHP 5.01) works unchanged with the Abyss Web Server, so I know MySQL and PHP are set up OK.
View Replies !
Sending Java Classes To Web Services From PHP
I require to call some web service from PHP scripts. The services use a SOAP interface. So I included NuSoap (brilliant script!) and away I went, using the WSDL files creating a proxy and calling functions. All going so well until .......... The web services are running in Java. All the functions I have tried so far do not have any input parameters and the returned values are simple String arrays or integers. The next function I try requires object as the input ........ I have looked at the Java extention of PHP but I have problems here also, in that my ISP where the PHP scripts are to run does not have the PHP-Java extension or Java on the servers. So my question is this ....... As I want the Java Classes for storage only (no functions), can I emulate this function in PHP without the native JVM installed on the server ie. the data passed over the SOAP interface should mimic the Java object.
View Replies !
Why Php Web Progam Will Generate Port 113 Services ?
why php web progam will generate port 113 services? http://www.dslreports.com/faq/225 in 0600, I browsed the company's web pages that I designed from home, I noticed the linksys router generated incoming 113 port with the company ip address of the remote web server. I understand these web pages caused "hold-up" in normal business hours. Other pages are ok. All the "hold-up" web pages are written in php and they are editing ( modify) data program. should I open 113 in the application firewall script. and why php will generate 113 port services in the redhat 7.3 box. In "setup" the "ident" services does not checked ( not in service), why it still request "113 port services"??
View Replies !
Web Services : Passing Variables By Reference ??
I'm trying to write a script that deals with a web service. I'm using NuSoap class. my question is : Can I pass some variables By Reference to the web service and get the result back in my variables ?? note1: I'm not the one who wrote the web service.. so I can't modify it. note2: the web services is written using .NET
View Replies !
For Permanent Services, Is Java Preferable To PHP?
I want to offer my friends a ping service, where certain of their pages will be called once a week. My impression is that no PHP script can be made to run very long. Assuming a situation where I don't have access to cron, should I write the service as Java application and set it to run forever on my webserver? Or let's put it another way. Assume I want to write a remind service, where people are reminded of friend's birthdays. Should I assume this is better done in Java than PHP?
View Replies !
Amazon Web Services Without Fopen - Doable
well i have some troubles i want to run a AWS product feed and - unfortunatley my server is limited - it is configured with allow_url_fopen to off! that means: i may have troubles to process requests - since (in my humble opinion) Amazon web services only function with the fopen-option: is this correct. Does any AWs (even in the new standard ecs 4 ) make usage of the fopen - function? Code:
View Replies !
Install Apache,MySQL And PHP
I may sound like a newbie, but I've started my new job and we are running on Windows XP where previously I was using LINUX , and now I want to install Apache,MySQL and PHP, not done this for a while. Been to php.net but confused as to which one to download, any helpers? Also where to install the other stuff.
View Replies !
PHP, Apache, MySQL, Dreamweaver MX
How to get it all to work!!! I've tried looking at docs, and notepad files, and text and manuals..I'm lost. I'm not sure how to set them all up to run with each other, and get DMX to recognize the apache server, and what to config, and edit and all that mess.
View Replies !
MySQL, PHP, And Apache Configuration.
Hi, I was just wondering if anyone could help me to configure my home machine to run as a test server for PHP using MySQL and Apache. I am running WinXP pro and I would really appreciate some help. (I'm trying to learn PHP before paying the moola for a host, only to make a fool of myself while trying to learn PHP. I don't see any logic in paying for time to learn, when I could do it for free at home and then pay for a host...) I would be very thankful if you would imagine that I had just downloaded the files from their appropriate sites, and haven't even opened them yet. A walkthrough of the installation etc... The main part I've been having trouble with is editing the httpd.conf file for Apache;
View Replies !
Installing Apache+mysql+php
redhat 7.1 but all the three apps(apache,mysql,php) are tar.gz format. When I configure php with the --with-pspell=/usr/local/pspell option, I got the error "pspell/pspell.h no such file or directory". pspell.h is in the directory /usr/local/pspell/include/. If I omitted that option, installation was ok. Can somebody tell me why? and how to fix it?
View Replies !
Apache 1.3.14, PHP 4.0, MYSQL And Win98
I have installed and working Apache and php 4.0. I would like to get mysql working too. I ran the phpinfo file using PHP 4.0 and I did not get the MYSQL extensions in the resulting table. I subsequently - after changing my http.conf file - ran the phpinfo file using PHP 3.0.16 and got the MYSQL extension showing up in the table. Why isn't the mysql extensions showing up under PHP 4.0?
View Replies !
PHP/MySQL/Apache Uninstall
I have tried multiple times to install a secure MySQL/PHP/Apache application on Red Hat 7.2 but I keep on running into issues. I want to give it another try and I am wondering how to uninstall past installations of apache/php/mysql. My targets have always been /usr/local/[APP]. Do I just need to remove the /usr/local/[APP] directories that were created during the installation.
View Replies !
Using Sessions And MySQL In Apache
I have installed Apache with mySQL and PHP on my computer at home. When I upload my mySQL db to my internet server, I need a password and username to access it, but how can I make my db on my computer get protected by the same password and username? When I use a script with sessions and db conectivity on my computer I get this message I have tried the script on my webserver on the net, so I know it works...) Any Ideas? Warning: MySQL Connection Failed: Access denied for user: 'domain@localhost' (Using password: YES) in c:/apache/apache/htdocs/hardware_decks_show.php on line 4 Couldn't connect to server. Warning: open(/tmpsess_cd2450ed9f7b3de8b070e24ca7a6b690, O_RDWR) failed: m (2) in c:/apache/apache/htdocs/shop/type.php on line 4
View Replies !
Question About Apache+Php+MySql
I setup a LAMP enviroment on my laptop, and did related config on my apache and linux as well. But each time I visit my http://localhost, I was only been brought to index.html instead of index.php. Only when I tpye http://localhost/index.php, I can open the index.php page. Any one know how to config this?
View Replies !
PHP/MySQL/Apache Documentation.
The PHP, MySQL and Apache Online Documentation is some of the best online docs I have seen for products and such in a very long time. DEC had probably the best, because they as well as these docs have real-life examples of how to use a particular verb or function. So, if a middle-aged out-of-work systems/database/web administrator can look up most of the questions and have an answer within minutes, well... anyway, just to reiterate - the docs are very well constructed, mapped, indexed and most of all - searchable. http://www.php.net/manual/ http://dev.mysql.com/doc/mysql/en/index.html http://httpd.apache.org/docs-project/ (and select your version)
View Replies !
|