Php 从本地移动到服务器后网站不工作
我使用的是CodeIgniter2.2,我的操作系统是ubuntu 14.04。我在本地主机上使用codeigniter开发了一个网站。它工作得很好 现在我已经将站点移动到了真正的服务器上。我得到了错误 内部服务器错误服务器遇到内部错误或配置错误,无法完成您的请求。请与服务器管理员联系,webmaster@hotlunchorders.com并告知他们错误发生的时间,以及您可能采取的任何可能导致错误的措施 有关此错误的详细信息,请参阅服务器错误日志。 此外,尝试使用ErrorDocument处理请求时遇到500内部服务器错误 my.htaccess文件Php 从本地移动到服务器后网站不工作,php,.htaccess,codeigniter,server,Php,.htaccess,Codeigniter,Server,我使用的是CodeIgniter2.2,我的操作系统是ubuntu 14.04。我在本地主机上使用codeigniter开发了一个网站。它工作得很好 现在我已经将站点移动到了真正的服务器上。我得到了错误 内部服务器错误服务器遇到内部错误或配置错误,无法完成您的请求。请与服务器管理员联系,webmaster@hotlunchorders.com并告知他们错误发生的时间,以及您可能采取的任何可能导致错误的措施 有关此错误的详细信息,请参阅服务器错误日志。 此外,尝试使用ErrorDocument处理
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
服务器中的错误日志文件
[Thu Jun 04 08:00:35 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 08:00:35 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 07:59:57 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/profile/index
[Thu Jun 04 07:59:57 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/profile/index
[Thu Jun 04 07:59:54 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/home/index
[Thu Jun 04 07:59:54 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/home/index
[Thu Jun 04 07:59:49 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step4/cod
[Thu Jun 04 07:59:49 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step4/cod
[Thu Jun 04 07:59:42 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step3
[Thu Jun 04 07:59:42 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step3
[Thu Jun 04 07:59:30 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step2
[Thu Jun 04 07:59:30 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step2
[Thu Jun 04 07:59:26 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/order/step1
[Thu Jun 04 07:59:26 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/beta/assets/css/global-style-color-icon.css, referer: http://hotlunchorders.com/beta/index.php/order/step1
[Thu Jun 04 07:58:07 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/500.shtml
[Thu Jun 04 07:58:07 2015] [error] [client 67.213.90.137] SoftException in Application.cpp:256: File "/home/hotlunchorders/public_html/index.php" is writeable by group
[Thu Jun 04 07:58:05 2015] [error] [client 67.213.90.137] File does not exist: /home/hotlunchorders/public_html/404.shtml, referer: http://hotlunchorders.com/beta/index.php/profile/index
有人能帮我解决这个问题吗。tnx.要查看的要点:
rewrite
模块是否启用?通过sudo a2enmod rewrite
启用检查apache配置是否允许覆盖或启用了mod_重写。检查文件/函数/类/etc名称中的大小写是否混乱请为CI文件授予755文件权限。文件权限为755,并且还启用了mod_重写。还是一样probleum@SathyaBaman看到答案了吗,你检查过文件路径了吗?