Where to see PHP error log if no access to /var/log/apache
-
18-06-2021 - |
Вопрос
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!
Решение
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');
Не связан с StackOverflow