请解释此错误日志

时间:2014-12-29 04:23:13

标签: apache .htaccess server

我在godaddy中有域名,我正在尝试在我的专用服务器中安装脚本或尝试访问我的域名righttimematrimony.com它没有加载并显示错误。有一次我的网站加载并显示sci-bin文件夹,将数据上传到服务器并尝试访问我的网址,但显示了很多错误。请有人帮我现在做什么

这是在Cpanel找到的错误日志中的数据 - >错误日志。

[Mon Dec 29 04:14:23 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:23 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:05 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:05 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:03 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:03 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:01 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:14:01 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:13:57 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:13:57 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:58 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:58 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:50 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:50 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:43 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:12:43 2014] [alert] [client 106.66.138.199] /home/right/public_html/.htaccess: Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration
[Mon Dec 29 04:04:13 2014] [error] [client 106.66.138.199] File does not exist: /home/right/public_html/403.shtml, referer: http://righttimematrimony.com/
[Mon Dec 29 04:04:13 2014] [error] [client 106.66.138.199] attempt to invoke directory as script: /home/right/public_html/cgi-bin/, referer: http://righttimematrimony.com/
[Mon Dec 29 04:04:08 2014] [error] [client 106.66.138.199] File does not exist: /home/right/public_html/404.shtml
[Mon Dec 29 04:04:08 2014] [error] [client 106.66.138.199] File does not exist: /home/right/public_html/favicon.ico
[Mon Dec 29 04:04:00 2014] [error] [client 106.66.138.199] File does not exist: /home/right/public_html/404.shtml
[Mon Dec 29 04:04:00 2014] [error] [client 106.66.138.199] File does not exist: /home/right/public_html/favicon.ico

4 个答案:

答案 0 :(得分:4)

请看一下这个链接:http://forums.cpanel.net/f5/invalid-command-php_value-perhaps-mis-spelled-defined-module-not-included-184931.html

  

您正在使用suPHP,因此您无法在.htaccess文件中使用以下指令:php_flag,php_admin_flag,php_value,php_admin_value。您也不能在httpd.conf文件中使用这些指令;它们仅在DSO用作PHP处理程序时有效。

     

而是使用自定义的php.ini文件。将/usr/local/lib/php.ini复制到需要自定义PHP值的目录,并在“本地”php.ini文件中自定义PHP值。请注意,自定义php.ini文件中的值不会“继承”到子目录。如果在/ home / someuser / public_html中放置自定义php.ini文件,则/ home / someuser / public_html / somesubdir不会继承其设置。 / home / someuser / public_html / somesubdir需要自己的自定义php.ini文件。

答案 1 :(得分:2)

您没有将PHP作为Apache模块运行。

答案 2 :(得分:0)

错过根目录中的文件http://righttimematrimony.com/ 错过的文件之一是favicon.ico。

403 Forbidden错误表示禁止访问您尝试访问的任何资源或网页。

答案 3 :(得分:0)

我正在使用php7.3和:

apt-get install php7.3-mbstring libapache2-mod-php7.3

解决了错误:

  

无效的命令“ php_flag”,可能是模块拼错或定义的   不包含在服务器配置中