October 13th, 2008, 01:12 PM
Cannot load php5apache2.dll .. not found?
Solution to the problem
Cannot load php5apache2.dll
From the directory where install php copy the
file php5ts.dll to "C:\windows\system32"
Apache now init OK and PHP is running.
November 29th, 2008, 02:09 PM
This worked for me, Apache 2:
Download the stable version. Unzip it and overide to your current php folder.
You will see php5apache2_2.dll inside your /php folder. Rename it to php5apache2.dll after you delete the previous php5apache2.dll.
I saved my existing /php/php.ini file and copied it back. Everything worked fine.
November 18th, 2009, 09:45 PM
I had the same problem but it was rather simple to fix. It all depends on what apache version you are running. Use the correct php5apache file for your apache version.
March 16th, 2010, 04:53 AM
APACHE 2.2.13 with PHP5 with MySql working fine At last.
I had the same problem but solved easily, I did following;
I was having good running Apache 2.2 with usual configuration file i.e. there was no modification.
I removed my php installation
php.net website download section.
During installation, it asked webserver, I selected Apache 2.2.x, It did everything automatically and my PHP5 is working fine.
You need not to go into mess of php5apache2.dll or similar renaming of files, just let it do automatically.
Hope it will help.
April 27th, 2010, 02:49 AM
finally got this set up to work!
make sure that php.ini is in C:\Windows folder
To get php5 & apache 2.x to work you need to add this to http.conf below modules section
change the paths as needed, and make sure the files are actually there (move them from the php directory)
LoadModule php5_module /PATH/TO/APACHE/modules/php5apache2.dll
AddType application/x-httpd-php .php
finally to get mysql working -
uncomment this line in php.ini
and set this line to php folder's ext dir
The lack of a loadfile line in http.conf was what messed me up...
October 25th, 2010, 04:13 AM
I'm so stupid I shouldn't be allowed to run software at all. Check this out. I'm running Apache2 on my XP since a long way back. Today I decided to try PHP. I had two options. "VC6" and "VC9". I know (or think I know) this is two different versions of a Windows-based compiler. Therefor, I just thought to myself, "the later, the better" and downloaded the VC9 version.
I've been struggling with installation for some time now. First thing that hit me, during install, "wtf shouldn't Apache2 come up as an alternative? I only have 'IIS', 'Other CGI', and 'None' for options here". But then thought "Ah what the heck, perhaps "other" invokes Apache2. To my great confusion, PHP scripts did not parse on localhost after install.
I tried lots of stuff, eg. rebooting my system. Nothing. Then I found this thread, with thread start back in 2006. At first I was looking for the "php5apache2.dll", but then I happened to read something about VC6. I then returned to the PHP.net website, and read a little bit closer than just bam-rushing to the first clickable download link.
Gosh, I feel so stupid. I'm on to a new installation now. I assume that it will work straight out of the box now. I post this just to submit to my foolishness. Thanks for helping me out thought.
February 17th, 2011, 04:48 AM
Apache + PHP (Windows Installer versions)
This config httpd.conf for apache works for me after hours of fighting and googling:
#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
LoadModule php5_module "c:\php\php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PEAR signature issue:
go-pear.bat modify to
%PHP_BIN% -d output_buffering=0 -d phar.require_hash=0 PEAR\go-pear.phar
I installed apache 2.2 and php 5.14. I received error message "can't load module php5apache2.dll". I didn't have this kind of problem in apache 2.058.
hopefully, a new php5apache2.dll will solve this problem. thanks
March 3rd, 2012, 04:49 AM
people who say that they cant load php5apache2.dll/php5apache2_2.dll.please check that for using apache you should download VC6 version of php.VC9 will not work..
April 26th, 2012, 06:37 PM
Still won't work for me.
I have installed Apache 2.2 and proceeded to install php-5.2.17-win32-vc6-x86.msi from the php.com download page.
I selected apache2.2 for the webserver when prompted by the php install wizard. However I am still getting the same problem as everyone else on this thread which is the cannot load php5apache2_2.dll error.
I have also tried reinstalling with different versions of apache/php and have tried changing php5apache2_2.dll to php5apache2.dll and still no luck.
None of the above solutions work for me so now I am at a loss of how to fix this, please help! <<<<what I am doing now.