Re: errors while installing pear for php on windows
| From: | Richard Quadling | Date: | Tue, 04 May 2010 14:35:49 +0000 |
| Subject: | Re: errors while installing pear for php on windows | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30505@lists.php.net to get a copy of this message | ||
On 4 May 2010 15:17, Bhavin Patel <bhapatel@uic.edu> wrote:
> Thanks a lot for taking your time to respond all my queries. I really
> appreciate that.
>
> But I have one last question. Should I always select system for pear to be
> installed? So it will install for all users.
>
> Bhavin
>
> -----Original Message-----
> From: Richard Quadling [mailto:rquadling@googlemail.com]
> Sent: Tuesday, May 04, 2010 9:14 AM
> To: Bhavin Patel
> Cc: pear-general@lists.php.net
> Subject: Re: [PEAR] errors while installing pear for php on windows
>
> On 4 May 2010 15:11, Bhavin Patel <bhapatel@uic.edu> wrote:
>> Hello Richard,
>>
>> I was able to do installation now.
>>
>> I had to change the $prefix directory to c:\php\pear and
>> I selected system in the beginning of installation, instead of local.
>>
>> Now I can see the reg file that you mentioned.
>>
>> Thanks,
>> Bhavin
>>
>> -----Original Message-----
>> From: Richard Quadling [mailto:rquadling@googlemail.com]
>> Sent: Tuesday, May 04, 2010 7:15 AM
>> To: Bhavin Patel
>> Cc: pear-general@lists.php.net; Desai, Mauneel
>> Subject: Re: [PEAR] errors while installing pear for php on windows
>>
>> On 3 May 2010 19:11, Bhavin Patel <bhapatel@uic.edu> wrote:
>>> Hello Richard,
>>>
>>> For some reason, this file is not present in my installation.
>>> In c:\php Only files related to pear are pear.ini, pear.bat and
>> peardev.bat.
>>>
>>> If this file is not present does it mean it was not installed properly?
>>>
>>> Thanks,
>>> Bhavin
>>>
>>>
>>> -----Original Message-----
>>> From: Richard Quadling [mailto:rquadling@googlemail.com]
>>> Sent: Sunday, May 02, 2010 4:56 AM
>>> To: Bhavin Patel
>>> Cc: pear-general@lists.php.net; Desai, Mauneel
>>> Subject: Re: [PEAR] errors while installing pear for php on windows
>>>
>>> On 2 May 2010 02:11, Bhavin Patel <bhapatel@uic.edu> wrote:
>>>> Hi Richard,
>>>>
>>>> I commented the base directory setting and after that I ran go-pear.bat.
>>>> It did install everything, but still the application we are using, says
>>> pear
>>>> is not installed.
>>>>
>>>> I have set include_path to c:\php\pear to the php.ini, but still it is
>> not
>>>> recognizing that pear is installed. Also within c:\php\pear there is
> one
>>>> more folder of pear, which contains files like validate.php, command.php
>>>> etc. Should the ini file have a pointer to this inner pear folder also?
>>>>
>>>> Thanks,
>>>> Bhavin
>>>>
>>>> -----Original Message-----
>>>> From: Richard Quadling [mailto:rquadling@googlemail.com]
>>>> Sent: Saturday, May 01, 2010 3:06 PM
>>>> To: Bhavin Patel
>>>> Cc: pear-general@lists.php.net; Desai, Mauneel
>>>> Subject: Re: [PEAR] errors while installing pear for php on windows
>>>>
>>>> On 1 May 2010 20:20, Bhavin Patel <bhapatel@uic.edu> wrote:
>>>>> Hello,
>>>>>
>>>>>
>>>>>
>>>>> I am trying to manually install pear for php on windows 2008 server.
>>>>>
>>>>> IIS 7 is web server.
>>>>>
>>>>>
>>>>>
>>>>> Most of the basic things are working fine using PHP.
>>>>>
>>>>> But when i try to run, go-pear.php file downloaded from pear.php.net.
>>>>>
>>>>> I get following errrors.
>>>>>
>>>>>
>>>>>
>>>>> I did add following paths to two varibale in php.ini. (open_base_dir
> and
>>>>> include_path).
>>>>>
>>>>> c:\inetpub\wwwroot
>>>>>
>>>>> c:\php
>>>>>
>>>>> c:\php\pear.
>>>>>
>>>>>
>>>>>
>>>>> Any ideas on why this errors are coming.
>>>>>
>>>>>
>>>>>
>>>>> Warning: realpath() [function.realpath]: open_basedir restriction in
>>>>>
>>>>> effect. File(C:\Windows\System32) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1121
>>>>>
>>>>>
>>>>>
>>>>> Warning: realpath() [function.realpath]: open_basedir restriction in
>>>>>
>>>>> effect. File(C:\Windows) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1121
>>>>>
>>>>>
>>>>>
>>>>> Warning: realpath() [function.realpath]: open_basedir restriction in
>>>>>
>>>>> effect. File(C:\Windows\System32\wbem) is not within the allowed
>>>>>
>>>>> path(s): (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line
>>>> 1121
>>>>>
>>>>>
>>>>>
>>>>> Warning: realpath() [function.realpath]: open_basedir restriction
>>>>>
>>>>> in effect. File(C:\PHP) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1121
>>>>>
>>>>>
>>>>>
>>>>> Warning: is_file() [function.is-file]: open_basedir restriction in
>>>>>
>>>>> effect. File(c:/php/cli/php.exe) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1411
>>>>>
>>>>>
>>>>>
>>>>> Warning: is_file() [function.is-file]: open_basedir restriction in
>>>>>
>>>>> effect. File(c:/php5/php.exe) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1413
>>>>>
>>>>>
>>>>>
>>>>> Warning: is_file() [function.is-file]: open_basedir restriction in
>>>>>
>>>>> effect. File(c:/php4/cli/php.exe) is not within the allowed path(s):
>>>>>
>>>>> (C:\inetpub\wwwroot) in C:\inetpub\wwwroot\go-pear.php on line 1415
>>>>>
>>>>> Go-PEAR Installer
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Below above mentioned error.
>>>>>
>>>>>
>>>>>
>>>>> Following is the list of questions being asked:
>>>>>
>>>>>
>>>>>
>>>>> 1. Installation prefix ($prefix)
>>>>>
>>>>> 2. Temporary files directory
>>>>>
>>>>> 3. Binaries directory
>>>>>
>>>>> 4. PHP code directory ($php_dir)
>>>>>
>>>>> 5. Documentation base directory
>>>>>
>>>>> 6. Data base directory
>>>>>
>>>>> 7. Tests base directory
>>>>>
>>>>> 8. PEAR Installer cache directory
>>>>>
>>>>> 9. Cache TimeToLive
>>>>>
>>>>> 10. Filename of WebFrontend
>>>>>
>>>>> 11. php.exe path, optional (CLI command tools)
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> What directory should i give for $prefix? I tried giving
>>>> c:/inetpub/wwwroot
>>>>>
>>>>> as well as c:\php\pear. None of it works and i get error saying
>>>>>
>>>>> FATAL ERROR! This directory does not exist and we can not create it.
>>>>>
>>>>> Create the directory manually or make sure we have full permission
>>>>>
>>>>> in its parent directory.
>>>>>
>>>>>
>>>>>
>>>>> Thanks,
>>>>>
>>>>>
>>>>>
>>>>> Bhavin Patel
>>>>>
>>>>> HSPIS Specialist
>>>>>
>>>>> Office of the Vice Chancellor for Research
>>>>>
>>>>> 1737 W. Polk Street
>>>>>
>>>>> B9 Administrative Office Building
>>>>>
>>>>> Chicago,IL 60612
>>>>>
>>>>> Phone:(312)413-8472
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> When PEAR is installing, it looks around the filesystem to find things
> it
>>>> needs.
>>>>
>>>> With the basedir setting enabled, it is getting in the way.
>>>>
>>>> Temporarily unset it, run the installer and set it.
>>>>
>>>> --
>>>> -----
>>>> Richard Quadling
>>>> "Standing on the shoulders of some very clever giants!"
>>>> EE : http://www.experts-exchange.com/M_248814.html
>>>> EE4Free :
>>>> http://www.experts-exchange.com/becomeAnExpert.jsp
>>>> Zend Certified Engineer :
>> http://zend.com/zce.php?c=ZEND002498&r=213474731
>>>> ZOPA : http://uk.zopa.com/member/RQuadling
>>>>
>>>>
>>>>
>>>
>>> No need to put C:\php\pear\pear in the include_path, just c:\php\pear
>>>
>>> If you open a new command prompt and type SET, what settings do you have
>> for
>>> ...
>>>
>>> PHP_PEAR_BIN_DIR=C:\PHP5
>>> PHP_PEAR_DATA_DIR=C:\PHP5\data
>>> PHP_PEAR_DOC_DIR=C:\PHP5\docs
>>> PHP_PEAR_INSTALL_DIR=C:\PHP5\pear
>>> PHP_PEAR_PHP_BIN=C:\PHP5\php.exe
>>> PHP_PEAR_SYSCONF_DIR=C:\PHP5
>>> PHP_PEAR_TEST_DIR=C:\PHP5\tests
>>>
>>>
>>> If you are installing PEAR on the server, have you set these settings
>>> for ALL users or just your account? You may find that the user running
>>> your server hasn't got these settings.
>>>
>>> If you use the runas script to open a command prompt using the web
>>> servers account, does it have these settings?
>>>
>>> There is a .reg file containing the settings for the current user
>>> (C:\PHP\PEAR_ENV.reg).
>>>
>>> You could change the key in this file to ...
>>>
>>> [HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment]
>>>
>>> to allow you to set the PEAR setting for ALL users on the server.
>>>
>>> But check the registry first to see if there are any settings already
>> there.
>>>
>>>
>>>
>>>
>>>
>>> --
>>> -----
>>> Richard Quadling
>>> "Standing on the shoulders of some very clever giants!"
>>> EE : http://www.experts-exchange.com/M_248814.html
>>> EE4Free :
>>> http://www.experts-exchange.com/becomeAnExpert.jsp
>>> Zend Certified Engineer :
> http://zend.com/zce.php?c=ZEND002498&r=213474731
>>> ZOPA : http://uk.zopa.com/member/RQuadling
>>>
>>>
>>>
>>
>> Most likely that the installer got some of the way but not all the way.
>>
>> Personally, I'd reset my C:\php directory and try installing PHP and PEAR
>> again.
>>
>> --
>> -----
>> Richard Quadling
>> "Standing on the shoulders of some very clever giants!"
>> EE : http://www.experts-exchange.com/M_248814.html
>> EE4Free :
>> http://www.experts-exchange.com/becomeAnExpert.jsp
>> Zend Certified Engineer :
>> http://zend.com/zce.php?c=ZEND002498&r=213474731
>> ZOPA : http://uk.zopa.com/member/RQuadling
>>
>>
>>
>
> Glad to have helped.
>
> --
> -----
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
> Zend Certified Engineer :
> http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>
>
>
I do as I want to be able to access the PEAR repository via my
webservice _AND_ my personal user account.
As it is only for users of the server or on my pc, installing for
system makes sense.
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling