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
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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.