Feature #2801
closedDisplay (all) PHP logs in the Web UI
0%
Description
I am currently debugging PHP authentication for OpenVPN and when running the script from the shell I got a PHP Warning which might or might not be useful. It would have been helpful if I had seen this in the Web UI. Digging into the PHP config I found out that the error_log is set to /tmp/PHP_errors.log. And indeed, here are my Warnings:
[07-Feb-2013 10:35:40] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:35:40] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:35:40] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:42:37] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:42:37] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:42:37] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:43:21] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:43:21] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 10:43:21] PHP Warning: in_array(): Wrong datatype for second argument in /usr/local/www/system_certmanager.php on line 810
[07-Feb-2013 12:02:39] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:08:42] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:12:14] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:12:33] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:14:44] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:16:01] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
[07-Feb-2013 12:22:56] PHP Warning: ldap_connect(): Could not create session handle: Bad parameter to an ldap routine in /etc/inc/auth.inc on line 1017
It would be ice if either this file would be available via the Logging section of the Web UI or error_log was set to syslog so we got these information from the standard place.