The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Codeigniter on cPanel account gives internal server error 500

Discussion in 'General Discussion' started by zemaitis, Jan 8, 2014.

  1. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello, codeigniter based cms gets 500 internal server error on my newly installed host. Mod rewrite c is activated. What to do? :(
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Do you have root access to this server? If so, please review the /usr/local/apache/logs/error_log file to determine the specific reason for the 500 internal server error message. Or, if you only have cPanel access, the Error Log option in cPanel should output useful information regarding the error.

    Thank you.
     
  3. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hello to you too,

    I think 500 error was due to problem that htaccess was wrong. Now I tried uploading all files to the host and when you go there the website is just blank and that's it.

    If I upload same files to other hosting provider, everything's ok, and I don't know what's the reason of that. It seems codeigniter has some problems
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    You should still be able to see the reason for the blank pages in the same error_log file. /usr/local/apache/logs/error_log (if you have access to a shell prompt), and if not, through cPanel.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Try uploading a test HTML or PHP file and access it via your browser to determine if the issue is with the application you are using or if it's isolated to the account. If the issue persists, try temporarily disabling your .htaccess file to rule out any invalid rewrite rules.

    Thank you.
     
  6. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    It's with application in cPanel Apache host. Tried to delete htaccess file and go to index.php - still blank page. On other hosts all ok.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    649
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Did you upload a test HTML or PHP file (e.g. simple "Hello World") and access it via your browser to determine if that would load?

    Thank you.
     
  8. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Yes, I did, index.html it shows ok, but when I got to index.php it shows blank
     
  9. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Spent ~10hours today researching about codeigniter "white screen of death" and found nothing that could work.

    Here's some specifics:


    1. public_html error logs empty, apache error logs empty, application/logs/log-2014-01-08.php also doesnt help
    2. I have MySQL installed
    3. Tried to change application/config/config.php file variable

    $config['uri_protocol'] = 'AUTO';

    to ORIG_PATH_INFO and other ones I found in internet, no use

    4. Mod rewrite is setted online, tested with

    root@server [~]# httpd -l |grep mod_rewrite
    mod_rewrite.c (it means it is installed)

    5. Tried uploading index.html file to check if it's rly files problem, it shows "hello world" message

    6. PHP Version 5.3.27

    7. Tried to upload same files to other cPanel hostings, site works without chmoding or doing anything



    My htaccess file:

    Code:
    AddDefaultCharset UTF-8 
    
    RewriteEngine On
    
    Options -Indexes 
    
    RewriteCond %{REQUEST_URI} ^system.*
    RewriteRule ^(.*)$ /index.php?/$1 [NC,L]
    
    RewriteCond %{REQUEST_FILENAME} !-f   
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !^(/index\.php|/resources|/robots\.txt|/favicon\.ico|/templates)
    RewriteRule ^(.*)$ /index.php?/$1 [L,QSA]

    Can someone guide me what to try to get my files working?
     
  10. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
  11. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    I said I searched for 10 hours, I've been there..
     
  12. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    I've just loaded this manually on a cPanel server including the additional security steps mentioned here:
    /http://ellislab.com/codeigniter/user-guide/installation/index.html

    The process was painless.

    You might re-upload your files to make sure they were uploaded proper. You might also want to contact your Hosting Provider about this so they can take a closer look and assist you with completing the setup.

    This isn't a cPanel issue though. It seems to me you've got some sort of configuration issue.


    Good luck with this!
     
  13. zemaitis

    zemaitis Member

    Joined:
    Jan 8, 2014
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    problem solved by recompiling via easyapache and selecting and extension mysqli in exhaustive options list
     
  14. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,447
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    That's good to hear. Thanks for posting back to update the thread. :)
     
Loading...

Share This Page