安装Cpanel后打印php脚本而不是执行

时间:2016-01-03 15:06:16

标签: php apache cpanel centos7

我最近安装了最新版本的Cpanel。安装成功完成。安装后我将docmentRoot从/user/local/apache/htdocs更改为/home/myuser/public_html vai Service Configuration >Apache Configuration >Include Editor > Pre Virtual Host Include

<VirtualHost 100.113.218.68:80 127.0.0.1:80>
    ServerName example.net

    ServerAlias cpanel.* whm.* webmail.* webdisk.* cpcalendars.* cpcontacts.*

    DocumentRoot /home/myuser/public_html
   .
   .

然后当我运行index.php时,以下http://example.net/index.php内容为:

<?php
echo phpinfo();
?>

打印php脚本而不是执行。 我检查了/ etc / http / logs / error_log,这是内容:

[Sun Jan 03 14:37:19.701372 2016] [mpm_prefork:notice] [pid 41895] AH00169: caught SIGTERM, shutting down
[Sun Jan 03 14:37:22.001720 2016] [suexec:notice] [pid 42750] AH01232: suEXEC mechanism enabled (wrapper: /usr/local/apache/bin/suexec)
[Sun Jan 03 14:37:22.001833 2016] [:notice] [pid 42750] ModSecurity for Apache/2.9.0 (http://www.modsecurity.org/) configured.
[Sun Jan 03 14:37:22.001840 2016] [:notice] [pid 42750] ModSecurity: APR compiled version="1.5.2"; loaded version="1.5.2"
[Sun Jan 03 14:37:22.001847 2016] [:notice] [pid 42750] ModSecurity: PCRE compiled version="8.36 "; loaded version="8.36 2014-09-26"
[Sun Jan 03 14:37:22.001854 2016] [:notice] [pid 42750] ModSecurity: LUA compiled version="Lua 5.1"
[Sun Jan 03 14:37:22.001857 2016] [:notice] [pid 42750] ModSecurity: LIBXML compiled version="2.9.2"
[Sun Jan 03 14:37:22.001861 2016] [:notice] [pid 42750] ModSecurity: Status engine is currently disabled, enable it by set SecStatusEngine to On.
[Sun Jan 03 14:37:23.005187 2016] [mpm_prefork:notice] [pid 42751] AH00163: Apache/2.4.18 (Unix) OpenSSL/1.0.1e-fips mod_bwlimited/1.4 configured -- resuming normal operations
[Sun Jan 03 14:37:23.005255 2016] [core:notice] [pid 42751] AH00094: Command line: '/usr/local/apache/bin/httpd'

在我的httpd.conf文件中,这只是加载的模块

LoadModule bwlimited_module modules/mod_bwlimited.so

0 个答案:

没有答案
相关问题