logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Problems starting web server with PHP
Author
poojagirl



Joined: 05 Nov 2012
Posts: 5
Location: Canada, Toronto

PostPosted: Tue 06 Nov '12 18:00    Post subject: Problems starting web server with PHP Reply with quote

My environment is as follows:

- Windows 7, 32 bit
- Apache 2.4.3-win32
- PHP-5.4.8-Win32-VC9-x86


Apache works fine on its own, but does not start up when PHP is added on. PHP dll’s included in this distribution are 2.2 and 2.3 versions.

The configuration in httpd.conf file are as follows:

<Directory />
Options FollowSymLinks
AllowOverride none
Require all granted
</Directory>

# For PHP 5 do something like this:
LoadModule php5_module "C:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php

# configure the path to php.ini
PHPIniDir "C:/PHP"


The error I get is:

httpd.exe: Syntax error on line 531 of C:/Apache24/conf/httpd.conf: Cannot load C:/PHP/php5apache2_2.dll into server: The specified procedure could not be found.

When the 2.3 version of the dll is used, the error is:

httpd.exe: Syntax error on line 531 of C:/Apache24/conf/httpd.conf: Module "sapi\\apache2handler\\mod_php5.c" is not compatible with this version of Apache (found 20110619, need 20120211). Please contact the vendor for the correct version.

Without these added configurations, the web server starts up with no issues, of course PHP does not work.

Please help. Thanks in advance.
Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3058
Location: Hilversum, NL, EU

PostPosted: Tue 06 Nov '12 18:29    Post subject: Reply with quote

You have to use php5apache2_4.dll, download it from the download page here.
Back to top
poojagirl



Joined: 05 Nov 2012
Posts: 5
Location: Canada, Toronto

PostPosted: Wed 07 Nov '12 0:44    Post subject: Re: Problems starting web server with PHP Reply with quote

Thank you so much. It works now.
Back to top


Reply to topic   Topic: Problems starting web server with PHP View previous topic :: View next topic
Post new topic   Forum Index -> Other Software