ChaiDee
02-25-2006, 07:58 PM
Hi,
I try to access the PEAR DB.php and get ..
Warning: main(DB.php) [function.main (http://www.meetthaisingles.com/site/main/function.main)]: failed to open stream: No such file or directory in ....
php statement: require_once("DB.php");
path I'm having in .htaccess
".:/home/mysite:/usr/lib/php:/usr/local/lib/php: ......"
The same app, with same htaccess worked before on shared and VPS.
Now on new dedicated .. ext. support says PEAR is installed.
Any ideas/hints/suggestions are very welcome...!!!!
Thanks a lot in advance
01globalnet
02-25-2006, 08:15 PM
Can you ssh into server and see if any PEAR files are into
/usr/local/lib/php/
If not, then probably the lib is not installed...
ChaiDee
02-25-2006, 09:00 PM
Hi tonyFF .. thanks
thats all what is in it + several folders
PEAR.php , pearcmd.php , System.php
Burhan
02-26-2006, 01:37 AM
are you sure DB is installed? Run pear list from a prompt to see what is installed at your system.
ChaiDee
02-26-2006, 07:27 AM
fyrestrtr (http://www.webhostingtalk.com/member.php?u=40688) thank you very much for the reply
I run from a command prompt: pear list
and get this results
Installed packages:
==============
Package Version State
Archive_Tar 1.1 stable
Console_Getop 1.2 stable
HTML_Template_IT 1.1 stable
Mail_Mime 1.3.1 stable
Net_UserAgent_Detect 2.0.1 stable
PEAR 1.3.6 stable
Should with 'pear list' DB.php listed, if installed?
Thank you very much
Burhan
02-26-2006, 09:10 AM
You do not have DB installed. You can install it by running pear install DB from a command prompt as root. You should get the following output:
phoenix ~ # pear list
Installed packages:
===================
Package Version State
Archive_Tar 1.1 stable
Console_Getopt 1.2 stable
HTML_Template_IT 1.1 stable
Net_UserAgent_Detect 2.0.1 stable
PEAR 1.3.5 stable
XML_RPC 1.3.1 stable
phoenix ~ # pear install DB
downloading DB-1.7.6.tgz ...
Starting to download DB-1.7.6.tgz (124,807 bytes)
............................done: 124,807 bytes
install ok: DB 1.7.6
phoenix ~ # pear list
Installed packages:
===================
Package Version State
Archive_Tar 1.1 stable
Console_Getopt 1.2 stable
DB 1.7.6 stable
HTML_Template_IT 1.1 stable
Net_UserAgent_Detect 2.0.1 stable
PEAR 1.3.5 stable
XML_RPC 1.3.1 stable
phoenix ~ #
ChaiDee
02-26-2006, 11:37 AM
fyrestrtr (http://www.webhostingtalk.com/member.php?u=40688) ... fantastic!!!!
That helped big time.
Thanks a lot for spending the time !!!!!