473,569 Members | 2,729 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1908
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
1868
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 then make; make install output says it installed pear: : make install
5
1916
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
2442
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 OK. I could create simple php pages and serve them up. Then I tried to install pear, and things started to be not OK after all. phpinfo() told me...
3
2001
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: http://www.urlname.urlextension/pear/ to install the pear into by running go-pear.php fromthat subdir "pear"
3
7221
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 it tells mea it can not run pear/soap, because it can not be found.the book im learning form does not tell me how to install or configure this...
2
1888
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 structure, outside of "htdocs" and so I did. Problems now, of course, - No http access to WebInstaller.php - A bunch of directories and no easy way...
1
1941
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 PHP4 That could mean that pear is installed under the php4/ area, but not php5 ? go-pear prompted me to install a number of packages, including ...
0
2033
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 build our applications under three different environments (Linux i686, Linux x86_64, Solaris 8 Sparc). This is the first of the three on a RHEL 3...
4
2118
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 as module with Apache2.2.3 I need a educated response from a PEAR developer, if possible My 1st run go-pear died because I exceeded "maximum...
0
7612
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7922
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7668
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7964
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6281
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5218
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2111
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
936
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.