Jump to content

Apache won't start after installing php5


Recommended Posts

I just installed the latest version of Apache2. It is running fin, form what I can tell.

 

After installing php5, it won't restart.

 

I have Apache's files in C:/

php is in C:/php5

 

I used the php-5.2.3-Win32.zip

 

I made the php5ts.dll file available by adding the path (C:\php5) to the Windows Path through Controle Panel > Systems > Advanced > Environment Variables System Variable > Path, appending it like so ;C:\php5

 

In the httpd.conf file I added the following:

 

LoadModule php5_module c:/php5/php5apache2.dll

AddType application/x-httpd-php .php

PHPIniDir "C:\php5"

 

I then renamed the php.ini.recommended to php.ini and kept it in the C:/php5 directory.

 

When trying to restart Apache to make thing take effect, Apache won't restart.

 

Also, if I comment or remove the added lines to the httpd.conf file, Apache starts working again.

 

Can anyone see what I am doing wrong? Any help will be appreciated!

Link to comment
https://forums.phpfreaks.com/topic/53906-apache-wont-start-after-installing-php5/
Share on other sites

You should of just changed this line:

LoadModule php5_module c:/php5/php5apache2.dll

to this:

LoadModule php5_module c:/php5/php5apache2_2.dll

 

the php5apache2.dll module is not compatible with Apache2.2.x. You must use the newer Apache module for Apache2.2.x which is php5apache2_2.dll

 

If you are using the newer version of PHP5 (version 5.2 or greater) PHP now comes with the newer Apache2.2.x module.

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.