Skip to content

Commit abd9b23

Browse files
committed
Added openbasedir restriction to fcgi starter script.
1 parent d77bc7a commit abd9b23

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

server/conf/php-fcgi-starter.master

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,8 @@ PHP_FCGI_CHILDREN=<tmpl_var name='php_fcgi_children'>
77
export PHP_FCGI_CHILDREN
88
PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'>
99
export PHP_FCGI_MAX_REQUESTS
10-
exec <tmpl_var name='php_fcgi_bin'> $1
10+
exec <tmpl_var name='php_fcgi_bin'> \
11+
-d open_basedir=<tmpl_var name='document_root'> \
12+
-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \
13+
-d session.save_path=<tmpl_var name='document_root'>/tmp \
14+
$1

0 commit comments

Comments
 (0)