View Single Post
  #3  
Old 5th April 2012, 00:26
softstein softstein is offline
Junior Member
 
Join Date: Apr 2012
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Yes kwickcut, I did restart the apache. no effect. And I changed the value in all three php.ini's. No effect either.

But meanwhile I found other workarounds. They do not work on global scope but that's better than no scope at all

#1: pimping the starter script (in this case /home/www/php-fcgi-scripts/web2/.php-fcgi-starter ) so that it reads (mind the last line before $1)

Code:
#!/bin/sh
PHPRC="/var/www/conf/web2"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client1/web2"
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=8
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 -d open_basedir="/var/www/clients/client1/web2/web:/var/www/clients/client1/web2/tmp:/usr/share/php5:/tmp:/usr/share/typo3" \
-d upload_tmp_dir=/var/www/clients/client1/web2/tmp \
-d session.save_path=/var/www/clients/client1/web2/tmp \
-d upload_max_filesize=20M \
 $1
or, way more elegantly

#2: using .user.ini
by creating a file .user.ini in the web/ folder (should be found automatically) which contains
Code:
upload_max_filesize=20M
And that's just it. Hope it helps anyone.
Reply With Quote