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?
Problems installing PHP with Apache
Moderator: General Moderators
Re: Later -- solved the problem
I solved this problem, which turned out to be somewhat different than it appeared.
I never figured out exactly what was wrong, but I got the new PHP to work by throwing out the new version of php.ini, created by the installer, and using a modified version of the one that worked in v5.2.5.
The reason for the "Drupal is off-line" message remains mysterious. So does the installer page that ignored the server.
It was a rocky but ultimately successful experience.
I never figured out exactly what was wrong, but I got the new PHP to work by throwing out the new version of php.ini, created by the installer, and using a modified version of the one that worked in v5.2.5.
The reason for the "Drupal is off-line" message remains mysterious. So does the installer page that ignored the server.
It was a rocky but ultimately successful experience.
Re: Later -- solved the problem
viewtopic.php?f=31&t=126190jsachs wrote:I got the new PHP to work by throwing out the new version of php.ini, created by the installer, and using a modified version of the one that worked in v5.2.5.
You said the same thing about the extensions, I would disagree and say that you must have confused something. No one else is having these issues with PHP that I'm aware of, other than you.. and the common variable seems to be that you've mucked something up with the include paths for where php.ini is being loaded, or where the extensions are being loaded, or you've simply confused the paths.
You don't even mention checking phpinfo, so perhaps the old version is still running, and the errors are because you are using new files with the old version (and you erroneously assumed the new version is now loaded, when it never was)
Re: Problems installing PHP with Apache
Whatever the problems were I solved them, so it's not necessary to pursue this, but I want to make a couple of general observations.
First, you said that "no one else is having these issues,..."
I do not pretend to be infallible, and I am always open to the possibility that I have made errors. if you can point out a place where I may have done so, I would like to revisit it and see if I can learn something. But "you must have confused something" is just a blanket dismissal; it does not help at all. It puts you somewhat in the position of a Churchman telling Galileo that heavy objects fall faster than light ones because Aristotle says so. It doesn't make a darn bit of difference what Aristotle says; the evidence contradicts him, and an argument that doesn't address the evidence is not meaningful.
My own experience installing v5.2.5 was good. My experience installing v5.2.16, with a couple of years of experience under my belt, was pretty bad. (I have not even mentioned all of the things the installer got wrong.) I trust my experience.
Second, I'm troubled by your comment about phpInfo. You're right, I didn't mention using it. I also didn't mention that I turned my computer on before trying to work on it. Both are too obvious to warrant mention. I'm left with the impression that you approached my post with the mindset, "Did this guy do something dumb?" rather than "What can I do to help this guy solve his problem and/or learn something?" If that is the case, it is disappointing.
First, you said that "no one else is having these issues,..."
I do not pretend to be infallible, and I am always open to the possibility that I have made errors. if you can point out a place where I may have done so, I would like to revisit it and see if I can learn something. But "you must have confused something" is just a blanket dismissal; it does not help at all. It puts you somewhat in the position of a Churchman telling Galileo that heavy objects fall faster than light ones because Aristotle says so. It doesn't make a darn bit of difference what Aristotle says; the evidence contradicts him, and an argument that doesn't address the evidence is not meaningful.
My own experience installing v5.2.5 was good. My experience installing v5.2.16, with a couple of years of experience under my belt, was pretty bad. (I have not even mentioned all of the things the installer got wrong.) I trust my experience.
Second, I'm troubled by your comment about phpInfo. You're right, I didn't mention using it. I also didn't mention that I turned my computer on before trying to work on it. Both are too obvious to warrant mention. I'm left with the impression that you approached my post with the mindset, "Did this guy do something dumb?" rather than "What can I do to help this guy solve his problem and/or learn something?" If that is the case, it is disappointing.
Re: Problems installing PHP with Apache
"perhaps the old version is still running" is pessimistic?
Glad you solved the issue though. I was just trying to help. No offense but if you knew 100% what you were doing you wouldn't be posting, so I wasn't about to rule anything out. People ask for help and I tell them what could possibly cause it, which is what I did here.
You said you're open to the possibility of errors, I think that is less than true based on the way you got defensive when I suggested a few possible errors. I don't point this out to start an argument, but instead I'd like to point out this attitude complicates the debugging process, you *have* to be prepared to re-consider your assumptions about what you did/did not confuse. (aka double checking phpinfo for the right version/paths, etc.)
In fact the issue was with something that could be determined from your phpinfo, so it wasn't "too obvious to mention".
You said you're open to the possibility of errors, I think that is less than true based on the way you got defensive when I suggested a few possible errors. I don't point this out to start an argument, but instead I'd like to point out this attitude complicates the debugging process, you *have* to be prepared to re-consider your assumptions about what you did/did not confuse. (aka double checking phpinfo for the right version/paths, etc.)
In fact the issue was with something that could be determined from your phpinfo, so it wasn't "too obvious to mention".
Re: Problems installing PHP with Apache
We had a misunderstanding, and I accept that you were acting in good faith. Enuf said.