Click to See Complete Forum and Search --> : I'm going CRAZY trying to install Pear :-\


Topkat
02-08-2009, 07:46 AM
I recently got a Linux Virtual Private Server from 1and1 and I'm having problems trying to install Pear. I followed the instructions on the official Pear website, but to be honest, I don't really know if I'm following them correctly as I'm new to Linux.

Does anyone know of any good tutorials on how to install Pear with SSH access to the server? I've searched google, but none of them really help me, I just keep restoring my server and trying again. :-\

I spent all Saturday trying to get it to work with no luck...

Can someone please point me in the direction of a good tutorial for newbies or if possible tell me the basics of what I have to do to get it installed :-\

Thanks for reading...

Mindzai
02-09-2009, 04:29 AM
Which linux distro is running on your server?

ambytiousone
02-09-2009, 04:51 AM
Don't know if you ran across this during your Google search,
it may or may not help, but its pretty straight forward

http://www.jellyandcustard.com/2006/05/10/installing-pear/

Topkat
02-09-2009, 01:47 PM
Hey thanks for the replies :-))

I get this warning when I try to install Pear.

PHP Warning: putenv(): Safe Mode warning: Cannot set environment variable 'TMPDIR' - it's not in the allowed list in /root/- on line 1264

It's on Centos. I turned Safe mode off in Plesk, I rebooted my server and I still get the same error. I asked a few people in IRC today and they don't know either, so I emailed 1and1 support.

If they can't solve it, I'll try the tutorial you gave ambytiousone! :)

Peace & love :-))

ambytiousone
02-09-2009, 03:52 PM
Yep, Try the tutorial... I'm not too savvy with Pear nor Centros but I did
find another resource which may help you.

Sorry I can't give you the direct root of the problem but check out this
link. It should have the linux command description.

http://www.scribd.com/doc/7381712/Linux-Complete-Command-Reference

Mindzai
02-09-2009, 06:15 PM
It's on Centos

I don't have a CentOS/RH box anymore to test, but I'd imagine

yum install php-pear

from a root shell would do it (assuming you have yum installed of course :D)

Topkat
02-10-2009, 02:12 PM
Thanks for the link ambytiousone!

Mindzai, I've tried yum, I've tried "lynx -source http://pear.php.net/go-pear | php", I've tried to install it through a script which tells me I don't have access to the folders to install them, I chmod them to give all rights, still nothing, tech support @ 1and1 didn't understand it either. I thought it was because I was a noob, but it's probably just 1and1's server settings :-\

I haven't tried ambytiousone way yet, but I'm sure I'll run into open_basedir problems when I do because of Plesk. I'm going to take a break from it all before I go Insane :-))

1and1 got back to me with this...

I have just looked over this case and it seems that the problem is a scripting error. Unfortunately we do not support scripting as this is out of our realm of technical support.

Scripting error? The error comes when I try to install it with yum. :-\