Marius Cramer
2014-02-17 ebbe6374fc9c308daf729d2ad1b2f8007ed771ce
commit | author | age
dbb5b8 1 #!/bin/sh
D 2 PHPRC="<tmpl_var name='php_ini_path'>"
3 export PHPRC
4 PHP_DOCUMENT_ROOT="<tmpl_var name='document_root'>"
5 export PHP_DOCUMENT_ROOT
386d5b 6 # The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache 
T 7 # mod_fcgi will control the number of childs themself and never use the additional processes.
8 # PHP_FCGI_CHILDREN=<tmpl_var name='php_fcgi_children'>
9 # export PHP_FCGI_CHILDREN
dbb5b8 10 PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'>
D 11 export PHP_FCGI_MAX_REQUESTS
abd9b2 12 exec <tmpl_var name='php_fcgi_bin'> \
c8cf71 13 <tmpl_if name="security_level" op="==" value="20"> -d open_basedir="<tmpl_var name='open_basedir'>" \
abd9b2 14 -d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \
T 15 -d session.save_path=<tmpl_var name='document_root'>/tmp \
f63910 16 -d sendmail_path="/usr/sbin/sendmail -t -i -fwebmaster@<tmpl_var name='domain'>" \
6fb602 17 </tmpl_if> $1