Re: errors while installing pear for php on windows
| From: | Richard Quadling | Date: | Sat, 01 May 2010 20:06:21 +0000 |
| Subject: | Re: errors while installing pear for php on windows | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-30479@lists.php.net to get a copy of this message | ||
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