Reputation: 2481
When I try to access the website I get this error:
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request
even after removing the htaccess file completely the website is still not working. NOTE: on localhost it's working fine.
I think I wasn't clear enough here's my problem in details: I have a website written with PHP5 no framework or cms or anything and it work fine. Then I start the admin section so I used CodeIgniter and rewrite the site. Now I almost done with the programming so I uploaded a test version to the server in a subfolder to test it but the 500 error mentioned above appeared, my first thoughts were that it's a htaccess file problem so I try other htaccess files and finally removed it from the server, but the problem still there. Now the only difference between my local server and the remote server is that locally i'm running PHP 5.3.5 and remotely it's PHP 5.2.14. That's all the information that I can think of now.
Thanx in advance.
Upvotes: 0
Views: 10162
Reputation: 832
I got same problem and added this line on top
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
Upvotes: 0
Reputation: 4421
You likey have a missing PHP/Apache module hence the 500 error.
1: Check your logs within the root and the dir your running script in, else the directory above root/logs.
2: Create a file called phpinfo.php, in it put:
<?php phpinfo(); ?>
and run it.
3: Then compare the list of installed extensions shown in the output with the list of installed modules you have locally.
If your using WAMP, you click the tray icon, goto PHP->extentions and you can see all that are installed. Same for Apache.
boff
additionally:
A good start would to to make sure CURL and MBSTRING is on, however I don't use CAKE PHP....
Upvotes: 1