Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get php logs on 1and1 hosting

Tags:

php

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.

like image 384
Vic Seedoubleyew Avatar asked Oct 10 '17 13:10

Vic Seedoubleyew


1 Answers

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
like image 87
Vic Seedoubleyew Avatar answered Oct 05 '22 22:10

Vic Seedoubleyew