Re: pear does not respect directories in pear.ini

[email protected] (MC)
Newsgroups php.pear.general
Message-ID <[email protected]>
On 26. 2. 2013 20:14, Mads Lie Jensen wrote:
> Hi
>
>  > I have installed PEAR on PHP 5.4 using go-pear.phar command and chosen
>  > the following directories (pear.ini is stored in D:\PF\PHP\pear.ini):
>  >
>  > However, when I use "pear channel-discover" or "pear install" commands
>  > it uses the default directories instead of the one specified in
>  > pear.ini. See the examples bellow.
>  >
>  > How to fix it?
>
> Are you sure that pear is using the settings from that file? I do not
> know how pear works on windows, on my linuxbox it uses .pearrc in my
> home-directory and  /etc/php5/cli/pear.conf as system configuration file.
>
> Try running 'pear config-show' to see the paths it is using.

Hi,

yes, you are right. I was too naive that setting that directories in 
installer would do its best to make it work. However, even running the 
*.reg file designed to store the directories in the OS path variables is 
not enough as it does not get into effect until the OS restarts (or at 
least until the user logs off/logs in).

After I have restarted the OS it started to show the correct directories.

MC
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.