Index: [Article Count Order] [Thread]

Date:  Fri, 04 Sep 2009 18:28:41 +0100
From:  Gustavo Silva <pseudo (at mark) zbronx.com>
Subject:  [coba-e:15990] Re: Allowing Vhosts extra PHP privs
To:  coba-e (at mark) bluequartz.org
Message-Id:  <4AA14E49.8000101 (at mark) zbronx.com>
In-Reply-To:  <45DACA7BE1DEA245AF6C95E5B94E531B1C94F37BBB (at mark) datastore.mainline.local>
References:  <45DACA7BE1DEA245AF6C95E5B94E531B1C94F37BBB (at mark) datastore.mainline.local>
X-Mail-Count: 15990

Colin Jack escreveu:
> We have a client site on a BQ server who needs the PHP post_max_size increasing from the default for the server.
>
> I want to limit the change to just this vsite but not sure the easiest way to do it.
>
> I tried putting 
>
> Php_flag post_max_size 80M
>
> into the vsitexx.include and restarting apache but this broke PHP for the site (running Moogle).
>
> Anybody able to give me a better way? Would an .htaccess file work?
>
> Of course it would be easy with BlueOnyx - could do it from the CCE :)
>
> Thanks
>
> Colin
>
>
>
> Mainline company details are available at http://www.mainline.co.uk/disclosure.html
>
>
>   

Colin,

On your vsitexx.include file add this:

# /etc/httpd/conf/vhosts/sitexx.include
# user customizations can be added here.
<Directory "/home/.sites/xxx/sitexx/web">
   AllowOverride All
   Options All
</Directory>


This will enable .htaccess files for that site.
Then you can put a .htaccess on the root of that site with:

php_flag post_max_size 80M




Hope this helps!
Cheers