Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Pear install on shared server problem
April 23, 2005, 4:17 pm
rate this thread
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'
/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!
Re: Pear install on shared server problem
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"
Real e-mail address unavailable. 5000+ spams per month.