server/mods-available/web_module.inc.php
@@ -129,17 +129,17 @@ function restartHttpd($action = 'restart') { global $app; $command = ''; if(is_file('/etc/init.d/httpd')) { $command = '/etc/init.d/httpd'; $daemon = ''; if(is_file($conf['init_scripts'] . '/' . 'httpd')) { $daemon = 'httpd'; } else { $command = '/etc/init.d/apache2'; $daemon = 'apache2'; } if($action == 'restart') { exec($command.' restart'); exec($conf['init_scripts'] . '/' . $daemon . ' restart'); } else { exec($command.' reload'); exec($conf['init_scripts'] . '/' . $daemon . ' reload'); } }