Beasts Posted January 19, 2010 Share Posted January 19, 2010 hello, a script which has been working normally for almost an year has suddenly started throwing 500's. its very likely this has started due to a change in the server configuration. the script in question uses a lot of blank $_GET variables. could you please tell me any possible reasons? Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/ Share on other sites More sharing options...
Mibble Posted January 19, 2010 Share Posted January 19, 2010 This is a 'catch-all' error generated by the Web server. Basically something has gone wrong, but the server can not be more specific about the error condition in its response to the client. In addition to the 500 error notified back to the client, the Web server should generate some kind of internal error log which gives more details of what went wrong. It is up to the operators of the Web server site to locate and analyse these logs Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/#findComment-997839 Share on other sites More sharing options...
Beasts Posted January 19, 2010 Author Share Posted January 19, 2010 nothing on the PHP error logs indicate anything that could cause this. the apache error logs should have something right? i'll ask for the host to send them to me. in the mean time, is there a way to change the location of the apache error log via a .htaccess file? Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/#findComment-997842 Share on other sites More sharing options...
oni-kun Posted January 19, 2010 Share Posted January 19, 2010 nothing on the PHP error logs indicate anything that could cause this. the apache error logs should have something right? i'll ask for the host to send them to me. in the mean time, is there a way to change the location of the apache error log via a .htaccess file? You can of course use phpflag directives, Note that if php.ini has been set to not read these, there's a slight possiblity it will not work without modifying the master: php_flag log_errors on php_value error_log /home/path/public_html/domain/PHP_errors.log You can of course, as well deny access to the error log: # prevent access to PHP error log <Files PHP_errors.log> Order allow,deny Deny from all Satisfy All </Files> EDIT: More here, http://php.net/manual/en/errorfunc.configuration.php Apache error logs would require you to ask for them most likely, not a method I know off hand to retrieve them, especially through php, you don't have access to them. Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/#findComment-997845 Share on other sites More sharing options...
Beasts Posted January 19, 2010 Author Share Posted January 19, 2010 umm that logs only php errors? i meant the apache error log details of this error are not in the php error logs Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/#findComment-997857 Share on other sites More sharing options...
oni-kun Posted January 19, 2010 Share Posted January 19, 2010 umm that logs only php errors? i meant the apache error log details of this error are not in the php error logs Again, Unless you have a VPS or own your own server, You won't have access to the 500 errors, only assign a page to them. Quote Link to comment https://forums.phpfreaks.com/topic/188983-500-internal-server-error/#findComment-997858 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.