Select an another php.ini path

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
emilien
-


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 1:40 am    Post subject: Select an another php.ini path Reply with quote

Hello,

I got a problem ...
I'have just install Abyss X1, then i have added php 5.1.2.
But i don't want php to look in c:\windows\php.ini.

So in the "script parameter", in the Interpreters argument I wrote :
"--with-config-file-path=G:/php/php.ini-recommended.ini"

But when I execute a phpinfo(), the path to the php.ini is still c:\windows\

Someone knows why ?

Have a good day.


Emilien
Back to top View user's profile Send private message
MonkeyNation
-


Joined: 05 Feb 2005
Posts: 921
Location: Cardiff

PostPosted: Wed Feb 08, 2006 9:52 am    Post subject: Reply with quote

Where did you see that? Looks more like a compilation option to me.
Code:
  -c <path>|<file> Look for php.ini file in this directory

Try that instead.
_________________
Back to top View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Feb 08, 2006 11:30 am    Post subject: Re: Select an another php.ini path Reply with quote

emilien,

You can add a command line parameter to PHP or add a custom environment variable to instruct it to use another php.ini. See how we suggest to do that in the instructions of "Adding PHP 5 support" in http://www.aprelium.com/abyssws/php5win.html .
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
emilien
-


Joined: 08 Feb 2006
Posts: 4

PostPosted: Wed Feb 08, 2006 2:30 pm    Post subject: Reply with quote

Hello,

Thank you for your quick and clear answer, I'll test this tonight.

Have a nice day :)
Back to top View user's profile Send private message
kev1952
-


Joined: 08 Sep 2005
Posts: 105
Location: Townsville Australia

PostPosted: Fri Feb 10, 2006 8:41 am    Post subject: Reply with quote

WHEN I installed PHP5 on my system I simply put it into a directory of my choice ("D:\PHP") and then told Abyss where it was. PHP checks it's own root directory for PHP.INI during it's path search - so if it's there then it will find it.
_________________
Cheers.... Kev

Kev's Place - http://www.kevsplace.com

Powered by Abyss X1.
Back to top View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB phpBB Group