|
Posted by Chuck Anderson on 07/27/06 05:10
J.J.SOLARI wrote:
> Chuck Anderson <websiteaddress@seemy.sig> wrote:
>
>
>> Does anyone have any idea what kind of configuration they used that
>> allowed the local php ini files to be used?
>>
>> Is there an Apache configuration directive needed to allow php
>> directives in the htaccess file?
>>
>
> Chuck,
>
> If PHP is running as a CGI, you could use the special environment
> variable PHPRC (see <http://www.php.net/manual/en/configuration.php>)
>
> In your htaccess file, you would then have:
>
> SetEnv PHPRC /path/to/your/php.ini
>
> hih,
>
> JJS.
>
Thanks. Php is running as a cgi at my web host, so I tried what you
said, ... but no luck. I cannot set the Environment variable PHPRC.
I wonder if permission has to be granted in httpd.conf.
(Note: while researching this I found that you should specify the path
to the directory php.ini is in, not to the file itself. i.e.,
/path/to/your/phpinidirectory)
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Everyone's journey should be different,
so that we all are enriched
in new and endless ways
*****************************
Navigation:
[Reply to this message]
|