Skip to content

Commit 5686edb

Browse files
author
Till Brehm
committed
Apache binary is not recognized correctly on CentOS 7 in http restart method.
1 parent f02be96 commit 5686edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/mods-available/web_module.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ function restartHttpd($action = 'restart') {
203203
$daemon = $web_config['server_type'];
204204
break;
205205
default:
206-
if(is_file($conf['init_scripts'] . '/' . 'httpd')) {
206+
if(is_file($conf['init_scripts'] . '/' . 'httpd') || is_dir('/etc/httpd')) {
207207
$daemon = 'httpd';
208208
} else {
209209
$daemon = 'apache2';

0 commit comments

Comments
 (0)