for about a day I'm trying to find a way to see php logs on a server by godaddy where wordpress is hosted. I can ssh to the server, but I'm not able to edit the php.ini because it's readonly. I've read that it would be possible to add a custom php.ini to change some settings. I've put one in the public folder where the wordpress site is located and added the line:
error_log = "/php_error.log"
In the same folder I've created the file php_error.log and set the following permissions:
-rw-rw----
As this seemed not to work, I've tried an approach editing the .htaccess file.
# log php errors
php_flag display_startup_errors off
php_flag display_errors off
php_flag html_errors off
php_flag log_errors on
php_value error_log /php_error.log
Still I don't see any errors in the file. Is it a problem of the permissions of the error file or should the path be different e.g. html/php_error.log ?