Hi,
I would like to dynamically set php error log locations to store errors in a per-user location thats centralised (rather then relative to the script.
According to the php config file docs you can refer to environment variables in the ini files using the format ${ENVIRONMENT_VARIABLE}, and I was hoping to store the following in the global altphp ini so that it occurs for all users on the server by defaut.
Something like
error_log = "${PATHTOUSERHOME}/php_errors/${ALTPHPVERSION}_error.log"
or
error_log = "/var/log/php/${USER}_${ALTPHPVERSION}_error.log"
Does anyone know if there are some environment variables set inside cloudlinux that I can use to achieve this? Im running on a directadmin server with apache and the default php running under lsphp. All users are caged in cagefs.
I would like to dynamically set php error log locations to store errors in a per-user location thats centralised (rather then relative to the script.
According to the php config file docs you can refer to environment variables in the ini files using the format ${ENVIRONMENT_VARIABLE}, and I was hoping to store the following in the global altphp ini so that it occurs for all users on the server by defaut.
Something like
error_log = "${PATHTOUSERHOME}/php_errors/${ALTPHPVERSION}_error.log"
or
error_log = "/var/log/php/${USER}_${ALTPHPVERSION}_error.log"
Does anyone know if there are some environment variables set inside cloudlinux that I can use to achieve this? Im running on a directadmin server with apache and the default php running under lsphp. All users are caged in cagefs.
Comment