htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Using SetEnv to instruct php to use custom php.ini
PostPosted: 27 Sep 2006 07:17 
Offline
User avatar

Joined: 25 Sep 2006 04:48
Posts: 242
In many installations of php, when run, php looks for the php.ini file in several different places. One of those places that we can change is the PHPRC server environment variable.

Code:
SetEnv PHPRC /wwwroot/inc


That will tell php to look for php.ini in that directory


Top
 Profile  
 
 Post subject: Re: Using SetEnv to instruct php to use custom php.ini
PostPosted: 19 Aug 2008 01:47 
Offline

Joined: 19 Aug 2008 01:40
Posts: 1
Hello All,

I was hoping you could help me with a problem.

I use 1and1 I have both Managed & Shared packages but i can not get

Code:
SetEnv PHPRC /wwwroot/inc


to work. I have been searching the net until I am blue in the face but can't figure it out.

I have a script that uses ioncube and unless I place the php.ini file I created in all directories that have encrypted files, the script fails. There are a lot of directories and I'm afraid I'm going to miss one.

I have changed the path to the directory containing my php.ini file and I have tried it with an without quotes.

What I have found is that I think it may be that it's using php as CGI but I'm not sure.

Any help would be appreciated.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB