I need help with an error?

June 2, 2013 2.1k views
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfill the request. can someone help me solve this error when I try testing a script
2 Answers
Did you follow a specific article to set up your server?
You should check the error.log of your webserver (which shoudl be under /var/log/apache2/). This happens e.g. if your .htaccess uses unknown/wrong/forbidden variables.

If the script you're testing is in PHP, try setting
ini_set('log_errors','on');
ini_set('error_log','php-error.log');
at the beginning of your script (if it's really PHP) and reload the page. After that, check the php-error.log to see what's wrong.
Have another answer? Share your knowledge.