Connecting Tech Pros Worldwide Forums | Help | Site Map

Pear install on shared server problem

Greg
Guest
 
Posts: n/a
#1: Jul 17 '05
I am trying to set up a local verion of Pear in my shared account,
which my host said I can do. I have SSH access, and I followed all the
instructions in the Pear Manual for setting up a local copy on a shared
host. Everything seems to have gone fine, the directory structure is
set up in my home directory in a folder called pear, and when i run
config-show everything points to this directory. I then created a
..htaccess file to include this which has just the following line:

php_value include_path ".:/home/(username)/pear"

which is the correct path to my local pear install.

I installed the basic 4 Pear packages, plus db, and ran a test file to
try and do a require_once on DB.php, and I get the following errors:

Warning: main(DB.php): failed to open stream: No such file or directory
in /home/virtual/(username)/var/www/html/test.php on line 2

Fatal error: main(): Failed opening required 'DB.php'
(include_path='.:/home/(username)/pear') in
/home/virtual/(username)/var/www/html/test.php on line 2

I am guessing that I just set up .htaccess incorrectly, but I'm not
sure what I need to do. Any help is appreciated!
Thanks,
Greg


Jan Pieter Kunst
Guest
 
Posts: n/a
#2: Jul 17 '05

re: Pear install on shared server problem


Greg wrote:[color=blue]
> I am trying to set up a local verion of Pear in my shared account,
> which my host said I can do. I have SSH access, and I followed all the
> instructions in the Pear Manual for setting up a local copy on a shared
> host. Everything seems to have gone fine, the directory structure is
> set up in my home directory in a folder called pear, and when i run
> config-show everything points to this directory. I then created a
> .htaccess file to include this which has just the following line:
>
> php_value include_path ".:/home/(username)/pear"
>
> which is the correct path to my local pear install.
>
> I installed the basic 4 Pear packages, plus db, and ran a test file to
> try and do a require_once on DB.php, and I get the following errors:
>
> Warning: main(DB.php): failed to open stream: No such file or directory
> in /home/virtual/(username)/var/www/html/test.php on line 2
>
> Fatal error: main(): Failed opening required 'DB.php'
> (include_path='.:/home/(username)/pear') in
> /home/virtual/(username)/var/www/html/test.php on line 2
>
> I am guessing that I just set up .htaccess incorrectly, but I'm not
> sure what I need to do. Any help is appreciated!
> Thanks,
> Greg[/color]

As you can see in the error text, the .htaccess is correct. Your
include_path is what you said it should be in the .htaccess.

In your place I would first try this:

php_value include_path ".:/home/virtual/(username)/pear"

JP

--
Sorry, <devnull@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.
Closed Thread