Reputation: 10526
I am hosting a web application on a 1and1 Basic plan.
I have tried setting up php error logging, by following their instructions, and thus have set up php.ini
as follows :
error_reporting = E_ALL | E_STRICT
log_errors = On
display_errors = Off
error_log = /homepages/31/d704704531/htdocs/logs/php-errors.log
However it is not working, the file is not being created, I don't see an error message anywhere.
Upvotes: 6
Views: 8700
Reputation: 1
Here is the solution, that worked for me:
error_reporting = E_ALL | E_STRICT;
log_errors = On;
display_errors = Off;
error_log = ./php-errors.log;
This will put the erro-logfile in the same folder where you put the php.ini, I did that in the folder, where my custom php files are.
Upvotes: 0
Reputation: 10526
The problem is that the destination file is in the logs
folder, which is read only.
This is silly, but one needs to point the logs to another destination, for example :
error_reporting = E_ALL | E_STRICT
log_errors = On
display_errors = Off
error_log = /homepages/31/d704704531/htdocs/mylogs/php-errors.log
Upvotes: 14