socross
asked on
Plesk 8, php5, install mcrypt lib, shell command line
Hi
I am running all my hosting pacakges off a dv dedicated server and have root access to the server via ssh access. I am very new to the command line, but i woul say i have a basic understanding now.
I have followed mediatemple.com (the hosting company) instructions to install php5 on the server, it works ona domain basis.
I now want to install the mcrypt library, but this is not a supportedv install, its allowed as we have root access, but it leaves me slightly concerned about diving in without being confident about what im doing.
Has anyone done this before?
Can anyone advise the neccesary steps to install it? or a formular to follow when installing lphp libraries?
Many thanks
---s--
I am running all my hosting pacakges off a dv dedicated server and have root access to the server via ssh access. I am very new to the command line, but i woul say i have a basic understanding now.
I have followed mediatemple.com (the hosting company) instructions to install php5 on the server, it works ona domain basis.
I now want to install the mcrypt library, but this is not a supportedv install, its allowed as we have root access, but it leaves me slightly concerned about diving in without being confident about what im doing.
Has anyone done this before?
Can anyone advise the neccesary steps to install it? or a formular to follow when installing lphp libraries?
Many thanks
---s--
ASKER
um think i need mycrpt support for php, I need it to run this application:
http://www.hotscripts.com/Detailed/56764.html
our linux distribution is :: Linux 2.6.9-023stab044.4-enterpr ise
Many Thanks
--s--
http://www.hotscripts.com/Detailed/56764.html
our linux distribution is :: Linux 2.6.9-023stab044.4-enterpr
Many Thanks
--s--
Easiest way is to yum it ( assuming you are using a distro that uses yum)
>yum install php-mcrypt.i386
you will also need the c library libmcrypt and the php-devel packages however the above command should take care of the dependancies for you.
p.s. Linux 2.6.9-023stab044.4-enterpr ise is your kernel not your distro. you distro is Fedora, SuSE, CENTOS or something like that
>yum install php-mcrypt.i386
you will also need the c library libmcrypt and the php-devel packages however the above command should take care of the dependancies for you.
p.s. Linux 2.6.9-023stab044.4-enterpr
ASKER
ok
well im a little confused, very new to linux so its a bit scary at the moment, could you explain what the above does, where i have to do it, and what steps are involved
many thanks
--s--
well im a little confused, very new to linux so its a bit scary at the moment, could you explain what the above does, where i have to do it, and what steps are involved
many thanks
--s--
yum is a rpm package management tool. It is the default management tool for Red Hat, Fedora, Cent and many others. Yum makes it very easy to install, update and remove applications.
Ubuntu and Debian use apt-get and the syntax is almost the same as yum.
use yum or apt-get in this way.
Search for a package
> yum search mcrypt
you will get a long list of packages matching "mcrypt". One should be
php-mcrypt.i386 5.1.6-1.el4.centos centosplus
Matched from:
php-mcrypt
Standard PHP module provides mcrypt library support
Standard PHP module provides mcrypt library support
install a package
> yum install php-mcrypt.i386
and boom your done.
type
yum -h
for info on yum
Ubuntu and Debian use apt-get and the syntax is almost the same as yum.
use yum or apt-get in this way.
Search for a package
> yum search mcrypt
you will get a long list of packages matching "mcrypt". One should be
php-mcrypt.i386 5.1.6-1.el4.centos centosplus
Matched from:
php-mcrypt
Standard PHP module provides mcrypt library support
Standard PHP module provides mcrypt library support
install a package
> yum install php-mcrypt.i386
and boom your done.
type
yum -h
for info on yum
ASKER
hi
my linux command line says:
[root@fruit-studios /]# yum -h
-bash: yum: command not found
here are all the details i can find on my server
Hostname: fruit-studios.com
Plesk version: psa v8.2.0_build82070706.15 os_CentOS 4.2
Operating system: Linux 2.6.9-023stab044.4-enterpr ise
my linux command line says:
[root@fruit-studios /]# yum -h
-bash: yum: command not found
here are all the details i can find on my server
Hostname: fruit-studios.com
Plesk version: psa v8.2.0_build82070706.15 os_CentOS 4.2
Operating system: Linux 2.6.9-023stab044.4-enterpr
You can download yum from here since it doesn't seem to be on your system.
http://rpm.pbone.net/index.php3/stat/4/idpl/2231561/com/yum-2.4.0-5.py24.noarch.rpm.html
pbone.net a great site to search for RPMs
you can also download the mcrypt libs from pbone, but once you have yum installed package management is a breeze
http://rpm.pbone.net/index.php3/stat/4/idpl/2231561/com/yum-2.4.0-5.py24.noarch.rpm.html
pbone.net a great site to search for RPMs
you can also download the mcrypt libs from pbone, but once you have yum installed package management is a breeze
ps. your distro is Cent os 4.2 and I assume it is 32 bit.
you can find out by typing
uname -m
if you see
i386, i586, or i686 you are 32 bit
if you see
86_64 you are 64 bit
you can find out by typing
uname -m
if you see
i386, i586, or i686 you are 32 bit
if you see
86_64 you are 64 bit
ASKER
ok great
this may sound sillly but how do i go about downloading and installing yum, as i say im completely new to linux and am very nevours about making a mess of my server.
Just to clarify i am logging on into my server via ssh, from a remote location, where do i download the yum file etc
--s--
this may sound sillly but how do i go about downloading and installing yum, as i say im completely new to linux and am very nevours about making a mess of my server.
Just to clarify i am logging on into my server via ssh, from a remote location, where do i download the yum file etc
--s--
first make sure that you actually don't have yum installed already
locate yum | grep bin
my system prints:
[andy@app02 ~]$ locate yum | grep bin
/usr/bin/yum
/usr/sbin/yum-updatesd
if it is installed just use the whole path like
> /usr/bin/yum install .....etc
if not
log in
su to root
type
wget ftp://ftp.pbone.net/mirror/www.python.org/pyvault/centos-3-i386/yum-2.4.0-5.py24.noarch.rpm
that will download the rpm
to install type
rpm -i yum-2.4.0-5.py24.noarch.rp m
if there are no dependency errors you can start using yum
yum search superawsomepackage
locate yum | grep bin
my system prints:
[andy@app02 ~]$ locate yum | grep bin
/usr/bin/yum
/usr/sbin/yum-updatesd
if it is installed just use the whole path like
> /usr/bin/yum install .....etc
if not
log in
su to root
type
wget ftp://ftp.pbone.net/mirror/www.python.org/pyvault/centos-3-i386/yum-2.4.0-5.py24.noarch.rpm
that will download the rpm
to install type
rpm -i yum-2.4.0-5.py24.noarch.rp
if there are no dependency errors you can start using yum
yum search superawsomepackage
ps. O'Rielly makes a linux pocket guide that really kicks ass with helping out with the basics.
ASKER
i get some dependency errors
[root@fruit-studios /]# rpm -i yum-2.4.0-5.py24.noarch.rp m
warning: yum-2.4.0-5.py24.noarch.rp m: V3 DSA signature: NOKEY, key ID 4ad653e1
error: Failed dependencies:
libxml2-python24 is needed by yum-2.4.0-5.py24.noarch
python(abi) = 2.4 is needed by yum-2.4.0-5.py24.noarch
python24-elementtree is needed by yum-2.4.0-5.py24.noarch
python24-sqlite is needed by yum-2.4.0-5.py24.noarch
python24-urlgrabber is needed by yum-2.4.0-5.py24.noarch
python24-yum = 2.4.0 is needed by yum-2.4.0-5.py24.noarch
rpm-python24 is needed by yum-2.4.0-5.py24.noarch
[root@fruit-studios /]#
ANy ideas??
Just ordered the pocket guide, looks really good?
[root@fruit-studios /]# rpm -i yum-2.4.0-5.py24.noarch.rp
warning: yum-2.4.0-5.py24.noarch.rp
error: Failed dependencies:
libxml2-python24 is needed by yum-2.4.0-5.py24.noarch
python(abi) = 2.4 is needed by yum-2.4.0-5.py24.noarch
python24-elementtree is needed by yum-2.4.0-5.py24.noarch
python24-sqlite is needed by yum-2.4.0-5.py24.noarch
python24-urlgrabber is needed by yum-2.4.0-5.py24.noarch
python24-yum = 2.4.0 is needed by yum-2.4.0-5.py24.noarch
rpm-python24 is needed by yum-2.4.0-5.py24.noarch
[root@fruit-studios /]#
ANy ideas??
Just ordered the pocket guide, looks really good?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
ok thanks
still slightly confused about the process of getting files and what comman you use to install them.
See
https://www.experts-exchange.com/questions/22757635/Linux-Yum-dependancy-erros.html
This is where i am and where im stuck
--s--
still slightly confused about the process of getting files and what comman you use to install them.
See
https://www.experts-exchange.com/questions/22757635/Linux-Yum-dependancy-erros.html
This is where i am and where im stuck
--s--
I'm not really sure these are the instructions you want to follow. It should be stated that you are running a CGI version of PHP5. Probably what you need to do is compile your own PHP5 CGI with mcrypt support.
ASKER
Ok right
So how do i go about doing that??
--s--
So how do i go about doing that??
--s--
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
What Linux distribution is installed there?