Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
8d01eb0e
Commit
8d01eb0e
authored
Mar 09, 2010
by
tbrehm
Browse files
Added missing path /var/www/domain.tld/web to the php open basedir path.
parent
022d53cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
install/tpl/apache_ispconfig_fcgi_starter.master
View file @
8d01eb0e
...
...
@@ -3,4 +3,4 @@ PHPRC=/etc/php5/cgi/
export
PHPRC
export
PHP_FCGI_MAX_REQUESTS
=
5000
export
PHP_FCGI_CHILDREN
=
1
exec
/usr/lib/cgi-bin/php
-d
magic_quotes_gpc
=
off
\ No newline at end of file
exec
/usr/lib/cgi-bin/php
-d
magic_quotes_gpc
=
off
-d
session.save_path
=
/usr/local/ispconfig/server/temp
\ No newline at end of file
install/tpl/server.ini.master
View file @
8d01eb0e
...
...
@@ -44,7 +44,7 @@ group=www-data
apps_vhost_port=8081
apps_vhost_ip=_default_
apps_vhost_servername=
php_open_basedir=[website_path]/web:[website_path]/tmp:/usr/share/php5:/tmp:/usr/share/phpmyadmin
php_open_basedir=[website_path]/web:[website_path]/tmp:/
var/www/[website_domain]/web:/srv/www/[website_domain]/web:/
usr/share/php5:/tmp:/usr/share/phpmyadmin
htaccess_allow_override=All
[dns]
...
...
interface/web/sites/web_domain_edit.php
View file @
8d01eb0e
...
...
@@ -316,7 +316,8 @@ class page_action extends tform_actions {
$system_user
=
$app
->
db
->
quote
(
'web'
.
$this
->
id
);
$system_group
=
$app
->
db
->
quote
(
'client'
.
$client_id
);
$document_root
=
$app
->
db
->
quote
(
str_replace
(
"[client_id]"
,
$client_id
,
$document_root
));
$php_open_basedir
=
$app
->
db
->
quote
(
str_replace
(
"[website_path]"
,
$document_root
,
$web_config
[
"php_open_basedir"
]));
$php_open_basedir
=
str_replace
(
"[website_path]"
,
$document_root
,
$web_config
[
"php_open_basedir"
]);
$php_open_basedir
=
$app
->
db
->
quote
(
str_replace
(
"[website_domain]"
,
$web_rec
[
'domain'
],
$php_open_basedir
));
$htaccess_allow_override
=
$app
->
db
->
quote
(
$web_config
[
"htaccess_allow_override"
]);
$sql
=
"UPDATE web_domain SET system_user = '
$system_user
', system_group = '
$system_group
', document_root = '
$document_root
', allow_override = '
$htaccess_allow_override
', php_open_basedir = '
$php_open_basedir
' WHERE domain_id = "
.
$this
->
id
;
...
...
@@ -438,7 +439,8 @@ class page_action extends tform_actions {
$app
->
db
->
query
(
$sql
);
}
if
(
$web_rec
[
'php_open_basedir'
]
==
''
)
{
$php_open_basedir
=
$app
->
db
->
quote
(
str_replace
(
"[website_path]"
,
$document_root
,
$web_config
[
"php_open_basedir"
]));
$php_open_basedir
=
str_replace
(
"[website_path]"
,
$document_root
,
$web_config
[
"php_open_basedir"
]);
$php_open_basedir
=
$app
->
db
->
quote
(
str_replace
(
"[website_domain]"
,
$web_rec
[
'domain'
],
$php_open_basedir
));
$sql
=
"UPDATE web_domain SET php_open_basedir = '
$php_open_basedir
' WHERE domain_id = "
.
$this
->
id
;
$app
->
db
->
query
(
$sql
);
}
...
...
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