Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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!

like image 602
jeffery_the_wind Avatar asked Jan 23 '26 11:01

jeffery_the_wind


1 Answers

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');

like image 175
Jon E Avatar answered Jan 26 '26 01:01

Jon E



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!