Php lamp stack localhost使用vagrant-未在system.log或exception.log的var/log中获取任何错误消息
这是一个magento 12 ee版本。。。我研究了一些核心代码,特意更改了一个用于日志异常的方法,以查看是否会抛出错误。它破坏了我的商店(就像我怀疑的那样),我在前端收到了错误消息,但它没有写入我的日志Php lamp stack localhost使用vagrant-未在system.log或exception.log的var/log中获取任何错误消息,php,magento,exception,logging,Php,Magento,Exception,Logging,这是一个magento 12 ee版本。。。我研究了一些核心代码,特意更改了一个用于日志异常的方法,以查看是否会抛出错误。它破坏了我的商店(就像我怀疑的那样),我在前端收到了错误消息,但它没有写入我的日志 System => Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 Build Date => Apr 17 2015 15:09:58 Server API =
System => Linux precise64 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64
Build Date => Apr 17 2015 15:09:58
Server API => Command Line Interface
Virtual Directory Support => disabled
Configuration File (php.ini) Path => /etc/php5/cli
Loaded Configuration File => /etc/php5/cli/php.ini
Scan this dir for additional .ini files => /etc/php5/cli/conf.d
Additional .ini files parsed => /etc/php5/cli/conf.d/00-ioncube.ini,
我刚刚检查完日志文件夹的权限,它设置为755
在管理面板的系统首选项中,它已打开=是
public static function getVersionInfo()
{
return array(
'major' => '1',
'minor' => '12',
'revision' => '0',
'patch' => '2',
有什么想法吗
File: `log/'
Size: 238 Blocks: 8 IO Block: 8192 directory
Device: 14h/20d Inode: 13844008 Links: 7
Access: (0755/drwxr-xr-x) Uid: ( 502/ UNKNOWN) Gid: ( 20/ dialout)
Access: 2016-03-12 00:55:11.000000000 +0000
Modify: 2016-02-17 22:01:01.000000000 +0000
Change: 2016-03-12 00:48:17.000000000 +0000
Birth: -
vagrant@precise64:/vagrant/var$ echo $UID
1000
vagrant@precise64:/vagrant/var$ id -u <username>
-bash: syntax error near unexpected token `newline'
vagrant@precise64:/vagrant/var$ id -u
1000
vagrant@precise64:/vagrant/var$
文件:`log/'
大小:238块:8 IO块:8192目录
设备:14h/20d索引节点:1384408链接:7
访问:(0755/drwxr-xr-x)Uid:(502/未知)Gid:(20/拨号)
访问:2016-03-12 00:55:11.000000000+0000
修改:2016-02-17 22:01:01.000000000+0000
变更:2016-03-12 00:48:17.000000000+0000
出生:-
vagrant@precise64:/vagrant/var$echo$UID
1000
vagrant@precise64:/vagrant/var$id-u
-bash:意外标记“换行符”附近出现语法错误
vagrant@precise64:/vagrant/var$id-u
1000
vagrant@precise64:/vagrant/var$
谁是日志文件夹的所有者?755仅在web服务器用户是所有者的情况下才起作用,您可以使用chown apache:apache var/log
(或者用apache替换web用户名)。我得到UID 502/unknown。我怀疑这就是问题所在。我该如何修复它?这看起来会导致问题吗?我的stat命令在上面的原始问题中被省略了。如果你有时间,请看一看,帮我解决一下@MattOUid 502是主机的登录uid。你的网站是如何运行的?在流浪汉里面还是在外面?谁是日志文件夹的所有者?755仅在web服务器用户是所有者的情况下才起作用,您可以使用chown apache:apache var/log
(或者用apache替换web用户名)。我得到UID 502/unknown。我怀疑这就是问题所在。我该如何修复它?这看起来会导致问题吗?我的stat命令在上面的原始问题中被省略了。如果你有时间,请看一看,帮我解决一下@MattOUid 502是主机的登录uid。你的网站是如何运行的?在里面流浪还是在外面?