473,399 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Pear install on shared server problem

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

Jul 17 '05 #1
1 1900
Greg wrote:
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


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, <de*****@cauce.org> is a spam trap.
Real e-mail address unavailable. 5000+ spams per month.
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dan Finn | last post by:
usinng php-4.3.4 using this for my configure script; ../configure --with-pear=/usr/local/lib/pear --with-mysql --with-apxs=/usr/sb in/apxs --enable-track-vars --with-mysql-sock=/tmp/mysql.sock...
5
by: me | last post by:
Recent articles have got me looking at PEAR again. Because it is not always available, is it worth getting tied to? After all, if I write for it and it isn't there, my code won't work.
3
by: Ron King | last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL installed correctly. I could serve web pages, MySQL worked, and when I tried the phpinfo() function, I got a page that looked...
3
by: Jan Holland | last post by:
I am trying to install pear on a shared server/host following the instructions from: <http://uk.builder.com/architecture/web/0,39026570,20283197,00.htm> So I made a subdir on my site like:...
3
by: junkmail | last post by:
on a win 2k server apparantly it is saying i dont have it. or it cant find it. im using mySQL 4.1 php 4.3.x apache 3.0.53 im new to php and am doing some tutorials, but when i run the sripts...
2
by: webguynow | last post by:
As I am using a shared host, and found out they have some Pear Pkgs but not Smarty, I went to install Pear locally in my area. I was under the assumption that I should install this Pear dir...
1
by: webguynow | last post by:
I've installed PEAR in my local area, on my shared host, under htdocs but I'm anticipating a number of issues. I'm forcing use of PHP5 with an .htaccess file, but by default the host runs ...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
4
by: awebguynow | last post by:
Re: only got "pear.old_bat" I had a previous post ".. Upgrade Methods ..." and so far I've gotten around most thorny issues, including patching php5.1.4 with php5apache2_2.dll so I can run it...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.