Installing PHP and PHP modules in Linux
In Redhat and Fedora you can use the command ‘yum’
yum -y install php
yum -y install php-devel
yum -y install php-gd
yum -y install php-imap
yum -y install php-ldap
yum -y install php-mysql
yum -y install php-odbc
yum -y install php-pear
yum -y install php-xml
yum -y install php-xmlrpc
yum -y install curl
yum -y install curl-devel
yum -y install perl-libwww-perl
yum -y install ImageMagick
yum -y install libxml2
yum -y install libxml2-devel
yum -y install httpd
In Ububtu and Debian you can use the command ‘apt-get’
apt-get install php5
apt-get install php5-mysql
apt-get install php5-cli
To search the packages you can use the command apt-cache search <name>
Example :
sudo apt- cache search php5
This will list all the packages for php
Posted by Shahid
One response to "Installing PHP and PHP modules in Linux"
18:44 on March 18th, 2009
Great help