The reason why the linux php script does not run is because Apache does not load the php parsing module file. The solution is to add the code "LoadModule php5_module modules/libphp5.so" to httpd.conf.
Recommendation: "PHP Video Tutorial"
The problem of PHP code not executing or parsing under Linux
The reason is: Apache does not load the php parsing module file
Add the following sentences to httpd.conf:
AddType application/x-httpd-php .php LoadModule php5_module modules/libphp5.so <IfModule mod_php5.c> AddType application/x-httpd-php .php AddType application/x-httpd-php-source .phps </IfModule>
The above is the detailed content of What should I do if the linux php script does not run?. For more information, please follow other related articles on the PHP Chinese website!