[BlueOnyx:01046] Re: Individual Site php.ini?

Ken Marcus - Precision Web Hosting, Inc. kenmarcus at precisionweb.net
Fri Apr 10 12:53:35 -05 2009


----- Original Message ----- 
From: "Jeff Mutschler | M Media" <Jeff_Mutschler at mmediausa.com>
To: "BlueOnyx General Mailing List" <blueonyx at blueonyx.it>
Sent: Friday, April 10, 2009 10:13 AM
Subject: [BlueOnyx:01043] Individual Site php.ini?


>I need to edit php.ini just for one site, where do I find that? For
> instance, I needed to turn off safe_mode, painless through the gui, but
> I still need to enable register_long_arrays.
> _______________________________________________


Jeff

As someone else already mentioned, you'd just add a directive to the 
include file for that site.
For example,

ls -la /home/sites/ | grep somesite.com

   and it shows that it is site20
   Then edit

pico -w /etc/httpd/conf/vhosts/site20.include

and add something like

    php_value register_long_arrays On
    php_admin_value open_basedir 
/home/.sites/80/site20/web:/home/tmp:/tmp:/usr/bin/pear:/usr/share/pear


or in that same file

<Directory  /home/.sites/80/site20/web>
    php_value register_long_arrays On
    php_admin_value open_basedir 
/home/.sites/80/site20/web:/home/tmp:/tmp:/usr/bin/pear:/usr/share/pear
</Directory>



Then
/etc/rc.d/init.d/httpd reload

----
Ken Marcus
Ecommerce Web Hosting by
Precision Web Hosting, Inc.
http://www.precisionweb.net






More information about the Blueonyx mailing list