please explain this error log

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 05:43:14

问题


i have domain in godaddy and i am trying to install a script in my dedicated server or trying to access my domain righttimematrimony.com it is not loading and showing errors. one time my website loaded and shown sci-bin folder, after upload the data into server and tried to access my url, but shown lot of errors. please somebody help me what to do now.

This is the data in error log found at Cpanel -> Error Log.

[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

回答1:


Take a look at this link: http://forums.cpanel.net/f5/invalid-command-php_value-perhaps-mis-spelled-defined-module-not-included-184931.html

You are using suPHP, so you cannot use the following directives in .htaccess files: php_flag, php_admin_flag, php_value, php_admin_value. You also cannot use these directives in the httpd.conf file; they are only valid when DSO is used as the PHP handler.

Instead, use a custom php.ini file. Copy /usr/local/lib/php.ini to the directory that requires custom PHP values, and customize the PHP values in the "local" php.ini file. Note that the values in custom php.ini files are not "inherited" to subdirectories. If you place a custom php.ini file in /home/someuser/public_html, its settings will not be inherited by /home/someuser/public_html/somesubdir. /home/someuser/public_html/somesubdir would need its own custom php.ini file.




回答2:


You're not running PHP as an Apache module.




回答3:


Miss Files From Root Directory http://righttimematrimony.com/ one of missed file is favicon.ico.

The 403 Forbidden error means that whatever resource or webpage you were trying to access is forbidden from being accessed.




回答4:


I am using php7.3 and:

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

solved the error:

Invalid command 'php_flag', perhaps misspelled or defined by a module not included in the server configuration



来源:https://stackoverflow.com/questions/27683366/please-explain-this-error-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!