Home > Article > Operation and Maintenance > How to solve the problem that Apache cannot parse PHP?
Apache is the world's number one web server software. It can run on almost all widely used computer platforms and is one of the most popular web server-side software due to its cross-platform and security features.
#How to solve the problem that Apache cannot parse PHP?
Edit the httpd.conf file
Add the following code
LoadModule php7_module modules/libphp7.so AddType application/x-httpd-php .php DirectoryIndex index.php index.htm index.html
Restart apache.
The above is the detailed content of How to solve the problem that Apache cannot parse PHP?. For more information, please follow other related articles on the PHP Chinese website!