Home >Backend Development >PHP Problem >What should I do if apache2 does not parse php?
The solution for apache2 not parsing php: first open the httpd.conf configuration file; then add the code [LoadModule php7_module modules/libphp7.so].
First open the httpd.conf configuration file;
(Recommended tutorial: php graphic tutorial)
Then add the following code:
LoadModule php7_module modules/libphp7.so AddType application/x-httpd-php .php DirectoryIndex index.php index.htm index.html
The above is the detailed content of What should I do if apache2 does not parse php?. For more information, please follow other related articles on the PHP Chinese website!