horseatingweeds Posted June 1, 2007 Share Posted June 1, 2007 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! Quote Link to comment Share on other sites More sharing options...
horseatingweeds Posted June 2, 2007 Author Share Posted June 2, 2007 OK Apache 2.2 is not compatible with php5 yet. There is a .dll for php5 you can get but I opted for reverting back to Apache 2.0. Working now. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted June 2, 2007 Share Posted June 2, 2007 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.