Skip to content

Commit 136205e

Browse files
committed
Fixed: FS#1022 - PMA problem with open_basedir
1 parent 2cbff3b commit 136205e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server/conf/php-fcgi-starter.master

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export PHP_DOCUMENT_ROOT
1010
PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'>
1111
export PHP_FCGI_MAX_REQUESTS
1212
exec <tmpl_var name='php_fcgi_bin'> \
13-
<tmpl_if name="security_level" op="==" value="20"> -d open_basedir=<tmpl_var name='document_root'> \
13+
<tmpl_if name="security_level" op="==" value="20"> -d open_basedir="<tmpl_var name='document_root'>:/usr/share/php5:/tmp:/usr/share/phpmyadmin" \
1414
-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \
1515
-d session.save_path=<tmpl_var name='document_root'>/tmp \
1616
</tmpl_if> $1

server/conf/vhost.conf.master

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
9797
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
9898
<tmpl_if name='security_level' op='==' value='20'>
99-
php_admin_value open_basedir <tmpl_var name='document_root'>/web:<tmpl_var name='document_root'>/tmp:/usr/share/php5
99+
php_admin_value open_basedir <tmpl_var name='document_root'>/web:<tmpl_var name='document_root'>/tmp:/usr/share/php5:/tmp:/usr/share/phpmyadmin
100100
</tmpl_if>
101101
</tmpl_if>
102102
<tmpl_if name='php' op='==' value='suphp'>
@@ -257,7 +257,7 @@
257257
php_admin_value upload_tmp_dir <tmpl_var name='document_root'>/tmp
258258
php_admin_value session.save_path <tmpl_var name='document_root'>/tmp
259259
<tmpl_if name='security_level' op='==' value='20'>
260-
php_admin_value open_basedir <tmpl_var name='document_root'>/web:<tmpl_var name='document_root'>/tmp:/usr/share/php5:/tmp
260+
php_admin_value open_basedir <tmpl_var name='document_root'>/web:<tmpl_var name='document_root'>/tmp:/usr/share/php5:/tmp:/usr/share/phpmyadmin
261261
</tmpl_if>
262262
</tmpl_if>
263263
<tmpl_if name='php' op='==' value='suphp'>

0 commit comments

Comments
 (0)