Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lolo888
ISPConfig 3
Commits
155cc0df
Commit
155cc0df
authored
Sep 02, 2009
by
tbrehm
Browse files
Fixed chroot detection in apache2 plugin.
parent
b2b3b163
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/plugins-available/apache2_plugin.inc.php
View file @
155cc0df
...
...
@@ -236,7 +236,7 @@ class apache2_plugin {
$web_config
=
$app
->
getconf
->
get_server_config
(
$conf
[
"server_id"
],
'web'
);
//* 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
;
$app
->
log
(
"Info: Apache is chrooted."
,
LOGLEVEL_DEBUG
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment