我不小心更改了public_html及其子文件/文件夹的权限。现在,我无法访问我的网站,因为它返回了500错误。我可以访问theailona.com/index.html,但不能访问theailona.com
或theailona.com/index.php
。
我试图测试.htaccess是否在使用Bolt's htaccess tester正常工作,但是访问htaccess_tester.php文件会返回相同的500。因此,我假设PHP文件未正确执行。
index.html
,php.ini
,.user.ini
和.htaccess
当前都设置为644。index.php
和htaccess_tester.php
设置为755。根.htaccess内容如下:
# .htaccess in your images directory
RewriteEngine on
RewriteCond %{REQUEST_URI} ^\.(gif|jpe?g|png)$ [NC]
RewriteRule .? - [F,L]
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
php_flag display_errors On
php_value max_execution_time 30
php_value max_input_time 60
php_value max_input_vars 1000
php_value memory_limit -1
php_value post_max_size 8M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea3"
php_value upload_max_filesize 64M
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_flag display_errors On
php_value max_execution_time 30
php_value max_input_time 60
php_value max_input_vars 1000
php_value memory_limit -1
php_value post_max_size 8M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea3"
php_value upload_max_filesize 64M
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit
错误日志未显示任何新内容,最新条目来自一个小时前(假设它是服务器时区)。
[Thu Nov 12 12:23:05.126846 2020] [authz_core:error] [pid 29891:tid 47490327906048] [client 220.240.160.42:52376] AH01630: client denied by server configuration: /home/k5403444/public_html/.htaccess
希望您能帮助您解决此问题,所以我可以设置一个使用PHP的平面文件CMS。