Codeigniter on cPanel account gives internal server error 500

zemaitis

Member
Jan 8, 2014
24
0
51
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? :(
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

zemaitis

Member
Jan 8, 2014
24
0
51
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
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
585
25
153
cPanel Access Level
Root Administrator
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

zemaitis

Member
Jan 8, 2014
24
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
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.
 

zemaitis

Member
Jan 8, 2014
24
0
51
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

[email protected] [~]# 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?
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
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!