Re: Re: go-pear question
| From: | Steven | Date: | Wed, 27 Oct 2004 22:00:32 +0000 |
| Subject: | Re: Re: go-pear question | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15174@lists.php.net to get a copy of this message | ||
Greg Beaver wrote:
> Steven wrote:
>
>>Hope there is a way around this and you or anybody can point the way
>>around it..
>
> I have an idea of what is causing these problems.
>
> From:
>
> http://www.php.net/manual/en/features.safe-mode.functions.php
>
> fopen: Checks whether the directory in which you are about to operate
> has the same UID (owner) as the script that is being executed.
>
> What this really means is that if you run the exact command sequence I
> just described on your OS X, with the addition of two commands:
>
> $ pear -c .pearrc install PEAR Console_Getopt Archive_Tar
OK, below is what I did on the local Mac, and where it failed..
$ cd /
$ mkdir /opt
$ mkdir /opt/guide
$ mkdir /opt/guide/www.domain.com
$ mkdir /opt/guide/www.domain.com/pear
$ cd /opt/guide/www.domain.com
$ pear -s -c /opt/guide/www.domain.com/.pearrc \
-d php_dir=/opt/guide/www.domain.com/pear/php \
-d data_dir=/opt/guide/www.domain.com/pear/data \
-d scripts_dir=/opt/guide/www.domain.com/pear \
-d test_dir=/opt/guide/www.domain.com/pear/tests \
-d ext_dir=/opt/guide/www.domain.com/pear/exts \
-d bin_dir=/opt/guide/www.domain.com/pear/php \
-d cache_dir=/opt/guide/www.domain.com/pear/cache
$ pear -c .pearrc config-show
Configuration:
==============
PEAR executables directory
bin_dir /opt/guide/www.domain.com/pear/php
PEAR documentation directory
doc_dir /usr/lib/php/docs
PHP extension directory
ext_dir /opt/guide/www.domain.com/pear/exts
PEAR directory
php_dir /opt/guide/www.domain.com/pear/php
PEAR Installer cache directory
cache_dir /opt/guide/www.domain.com/pear/cache
PEAR data directory
data_dir /opt/guide/www.domain.com/pear/data
PHP CLI/CGI binary
php_bin /usr/bin/php
PEAR test directory
test_dir /opt/guide/www.domain.com/pear/tests
Cache TimeToLive
cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
HTTP Proxy Server Address http_proxy <not set>
PEAR server master_server pear.php.net
PEAR password password <not set>
Signature Handling Program sig_bin /usr/local/bin/gpg
Signature Key Directory sig_keydir /usr/etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username username <not set>
$ pear -c .pearrc install PEAR Console_Getopt Archive_Tar
downloading PEAR-1.3.2.tgz ...
...done: 103,135 bytes
Warning: _installfile(OS/Guess.php): failed to open stream: No such file
or directory in Installer.php on line 162
Warning: _installfile(): Failed opening 'OS/Guess.php' for inclusion
(include_path='.:/usr/lib/php') in Installer.php on line 162
Fatal error: Cannot instantiate non-existent class: os_guess in
/usr/lib/php/PEAR/Installer.php on line 163