jeffery_the_wind
jeffery_the_wind

Reputation: 18228

Where to see PHP error log if no access to /var/log/apache

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

Answers (1)

Jon E
Jon E

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

Related Questions