Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
lolo888
ISPConfig 3
Commits
0930f5fc
Commit
0930f5fc
authored
Apr 02, 2011
by
laking
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added bugfix for php_open_basedir when client changes. line 293.
parent
e0db878e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
server/plugins-available/apache2_plugin.inc.php
server/plugins-available/apache2_plugin.inc.php
+3
-0
No files found.
server/plugins-available/apache2_plugin.inc.php
View file @
0930f5fc
...
...
@@ -290,6 +290,9 @@ class apache2_plugin {
exec
(
'mv '
.
$data
[
'old'
][
'document_root'
]
.
' '
.
$new_dir
);
$app
->
log
(
'Moving site to new document root: mv '
.
$data
[
'old'
][
'document_root'
]
.
' '
.
$new_dir
,
LOGLEVEL_DEBUG
);
// Handle the change in php_open_basedir
$data
[
'new'
][
'php_open_basedir'
]
=
str_replace
(
$data
[
'old'
][
'document_root'
],
$data
[
'new'
][
'document_root'
],
$data
[
'old'
][
'php_open_basedir'
]);
//* Change the owner of the website files to the new website owner
exec
(
'chown --recursive --from='
.
escapeshellcmd
(
$data
[
'old'
][
'system_user'
])
.
':'
.
escapeshellcmd
(
$data
[
'old'
][
'system_group'
])
.
' '
.
escapeshellcmd
(
$data
[
'new'
][
'system_user'
])
.
':'
.
escapeshellcmd
(
$data
[
'new'
][
'system_group'
])
.
' '
.
$new_dir
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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