简体   繁体   English

如何从Codeanywhere看到PHP错误日志?

[英]How can I see the PHP error log from Codeanywhere?

I'm working with Phalcon using the Codeanywhere and I'm getting error 500 because of some changes that I've made. 我正在使用Codeanywhere与Phalcon合作,由于进行了一些更改,因此出现了错误500。

My problem is that I don't know where I can find these logs. 我的问题是我不知道在哪里可以找到这些日志。

Looking at the /var/log/apache2, I don't have access even with SUDO. 查看/ var / log / apache2,即使使用SUDO也没有访问权限。

This is what I have at public/index.php 这是我在public / index.php上拥有的

error_reporting(E_ALL);

So any idea? 有什么想法吗?

sudo yum install mc && sudo mc sudo yum install mc && sudo mc

And you will be root. 而且你将是根。 Then view files as you need. 然后根据需要查看文件。

You can view the logs as a user with more privileges. 您可以以具有更多特权的用户身份查看日志。 For example, running sudo su - and then navigating to /var/log/apache2 will do the trick. 例如,运行sudo su -然后导航到/var/log/apache2将解决问题。

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

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