What should I do if the linux php script does not run?

藏色散人
Release: 2023-03-04 15:16:01
Original
2065 people have browsed it

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.

What should I do if the linux php script does not run?

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>
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!