Home >Backend Development >PHP Problem >What to do if linux apache does not parse php files
Solution to the problem that linux apache does not parse the php file: first find and open the "httpd.conf" file; then add the code content as "AddType application/x-httpd-php .php" and save it.
Recommended: "PHP Video Tutorial"
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
The first sentence will be automatically generated after installing php
The above is the detailed content of What to do if linux apache does not parse php files. For more information, please follow other related articles on the PHP Chinese website!