Home >Operation and Maintenance >Linux Operation and Maintenance >What should I do if there is no response when running the php script under Linux?

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

王林
王林Original
2020-10-23 17:34:252969browse

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>

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!

Statement:
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