Jump to content

New Installation of Apache and php5


Recommended Posts

Got a new pc running windows7,  Installed Apache 2.2.18 and PHP 5.2.17

 

Apache starts

 

When modifying httpd.conf to add this line..

 

LoadModule php5_module c:/php5/php5apache2_2.dll

 

and then reboot, apache won't start.

 

Any idea what I'm doing wrong?  Any help will be greatly appreciated

Where did you get the php binaries from and what complier (VC6 or VC9) flavor did you get? Where did you get that Apache binary from as well?

 

Also, the php5.2 branch is dead. Why not use the latest php5.3?

I'm a novice at this so be patient please.

 

Here the name of zip file I used

 

php-5.2.17-nts-Win32-VC6-x86

 

I thought about getting 5.3 but worried about some hosting servers not being up to date with latest version.  Would that be an issue?  If not, I'll try 5.3

php-5.2.17-nts-Win32-VC6-x86

 

If you get the Apache binaries from apache.org, they are compiled with the VC6 compiler and the correct php binary would be the VC6 flavors. However, you are attempting to use php as an apache module and you would need to use the thread-safe php binary (nts = not thread safe.)

 

The latest php5.3 binaries only come complied with the VC9 compiler and are not compatible with the apache binary from apache.org. However, you can get apache compiled with the VC9 compiler from this link - http://www.apachelounge.com/

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.