Till, I'm not quite sure how this is to be implemented. Please help enlighten me.
1) create /var/www/php-fcgi-scripts/
2) copy /etc/php.ini into above directory
3) create subdirectories webXX for all domains that will have custom php (web11, web13, web20, web39)
4) create file .php-fcgi-starter and add the following code:
Code:
#!/bin/sh
PHPRC="<tmpl_var name='php_ini_path'>"
export PHPRC
PHP_DOCUMENT_ROOT="<tmpl_var name='document_root'>"
export PHP_DOCUMENT_ROOT
# The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache
# mod_fcgi will control the number of childs themself and never use the additional processes.
# PHP_FCGI_CHILDREN=<tmpl_var name='php_fcgi_children'>
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=<tmpl_var name='php_fcgi_max_requests'>
export PHP_FCGI_MAX_REQUESTS
# merge main and local configuraton files
FILECONF="php-local.ini"
rm -f ${FILECONF}
cat ${PHPRC}php.ini php.ini > ${FILECONF}
chmod 444 ${FILECONF}
exec <tmpl_var name='php_fcgi_bin'> \
<tmpl_if name="security_level" op="==" value="20"> -d open_basedir="<tmpl_var name='open_basedir'>" \
-d upload_tmp_dir=<tmpl_var name='document_root'>/tmp \
-d session.save_path=<tmpl_var name='document_root'>/tmp \
</tmpl_if> -c ${FILECONF} $1
5) in subdirectories, create php-local.ini files and add variables that are wanted:
Code:
max_execution_time = 300
max_file_size = 30M
But, what next? How does this get inserted into the apache directives generated by ISPCONFIG?
I'd love to see a standard guide for this.
I did message the original poster on this process, but never heard back.
Please, help me out. I'm sure others would love to know the step-by-step as well.
Recent comments
1 day 3 hours ago
1 day 9 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 23 hours ago
2 days 9 hours ago
2 days 10 hours ago
2 days 13 hours ago
2 days 18 hours ago
2 days 18 hours ago