Commit 155cc0df authored by tbrehm's avatar tbrehm
Browse files

Fixed chroot detection in apache2 plugin.

parent b2b3b163
...@@ -236,7 +236,7 @@ class apache2_plugin { ...@@ -236,7 +236,7 @@ class apache2_plugin {
$web_config = $app->getconf->get_server_config($conf["server_id"], 'web'); $web_config = $app->getconf->get_server_config($conf["server_id"], 'web');
//* Check if this is a chrooted setup //* Check if this is a chrooted setup
if($web_config['website_basedir'] != '' && @is_file($web_config['/var/www'].'/etc/passwd')) { if($web_config['website_basedir'] != '' && @is_file($web_config['website_basedir'].'/etc/passwd')) {
$apache_chrooted = true; $apache_chrooted = true;
$app->log("Info: Apache is chrooted.",LOGLEVEL_DEBUG); $app->log("Info: Apache is chrooted.",LOGLEVEL_DEBUG);
} else { } else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment