Skip to main content

Codeigniter on cPanel account gives internal server error 500

Comments

13 comments

  • cPanelMichael
    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.
    0
  • zemaitis
    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
    0
  • cPanelPeter cPanel Staff
    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.
    0
  • cPanelMichael
    [quote="zemaitis, post: 1544762">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
    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.
    0
  • zemaitis
    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.
    0
  • cPanelMichael
    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.
    0
  • zemaitis
    Yes, I did, index.html it shows ok, but when I got to index.php it shows blank
    0
  • zemaitis
    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: 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?
    0
  • Infopro
    This search string might be helpful to you: codeigniter cms gets 500 internal server error site:ellislab.com That is the CI forums I believe. GL!
    0
  • zemaitis
    I said I searched for 10 hours, I've been there..
    0
  • Infopro
    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!
    0
  • zemaitis
    problem solved by recompiling via easyapache and selecting and extension mysqli in exhaustive options list
    0
  • Infopro
    That's good to hear. Thanks for posting back to update the thread. :)
    0

Please sign in to leave a comment.