UPWORK/ODESK guru: Tips and Tricks for clients

skype: upwork.link , email: info@upwork.link

How to Get Your php.ini Path with SuPHP

without comments

You can specify which php.ini file is used within a certain directory if you have multiple php.ini files.

To do this, edit your .htaccess file located in the directory you wish to use and add the following .htaccess code:

The code below uses “/path/to/folder/php.ini” as the location of the php.ini file. Be sure to replace this with the correct path to your preferred php.ini file.

 
# cat .htaccess
<IfModule mod_suphp.c>
suPHP_ConfigPath /path/to/folder
<Files php.ini>
order allow,deny
deny from all
</Files>
</IfModule>

Save your .htaccess file and enjoy!

If you do not use this option, PHP will use the server’s default php.ini path.

Written by spectre

February 18th, 2014 at 1:56 am

Posted in Php

Leave a Reply

*