简体   繁体   中英

website not working after moving from local to the server

am using codeigniter 2.2 and my os is ubuntu 14.04 . I have developed a website using codeigniter on my localhost. it was working fine.

now i have moved the site to the real server http://hotlunchorders.com/ . i am getting the error.

Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@hotlunchorders.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.

my .htaccess file

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L] 

errorlog file in server

    [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

Can someone help me to fix this problem. tnx.

Points to look at:

  1. Is rewrite module enabled? Enable by sudo a2enmod rewrite .
  2. Are paths correct? Linux is case sensitive .
  3. is writeable by group may point out the permission problems. Try changing permission set to sudo chmod 0750 respective files and directories.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM