我有一个关于 500 Internal Server Error 的问题。这是故事
- 我创建了一个子域,并将我的基于 CI 的网站放在那里。
- 我尝试访问它,它可以工作,但是有一些错误需要修复。
- 修复错误后,我删除了子域中的所有文件并重新上传。
- 我尝试访问它,但它显示 500 内部服务器错误。我检查了 .htaccess 文件,没有任何问题,因为我从未更改过它。
这是我的 htaccess 文件
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|css|js|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
这是我的 CI 配置文件
$config['base_url'] = '';
$config['index_page'] = '';
当我尝试访问我的网站时检查了我的 cpanel 错误日志。它显示如下:
[Sat May 12 20:48:23 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
[Sat May 12 20:48:23 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
[Sat May 12 20:48:21 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
[Sat May 12 20:48:21 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
[Sat May 12 20:48:20 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
[Sat May 12 20:48:20 2012] [error] [client 180.247.155.67] SoftException in Application.cpp:254: File "/home/*****/public_html/sipr/index.php" is writeable by group
我尝试通过 localhost 访问我的网站,它工作正常。我的本地站点地址是
http://localhost/sipr/