Skip to content

Commit 66d0cbc

Browse files
committed
Link to PHP error log from the Nginx module as well
1 parent fef0232 commit 66d0cbc

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

lang/en

+1
Original file line numberDiff line numberDiff line change
@@ -477,6 +477,7 @@ links_anlog=Nginx Access Log
477477
links_enlog=Nginx Error Log
478478
links_phpini=PHP-FPM Configuration
479479
links_phpini2=PHP $1 Configuration
480+
links_phplog=PHP Error Log
480481

481482
webmin_phpini=PHP configuration for $1
482483
webmin_phpini2=PHP $2 configuration for $1

virtual_feature.pl

+16
Original file line numberDiff line numberDiff line change
@@ -1099,6 +1099,22 @@ sub feature_links
10991099
}
11001100
}
11011101

1102+
# Link to PHP log, if enabled
1103+
my $phplog;
1104+
if (defined(&virtual_server::get_domain_php_error_log)) {
1105+
$phplog = &get_domain_php_error_log::get_domain_php_error_log($d);
1106+
}
1107+
if ($phplog) {
1108+
my $param = &virtual_server::master_admin() ? "file" : "extra";
1109+
push(@rv, { 'mod' => 'syslog',
1110+
'desc' => $text{'links_phplog'},
1111+
'page' => "save_log.cgi?view=1&nonavlinks=1".
1112+
"&linktitle=".&urlize($text{'links_phplog'})."&".
1113+
"$param=".&urlize($phplog),
1114+
'cat' => 'logs',
1115+
});
1116+
}
1117+
11021118
# Links to edit PHP configs
11031119
my $mode = &feature_get_web_php_mode($d);
11041120
if ($mode eq "fcgid") {

0 commit comments

Comments
 (0)