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: php5apache2.dll not working in Apache 2.2.9 with PHP 5.1.2
Author
jhw1701



Joined: 26 Sep 2008
Posts: 3

PostPosted: Fri 26 Sep '08 5:55    Post subject: php5apache2.dll not working in Apache 2.2.9 with PHP 5.1.2 Reply with quote

I've searched through the forums here and can't find anyone with this problem using the latest Apache version from Apache Lounge so I'm wondering if this is a new or different problem with Steffen's php5apache2.dll handler.

So here's my setup.

1) Apache 2.2.9 downloaded from Apache Lounge.

2) PHP 5.1.2 (stuck using this version due to compatibility issues with a third party library)

3) The php5apache2.dll downloaded from Apache Lounge

4) Windows XP SP3

5) VC++ 2005 runtime (as per the php5apache2.dll readme)

6) VC++ 2008 runtime (as per the apache 2.2.9 readme)


I like having all the files of a program under one parent folder so I make sure that no PHP files are located in the c:\Windows or c:\Windows\System32 folders. That being said I have the following directory structure:

1) Apache at C:\Software\apache-2.2.9

2) PHP at C:\Software\php-5.1.2

3) The Apache Lounge php5apache2.dll at C:\Software\php-5.1.2

Before adding any PHP specific settings to the httpd.conf file I successfully verified that Apache could start up from a command prompt and serve some test html pages.

I next added these lines to httpd.conf

LoadModule php5_module "c:/Software/php-5.1.2/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/Software/php-5.1.2"

After adding the LoadModule line any attempt to start Apache yields the typical error message:

httpd.exe: Syntax error on line 128 of D:/Software/apache-2.2.9/conf/httpd.conf: Cannot load D:/Software/php-5.1.2/php5apache2.dll into server: The specified module could not be found.

Now I made sure that the php.ini (located in C:\Software\php-5.1.2) contains all the correct settings and directory paths so the problem should not be on that end. There are no extensions enabled in the php.ini either.

On a related note, are there archives available at Apache Lounge? If there is no solution to this problem then an alternative would be to fall back to Apache 2.0.x version to avoid the need to use the replacement php5apache2.dll handler.

Also, I even extracted the contents from the 2.0.63 MSI installer (I hate installers) from apache.org and attempted to use that in place of the Apache Lounge distribution. Sadly, the 2.0.63 version from apache.org would not even startup and gives no error message.

Can anyone offer any advice on this matter?

Thank you kindly,
Jeremy
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 26 Sep '08 18:59    Post subject: Reply with quote

For 2.2.9

per http://www.php.net/manual/en/install.windows.manual.php
edited a little for clarity

Quote:
Here is a list of server modules shipped with PHP 5:
*
php5apache.dll - Apache 1.3.x module.
*
php5apache2.dll - Apache 2.0.x module.
*
php5apache2_2.dll - Apache 2.2.x module.
Back to top
jhw1701



Joined: 26 Sep 2008
Posts: 3

PostPosted: Sat 27 Sep '08 3:33    Post subject: Reply with quote

I'm afraid you missed my point. The point is that I must use PHP 5.1.2. The php5apache2_2.dl libraryl is ONLY for PHP 5.2.0 and up.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Sat 27 Sep '08 4:02    Post subject: Reply with quote

Guess I did and your 2nd option may be the only way. But I am unfamiliar with Steffen's download ... hangs head.

Apache2.0.63 had a problem most likely cause Apache2.2.9 was running. They cannot both bind to any single port at the same time.
Back to top
jhw1701



Joined: 26 Sep 2008
Posts: 3

PostPosted: Sat 27 Sep '08 4:06    Post subject: Reply with quote

There were no port problems, I turned off all other apache installations prior to trying to start 2.0.63.
Back to top


Reply to topic   Topic: php5apache2.dll not working in Apache 2.2.9 with PHP 5.1.2 View previous topic :: View next topic
Post new topic   Forum Index -> Other Software