Thursday, September 22, 2011

CentOS/Fedora core Linux PHP installation


--
http://www.webtatic.com/packages/php53/

If you would like to install PHP use yum command
# yum install php
or
#yum --enablerepo=webtatic install php

--To get MySQL support in PHP, we can install the php-mysql package. It's a good idea to install some other PHP5 modules as well as you might need them for your applications. You can search for available PHP5 modules like this:'

yum search php
--Pick the ones you need and install them like this:
yum install php-mysql php-gd php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mssql php-shout php-snmp php-soap php-tidy

--Now restart Apache2:

---If you would like to upgrade PHP use yum command
# rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm

No comments:

Post a Comment