Problems installing PHP with Apache
Posted: Wed Dec 29, 2010 2:04 pm
I'm trying to install NetBeans 6.9.1 with Apache Web Server, PHP, and XDbug, under Windows XP Professional SP3. The system already has Zend Core and Zend Studio, which I need to continue to use at least until NetBeans and XDbug are working.
I began today with a working copy of NetBeans, which sent output to my standard browser (Firefox 3) when I ran web applications. I previously tried to install XDbug in Zend Server, but I got flaky results (as the documentation warned me I might), so my next move was to install Apache Web Server 2.2.17.
I stopped Zend Server and installed Apache 2.2.17. It worked. I made some changes to http.conf to configure Apache like Zend Server, and got that to work.
The next step was to install PHP for Apache. There things went bad.
I downloaded non-thread-safe PHP 5.2.16 and ran the installer. I was puzzled by the installer's "Web Server Setup" page, which didn't seem to be aware of Apache's existence. It offered three options; I think they were "IIS FastCGI," "Other CGI," and "Do not setup a web server." I chose "Other CGI." The installer never asked me to identify the Apache Configuration Directory.
Once the installation finished I tried to load an HTML page and got a listing of a PHP page. I haven't figured out what file it came from. I got the same PHP page no matter what I tried to load, even if I tried to load a file that didn't exist.
I stopped the Apache server and started Zend Server, and it did the same thing.
I stopped Zend Server, restarted Apache, and installed PHP 2.2.5, a version I used with Apache a couple of years ago, before I started using Zend Studio. This time the installer's Web Server Setup page let me select "Apache 2.2.x Module," and the next page prompted me for the Apache configuration directory. (I gave it the directory for Apache.)
When I was done, I tried loading an HTML page again. This time I got a page that said "Drupal is off-line." (Drupal is installed on my system, but I haven't used it for a couple of years.) Again, I don't know what page it's loading to get this, but it must be a PHP page, because it shows a couple of error messages from PHP include files.
I shut down Apache, started Zend Server, and found that it was functioning properly again -- thank heaven for that.
I'm looking for advice on troubleshooting both parts of this problem: what happened to both servers when I installed PHP 5.2.16, and what is happening to the Apache server with PHP 5.2.5?
I began today with a working copy of NetBeans, which sent output to my standard browser (Firefox 3) when I ran web applications. I previously tried to install XDbug in Zend Server, but I got flaky results (as the documentation warned me I might), so my next move was to install Apache Web Server 2.2.17.
I stopped Zend Server and installed Apache 2.2.17. It worked. I made some changes to http.conf to configure Apache like Zend Server, and got that to work.
The next step was to install PHP for Apache. There things went bad.
I downloaded non-thread-safe PHP 5.2.16 and ran the installer. I was puzzled by the installer's "Web Server Setup" page, which didn't seem to be aware of Apache's existence. It offered three options; I think they were "IIS FastCGI," "Other CGI," and "Do not setup a web server." I chose "Other CGI." The installer never asked me to identify the Apache Configuration Directory.
Once the installation finished I tried to load an HTML page and got a listing of a PHP page. I haven't figured out what file it came from. I got the same PHP page no matter what I tried to load, even if I tried to load a file that didn't exist.
I stopped the Apache server and started Zend Server, and it did the same thing.
I stopped Zend Server, restarted Apache, and installed PHP 2.2.5, a version I used with Apache a couple of years ago, before I started using Zend Studio. This time the installer's Web Server Setup page let me select "Apache 2.2.x Module," and the next page prompted me for the Apache configuration directory. (I gave it the directory for Apache.)
When I was done, I tried loading an HTML page again. This time I got a page that said "Drupal is off-line." (Drupal is installed on my system, but I haven't used it for a couple of years.) Again, I don't know what page it's loading to get this, but it must be a PHP page, because it shows a couple of error messages from PHP include files.
I shut down Apache, started Zend Server, and found that it was functioning properly again -- thank heaven for that.
I'm looking for advice on troubleshooting both parts of this problem: what happened to both servers when I installed PHP 5.2.16, and what is happening to the Apache server with PHP 5.2.5?