The apache2.4 version modifies the configuration file and loads the php module, resulting in the failure to start the solution

The apache2.4 version modifies the configuration file and loads the php module, which leads to the inability to start the solution version! My apache version is 2.4. On the Internet, I installed a php5.4 version according to the introduction of the video teacher. At first, there was no matching dll file for apache.


I made a bit of [php-5.4.0-Win32-VC9-x86.zip] on the Internet, and finally got this file, but it still prompts that the apache service cannot be started. Later, after a lot of research, I felt that it might be caused by version incompatibility, so I re-downloaded a php7 version [php-7.2.34-Win32-VC15-x64.zip].


After decompressing locally, it comes with a docking dll file [php7apache2_4.dll].


This time, after modifying the parameter information of httpd.conf, the apache service was successfully started. Sure enough, it was still an error caused by version incompatibility.


Let me share my configuration information with you, hoping to help you.

#加载php
LoadModule php7_module "H:/php7/php7apache2_4.dll"
PHPIniDir "H:/php7"
AddType application/x-httpd-php .php .phtml

Disclaimer: Which path is your php in, just replace it with your own installation path.

I can use this directly after decompression. No need to install. peace of mind.


Let's share the php download address with you:

windows.php.net - /downloads/releases/archives/

Guess you like

Origin blog.csdn.net/yrldjsbk/article/details/131308054