Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upgrading Apache and PHP - apache sever will not start

Status
Not open for further replies.

Ztruker

Technical User
Nov 26, 2010
13
US
I am upgrading my old web server.

From:
Apache/1.3.27 (Win32)
PHP Version 4.3.9
MySQL 3.23.49

To:
Apache/2.2.17 (Win32)
PHP Version 5.3.3
MySQL 5.0.7-dev

I installed Apache2.2 in D:\Apache2.2, leaving the original 1.3.27 in D:\Apache. Made minor changes to httpd.conf and was able to start Apache2.2 and load the default index.html.

Next I installed PHP 5.3.3 in D:\PHP leaving the original 4.3.9 in C:\PHP.

Now I can't start Apache2.2. Every time I try I get an error:

PHP-Apache-error.jpg


If I edit httpd.conf and remove the entries at the end added by PHP then Apache2.2 starts and works okay. The entries are:

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "D:/PHP/"
LoadModule php5_module "D:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

The directory references are correct and point to where PHP 5.3.3 is installed.

Could this be caused by having two versions of PHP installed at the same time? I don't see how since nothing in Apache2.2 httpd.conf points to the C:\PHP where 4.3.9 is installed.

Apache error.log is not help.

Rich K.
 
No one has any ideas? Even any suggestions on how to try to figure out what is going on would be helpful.

Rich K.
 
The error message you are getting sounds like a type of general memory or instruction fault, which makes me think you have the wrong version of PHP.

I am not in front of my machine at work to be able to check this, but if I recall, there are thread-safe and non-thread safe versions of PHP. In addition, there are versions compiled under Visual C 9 and Visual C 6. You *MUST* get the correct version. If I recall, Apache requires the version compiled with VC6.
 
I have the same exact versions of Apache, PHP and MySQL running under Windows 7 (my test system) with no problems. I only see the problems trying to upgrade as I mentioned.

I will check all of them again to make sure I have the right ones though.

Thank you.

Rich K.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top