When I start the Apache server it’s giving me an error that C:/PHP/php5apache2_2.dll not found. Can you help me with it?
After configuration with Apache, a not-so-uncommon error thrown by Apache is “Cannot load php5apache2_2.dll“. This typically means that the web server is not able to locate the php5apache2_2.dll file. The simple fix is to edit the the Apache configuration file and give it the correct destination for the PHP .dll file.
Tips to solve Apache “Cannot load php5apache2_2.dll” error
The first thing is to confirm whether you have the php5apache2_2.dll file in the PHP install directory. I ask you to do this because I had once (accidentally) not unzipped the PHP zip properly.
Assuming you didn’t make the dumb mistake (as I had done… once!), ensure that the file path in the LoadModule line in the Apache configuration file (httpd.conf) has the correct path to the PHP install directory. Thus, if you have installed (unzipped) PHP in C:/PHP the LoadModule line should be:
LoadModule php5_module "c:/PHP/php5apache2_2.dll"
Reboot the computer!
Additionally, other files that are required by PHP should be in the PATH environment variable. Ideally, you should add the PHP install directory to this variable’s value.
One of these tips should solve the ‘Cannot load php5apache2_2.dll’ error message shown by the Apache web server. If not write to me and please explain your problem in detail.