What should I do if there is no response when running the php script under Linux?

王林
Release: 2020-10-26 15:31:38
Original
2943 people have browsed it

The solution to the unresponsiveness of running php scripts under Linux: First use an editor to open the httpd.conf configuration file; then add the php parsing module, such as [LoadModule php5_module modules/libphp5.so].

What should I do if there is no response when running the php script under Linux?

Cause analysis:

Apache does not load the php parsing module file

(Recommended tutorial: php video tutorial )

Solution:

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

Related recommendations: php training

The above is the detailed content of What should I do if there is no response when running the php script under Linux?. 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