简体   繁体   English

如何在1和1主机上获取PHP登录

[英]How to get php logs on 1and1 hosting

I am hosting a web application on a 1and1 Basic plan. 我正在1and1 Basic计划上托管一个Web应用程序。

I have tried setting up php error logging, by following their instructions , and thus have set up php.ini as follows : 我已经尝试通过按照他们的指示设置php错误日志记录,因此设置了php.ini ,如下所示:

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. 但是它不起作用,文件没有被创建,我没有看到任何地方的错误消息。

The problem is that the destination file is in the logs folder, which is read only. 问题是目标文件位于logs文件夹中,该文件夹是只读的。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM