$ grep error_log php.ini
error_log = ~/logs/error.log
On 30/04/2022 11:26, Fx ROOM wrote:
$ grep error_log php.ini
error_log = ~/logs/error.log
Not sure php.ini will support file path substitutions in error_log, you
will also need to enable logging before php will log something
(log_errors = on). I think using a full path tends to work better.
Also you need to keep in mind that the php executing user needs that the directory already exists, the user has write permission in the directory
and also has execution permission on all the directories from root to
the directory where to store the log file.
$ grep error_log php.ini
error_log = ~/logs/error.log
$ php -i|grep error_log
error_log => -1 => -1
That's no good.
Solution?
$ grep error_log php.ini
error_log = %HOME%/logs/error.log
$ php -i|grep error_log
error_log => %HOME%/logs/error.log => %HOME%/logs/error.log
That's not good either.
Solution?
$ grep error_log php.ini
error_log = ~/logs/error.log
$ php -i|grep error_log
error_log => -1 => -1
That's no good.
Solution?
$ grep error_log php.ini
error_log = %HOME%/logs/error.log
$ php -i|grep error_log
error_log => %HOME%/logs/error.log => %HOME%/logs/error.log
That's not good either.
Solution?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 351 |
Nodes: | 16 (2 / 14) |
Uptime: | 28:54:29 |
Calls: | 7,634 |
Files: | 12,796 |
Messages: | 5,688,779 |