Index: [Article Count Order] [Thread]

Date:  Sat, 5 Sep 2009 15:29:43 +0100
From:  "Colin Jack" <colin (at mark) mainline.co.uk>
Subject:  [coba-e:15998] Re: Allowing Vhosts extra PHP privs
To:  <coba-e (at mark) bluequartz.org>
Message-Id:  <45DACA7BE1DEA245AF6C95E5B94E531B1C94F37BD5 (at mark) datastore.mainline.local>
In-Reply-To:  <4AA14E49.8000101 (at mark) zbronx.com>
References:  <45DACA7BE1DEA245AF6C95E5B94E531B1C94F37BBB (at mark) datastore.mainline.local> <4AA14E49.8000101 (at mark) zbronx.com>
X-Mail-Count: 15998


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

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


Got it working but had to use 

Php_admin_value rather than php_flag

Hope this helps someone else faced with a similar issue.

Thanks for your help

Colin



Mainline company details are available at http://www.mainline.co.uk/disclosure.html