Reputation: 18228
My web host is running ubuntu 10.04 for our web server. I am trying to see my PHP error output that I usually would see in /var/log/apache2/error_log...
but I have no access to /var/log/apache2/
. I am getting an HTML 500 error, and usually I would check the PHP error log. Does anyone know how to check the log without having to access /var/log/apache2/
?
Thanks!
Upvotes: 3
Views: 2476
Reputation: 537
Try setting the error log to somewhere else where you can access it, using the function ini_set in your php script e.g.,
ini_set('error_log','/home/username/error.log');
Upvotes: 4