Re: Re: go-pear question
| From: | Steven | Date: | Wed, 27 Oct 2004 00:19:49 +0000 |
| Subject: | Re: Re: go-pear question | ||
| References: | 1 2 3 4 5 6 7 8 9 10 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-15155@lists.php.net to get a copy of this message | ||
Greg Beaver wrote:
> Steven wrote:
>
>>Greg Beaver wrote:
>>
>>>Steven wrote:
>>>
>>>>Can I just replace /home/username in your command with
>>>>/opt/guide/www.domain.com ?
>>>
>>>It's best to install PEAR outside of your document root, as long as you
>>>can use .htaccess to set the include_path or get your host to add the
>>>directory into the include_path. I'd use /opt/guide/pear.
>>
>>/opt/guide/www.domain.com is outside the document root,
>>the document root is /opt/guide/www.domain.com/HTML
>
>
> OK, give it a go with /opt/guide/www.domain.com/pear
Just to be sure the commands would then become:
$ cd ~
$ mkdir pear
$ 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
cache_dir=/opt/guide/www.domain.com/pear/cache
$ pear -c .pearrc config-show
The pear directory I installed locally and copied to the remote host is
not the same as what the above command would give, what I have now looks
like this:
/opt/guide/www.domain.com/pear/PEAR
/opt/guide/www.domain.com/pear/bin
/opt/guide/www.domain.com/pear/pear.conf
/opt/guide/www.domain.com/pear/tmp
/opt/guide/www.domain.com/pear/PEAR/DB
/opt/guide/www.domain.com/pear/PEARDB.php
/opt/guide/www.domain.com/pear/PEAR/PEAR
/opt/guide/www.domain.com/pear/PEAR/PEAR.php
etc..
Guess I should remove the contents of /opt/guide/www.domain.com/pear/ ?
Steven