Please help to install PEAR packages

Status
Not open for further replies.

ravravrav

New Member
Messages
14
Reaction score
0
Points
0
I've upgraded my PHP version and I've tried to use the PEAR installer on cPanel but it can't seem to find any modules. Anyway looking at previous threads it seems admin can help me install them so I'm posting here for help.

I need the following:
DB/MDB2
Quickform
Pager
Pager_Wrapper

Account: foodguide.x10hosting.com

Can you help to install these and also advise how to do this myself in future. Cheers.
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
This will be done tonight.
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,550
Reaction score
205
Points
63
I believe these were added in this morning sometime. I don't believe you can do this yourself going forward.

-Corey
 

ravravrav

New Member
Messages
14
Reaction score
0
Points
0
How can I check? I don't see the PEAR link on my cPanel anymore?

Also - what is my path to the PEAR files?

I have a config.php file like this:

$path = '/home/ravravra/*******!!!!!!!!!';
set_include_path($path . PATH_SEPARATOR . get_include_path());
require_once "DB.php";
require_once "MDB2.php";
require_once "HTML/Common.php";
require_once "HTML/QuickForm.php";
require_once('Mail.php');
require_once('Mail/mime.php');
require_once 'Pager.php';
require_once 'Pager_Wrapper.php';

What would $path be??

Thanks!
 
Last edited:

Corey

I Break Things
Staff member
Messages
34,550
Reaction score
205
Points
63
What is the context of path? It looks like it's asking for the path to your script.

-Corey
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
They were installed.

/x10hosting/php2/pear/PEAR is the pear install directory for your PHP version type.
 

ravravrav

New Member
Messages
14
Reaction score
0
Points
0
Can you advise which modules are installed as I keep getting this annoying error:

Fatal error: require_once() [function.require]: Failed opening required 'HTML/QuickForm.php' (include_path='.:/x10hosting/php2/pear/PEAR') in /home/ravravra/public_html/config.php on line 12

Please advise the correct way to call the modules I have requested above.

Thanks!
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Try again with that path.
 
Last edited:

ravravrav

New Member
Messages
14
Reaction score
0
Points
0
I'm getting the same error!!

$path = '';
set_include_path($path . PATH_SEPARATOR . get_include_path());
require_once "DB.php";
require_once "MDB2.php";
require_once "HTML/Common.php";
require_once "HTML/QuickForm.php";
require_once('Mail.php');
require_once('Mail/mime.php');
require_once 'Pager.php';
require_once 'Pager_Wrapper.php';

Please advise of $path again and whether all the above have been installed!

- The page I'm trying to load is foodguide.x10hosting.com/categories.php
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Code:
[FONT="Courier New"][B]root@lotus [/x10hosting/php2/pear/PEAR]#[/B] ls
./        .channels/  data/   .depdblock   .filemap  Mail.php  modules/   pear/                PEAR.php     System.php
../       Config/     DB/     doc/         HTML/     MDB2/     OS/        PEAR/                peclcmd.php  test/
Archive/  Config.php  DB.php  docs/        .lock     MDB2.php  Pager/     pearcmd.php          .registry/   tests/
build/    Console/    .depdb  extensions/  Mail/     MIME/     Pager.php  pearfrontendweb.php  Structures/  XML/
[B]root@lotus [/x10hosting/php2/pear/PEAR]#[/B] ls ./Mail
./  ../  mail.php  mimeDecode.php  mimePart.php  mime.php  null.php  RFC822.php  sendmail.php  smtp.php
[B]root@lotus [/x10hosting/php2/pear/PEAR]#[/B] ls ./HTML
./  ../  Common2.php  Common.php  QuickForm/  QuickForm2/  QuickForm2.php  QuickForm.php  Template/[/FONT]

The files exist and are readable. Do you know what package Page_Wrapper.php comes with? I cannot find it on pear.php.net.
 
Last edited:

ravravrav

New Member
Messages
14
Reaction score
0
Points
0
Ok now I am getting this error:

MDB2 Error: not found

Which according to http://pear.php.net/manual/en/package.database.mdb2.faq.php means:

"MDB2 Error: not found"

If you get this error after creating the MDB2 instance it means that you don't have any MDB2 database driver installed. Since most people use only one database system, it is unnecessary to install 15 driver files.

If SQLite is the database of your choice, do a pear install MDB2_Driver_sqlite or simply pear install MDB2#sqlite and it should work.

Also search for MDB2 drivers in the PEAR package list.

Can you please look into this again, I'm really disappointed that it's taken this long to fix PEAR as I saw the link on cPanel and was really impressed when I first joined.

As for Pager_Wrapper, this might help:

http://pear.php.net/reference/Pager-2.4.1/Pager/Pager.html

Thanks for your troubles!!!
 
Status
Not open for further replies.
Top