How to Enable Admin Script of APC on PHP

On the previous post, i had shows how to enable APC with PHP on CentOS 6.3. This post will covers the steps to enable admin script of APC. The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. It’s an PECL extension which shares the packaging and distribution system with its sister, PEAR.

1. Create directory apc on document root :

[root@centos63 ~]# mkdir /var/www/html/apc

2. Copy apc.php from php-pecl-apc folder to document root :

[root@centos63 ~]# cp /usr/share/doc/php-pecl-apc-*/apc.php /var/www/html/apc

3. Create new file name apc.conf.php :

[root@centos63 ~]# vi /var/www/html/apc/apc.conf.php
<?php
   defaults('ADMIN_USERNAME','apcadmin');
# set any username

   defaults('ADMIN_PASSWORD','apcadmin');
# set any password

?>

4. Create new file name apc.conf :

[root@centos63 ~]# vi /etc/httpd/conf.d/apc.conf
<Directory /var/www/html/apc>
   Order Deny,Allow
   Deny from all
   Allow from 127.0.0.1 192.168.1.0/24
# IP address you allow

</Directory>

5. Restart Apache httpd :

[root@centos63 ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

6. Navigate the browser to http://servername/apc/apc.php and it will shown as below :
Apc

How to Enable APC With PHP on CentOS 6.3

The Alternative PHP Cache (APC) is a free, open, and robust framework for caching and optimizing PHP intermediate code. It’s an PECL extension which shares the packaging and distribution system with its sister, PEAR. In this post, i will show how to enable APC (Alternative PHP Cache) and makes PHP be fast.

1. Install using yum command :

[root@centos63 ~]# yum install php-pecl-apc -y

Examples :

[root@centos63 ~]# yum install php-pecl-apc -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-pecl-apc.i686 0:3.1.9-2.el6 will be installed
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-apc-3.1.9-2.el6.i686
--> Processing Dependency: /usr/bin/pecl for package: php-pecl-apc-3.1.9-2.el6.i686
--> Running transaction check
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package               Arch            Version                  Repository                     Size
====================================================================================================
Installing:
 php-pecl-apc          i686            3.1.9-2.el6              CentOS6.3-Repository           96 k
Installing for dependencies:
 php-pear              noarch          1:1.9.4-4.el6            CentOS6.3-Repository          393 k

Transaction Summary
====================================================================================================
Install       2 Package(s)

Total download size: 489 k
Installed size: 2.5 M
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 489 k
----------------------------------------------------------------------------------------------------
Total                                                               3.3 MB/s | 489 kB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:php-pear-1.9.4-4.el6.noarch                                                    1/2
  Installing : php-pecl-apc-3.1.9-2.el6.i686                                                    2/2
  Verifying  : 1:php-pear-1.9.4-4.el6.noarch                                                    1/2
  Verifying  : php-pecl-apc-3.1.9-2.el6.i686                                                    2/2

Installed:
  php-pecl-apc.i686 0:3.1.9-2.el6

Dependency Installed:
  php-pear.noarch 1:1.9.4-4.el6

Complete!

2. Specify shared memory :

[root@centos63 ~]# vi /etc/php.d/apc.ini

On Line 12, specify shared memory size :

; The size of each shared memory segment, with M/G suffix
apc.shm_size=512M
; A "hint" about the number of distinct source files that will be included or
; requested on your web server. Set to zero or omit if you are not sure;

3. Restart Apache :

[root@centos63 ~]# /etc/rc.d/init.d/httpd restart
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]

4. Create “phpinfo” and please make sure APC has been enabled :

[root@centos63 ~]# vi /var/www/html/phpinfo.php
<?php
phpinfo();
?>

APC

How to Install PHP with MySQL Support on CentOS 6.3

In this post, i will show the quick step to install PHP packages on linux CentOS 6.3 server. PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in CentOS 6.3 with minimum type of installation. To get MySQL support in PHP5, you have to install php-mysql module together with php packages itself. Run this command to install phph-mysql. It will help you to install php-mysql dependencies,php-pdo. php-pdo is required to successfully run php-mysql module :

You have to install it manually if you really need it.

Simply execute the following command :

[root@centos63 ~]# yum install php php-mysql -y

Examples :

[root@centos63 ~]# yum install php php-mysql -y
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
 * base: mirrors.hostemo.com
 * extras: mirrors.hostemo.com
 * updates: mirrors.hostemo.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
---> Package php-mysql.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-pdo for package: php-mysql-5.3.3-14.el6_3.i686
--> Running transaction check
---> Package php-cli.i686 0:5.3.3-14.el6_3 will be installed
---> Package php-common.i686 0:5.3.3-14.el6_3 will be installed
---> Package php-pdo.i686 0:5.3.3-14.el6_3 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                 Arch              Version                       Repository            Size
====================================================================================================
Installing:
 php                     i686              5.3.3-14.el6_3                updates              1.1 M
 php-mysql               i686              5.3.3-14.el6_3                updates               77 k
Installing for dependencies:
 php-cli                 i686              5.3.3-14.el6_3                updates              2.2 M
 php-common              i686              5.3.3-14.el6_3                updates              523 k
 php-pdo                 i686              5.3.3-14.el6_3                updates               72 k

Transaction Summary
====================================================================================================
Install       5 Package(s)

Total download size: 4.0 M
Installed size: 13 M
Downloading Packages:
Setting up and reading Presto delta metadata
updates/prestodelta                                                          |  62 kB     00:00
Processing delta metadata
Package(s) data still to download: 4.0 M
(1/5): php-5.3.3-14.el6_3.i686.rpm                                           | 1.1 MB     00:09
(2/5): php-cli-5.3.3-14.el6_3.i686.rpm                                       | 2.2 MB     00:22
(3/5): php-common-5.3.3-14.el6_3.i686.rpm                                    | 523 kB     00:04
(4/5): php-mysql-5.3.3-14.el6_3.i686.rpm                                     |  77 kB     00:00
(5/5): php-pdo-5.3.3-14.el6_3.i686.rpm                                       |  72 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                               105 kB/s | 4.0 MB     00:38
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.3-14.el6_3.i686                                                   1/5
  Installing : php-pdo-5.3.3-14.el6_3.i686                                                      2/5
  Installing : php-cli-5.3.3-14.el6_3.i686                                                      3/5
  Installing : php-5.3.3-14.el6_3.i686                                                          4/5
  Installing : php-mysql-5.3.3-14.el6_3.i686                                                    5/5
  Verifying  : php-pdo-5.3.3-14.el6_3.i686                                                      1/5
  Verifying  : php-mysql-5.3.3-14.el6_3.i686                                                    2/5
  Verifying  : php-5.3.3-14.el6_3.i686                                                          3/5
  Verifying  : php-cli-5.3.3-14.el6_3.i686                                                      4/5
  Verifying  : php-common-5.3.3-14.el6_3.i686                                                   5/5

Installed:
  php.i686 0:5.3.3-14.el6_3                     php-mysql.i686 0:5.3.3-14.el6_3

Dependency Installed:
  php-cli.i686 0:5.3.3-14.el6_3   php-common.i686 0:5.3.3-14.el6_3   php-pdo.i686 0:5.3.3-14.el6_3

Complete!

How to Install PHP 5.4.4 using Remi Repository on CentOS 6.2

In This post, I will show you on how to install the PHP 5.4.4 packages on CentOS 6.2 using Remi repository. PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in CentOS 6.2 with minimum type of installation.

Prerequisites :
How to Install Remi yum Repository on CentOS 6.2 x86 and x86_64

Simply run the following command to install latest PHP packages :

[root@centos62 ~]# yum install php -y
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * extras: centos.ipserverone.com
 * remi: rpms.famillecollet.com
 * remi-test: rpms.famillecollet.com
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.4.4-1.el6.remi will be installed
--> Processing Dependency: php-common(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Processing Dependency: php-cli(x86-32) = 5.4.4-1.el6.remi for package: php-5.4.4-1.el6.remi.i686
--> Running transaction check
---> Package php-cli.i686 0:5.4.4-1.el6.remi will be installed
---> Package php-common.i686 0:5.4.4-1.el6.remi will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                Arch             Version                        Repository             Size
====================================================================================================
Installing:
 php                    i686             5.4.4-1.el6.remi               remi-test             2.5 M
Installing for dependencies:
 php-cli                i686             5.4.4-1.el6.remi               remi-test             2.5 M
 php-common             i686             5.4.4-1.el6.remi               remi-test             874 k

Transaction Summary
====================================================================================================
Install       3 Package(s)

Total download size: 5.9 M
Installed size: 21 M
Downloading Packages:
(1/3): php-5.4.4-1.el6.remi.i686.rpm                                         | 2.5 MB     05:58
(2/3): php-cli-5.4.4-1.el6.remi.i686.rpm                                     | 2.5 MB     04:56
(3/3): php-common-5.4.4-1.el6.remi.i686.rpm                                  | 874 kB     01:39
----------------------------------------------------------------------------------------------------
Total                                                               8.0 kB/s | 5.9 MB     12:36
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : php-common-5.4.4-1.el6.remi.i686                                                 1/3

WARNING : These php-* RPM are not official Fedora/Redhat build and
overrides the official ones. Don't file bugs on Fedora Project nor Redhat.

Use dedicated forums http://forums.famillecollet.com/

  Installing : php-cli-5.4.4-1.el6.remi.i686                                                    2/3
  Installing : php-5.4.4-1.el6.remi.i686                                                        3/3

Installed:
  php.i686 0:5.4.4-1.el6.remi

Dependency Installed:
  php-cli.i686 0:5.4.4-1.el6.remi                 php-common.i686 0:5.4.4-1.el6.remi

Complete!

Check the php packages installed :

[root@centos62 ~]# rpm -qa | grep php
php-common-5.4.4-1.el6.remi.i686
php-5.4.4-1.el6.remi.i686
php-cli-5.4.4-1.el6.remi.i686

How to Install Apache, PHP and MySQL on CentOS 6.2

CentOS 6.2

Install Apache, PHP and MySQL on centOS 6.2

In this post, i will share with you on how to install Apache Httpd, PHP and MySQL on linux CentOS 6.2 server. All these steps has been tested on CentOS 6.2. Assume that you have installed minimal installation type CentOS 6.2 and has setup your own local yum repository. You can use internet CentOS yum repository instead if you have direct internet connection to your server.

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on CentOS 6.2

1.0 How to Install Httpd on CentOS 6.2

Apache httpd is one of the most popular web servers and has a lot of features that make it very extensible and useful for many different types of websites.

[root@centos6 ~]# yum install httpd
Loaded plugins: fastestmirror
Determining fastest mirrors
CentOS6.2-Repository                                                        | 1.3 kB     00:00 ...
CentOS6.2-Repository/primary                                                | 1.2 MB     00:00 ...
CentOS6.2-Repository                                                                     3042/3042
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package httpd.i686 0:2.2.15-15.el6.centos will be installed
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos for package: httpd-2.2.15-15.el6.centos.i686
--> Processing Dependency: libaprutil-1.so.0 for package: httpd-2.2.15-15.el6.centos.i686
--> Processing Dependency: libapr-1.so.0 for package: httpd-2.2.15-15.el6.centos.i686
--> Processing Dependency: apr-util-ldap for package: httpd-2.2.15-15.el6.centos.i686
--> Processing Dependency: /etc/mime.types for package: httpd-2.2.15-15.el6.centos.i686
--> Running transaction check
---> Package apr.i686 0:1.3.9-3.el6_1.2 will be installed
---> Package apr-util.i686 0:1.3.9-3.el6_0.1 will be installed
---> Package apr-util-ldap.i686 0:1.3.9-3.el6_0.1 will be installed
---> Package httpd-tools.i686 0:2.2.15-15.el6.centos will be installed
---> Package mailcap.noarch 0:2.1.31-2.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
 Package              Arch          Version                      Repository                   Size
===================================================================================================
Installing:
 httpd                i686          2.2.15-15.el6.centos         CentOS6.2-Repository        818 k
Installing for dependencies:
 apr                  i686          1.3.9-3.el6_1.2              CentOS6.2-Repository        129 k
 apr-util             i686          1.3.9-3.el6_0.1              CentOS6.2-Repository         89 k
 apr-util-ldap        i686          1.3.9-3.el6_0.1              CentOS6.2-Repository         15 k
 httpd-tools          i686          2.2.15-15.el6.centos         CentOS6.2-Repository         70 k
 mailcap              noarch        2.1.31-2.el6                 CentOS6.2-Repository         27 k

Transaction Summary
===================================================================================================
Install       6 Package(s)

Total download size: 1.1 M
Installed size: 3.4 M
Is this ok [y/N]: y
Downloading Packages:
---------------------------------------------------------------------------------------------------
Total                                                              3.8 MB/s | 1.1 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : mailcap-2.1.31-2.el6.noarch                                                     1/6
  Installing : apr-1.3.9-3.el6_1.2.i686                                                        2/6
  Installing : apr-util-1.3.9-3.el6_0.1.i686                                                   3/6
  Installing : httpd-tools-2.2.15-15.el6.centos.i686                                           4/6
  Installing : apr-util-ldap-1.3.9-3.el6_0.1.i686                                              5/6
  Installing : httpd-2.2.15-15.el6.centos.i686                                                 6/6

Installed:
  httpd.i686 0:2.2.15-15.el6.centos

Dependency Installed:
  apr.i686 0:1.3.9-3.el6_1.2                     apr-util.i686 0:1.3.9-3.el6_0.1
  apr-util-ldap.i686 0:1.3.9-3.el6_0.1           httpd-tools.i686 0:2.2.15-15.el6.centos
  mailcap.noarch 0:2.1.31-2.el6

Complete!

2.0 How to Install php on CentOS 6.2

Next we proceed to Install the php packages on CentOS 6.2.

Simply run the following command :

[root@centos6 ~]# yum install php*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
CentOS6.2-Repository                                                            | 1.3 kB     00:00 ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-cli.i686 0:5.3.3-3.el6_1.3 will be installed
--> Processing Dependency: libedit.so.0 for package: php-cli-5.3.3-3.el6_1.3.i686
---> Package php-common.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-gd.i686 0:5.3.3-3.el6_1.3 will be installed
--> Processing Dependency: libpng12.so.0(PNG12_0) for package: php-gd-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libpng12.so.0 for package: php-gd-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libjpeg.so.62 for package: php-gd-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libfreetype.so.6 for package: php-gd-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libXpm.so.4 for package: php-gd-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libX11.so.6 for package: php-gd-5.3.3-3.el6_1.3.i686
---> Package php-ldap.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-mysql.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-odbc.i686 0:5.3.3-3.el6_1.3 will be installed
--> Processing Dependency: libodbc.so.2 for package: php-odbc-5.3.3-3.el6_1.3.i686
---> Package php-pdo.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-pear.noarch 1:1.9.4-4.el6 will be installed
---> Package php-pecl-apc.i686 0:3.1.3p1-1.2.el6.1 will be installed
---> Package php-pecl-memcache.i686 0:3.0.5-3.el6 will be installed
---> Package php-pgsql.i686 0:5.3.3-3.el6_1.3 will be installed
--> Processing Dependency: libpq.so.5 for package: php-pgsql-5.3.3-3.el6_1.3.i686
---> Package php-soap.i686 0:5.3.3-3.el6_1.3 will be installed
---> Package php-xml.i686 0:5.3.3-3.el6_1.3 will be installed
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.24) for package: php-xml-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.18) for package: php-xml-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.13) for package: php-xml-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libxslt.so.1(LIBXML2_1.0.11) for package: php-xml-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libxslt.so.1 for package: php-xml-5.3.3-3.el6_1.3.i686
--> Processing Dependency: libexslt.so.0 for package: php-xml-5.3.3-3.el6_1.3.i686
---> Package php-xmlrpc.i686 0:5.3.3-3.el6_1.3 will be installed
--> Running transaction check
---> Package freetype.i686 0:2.3.11-6.el6_1.7 will be installed
---> Package libX11.i686 0:1.3-2.el6 will be installed
--> Processing Dependency: libX11-common = 1.3-2.el6 for package: libX11-1.3-2.el6.i686
--> Processing Dependency: libxcb.so.1 for package: libX11-1.3-2.el6.i686
---> Package libXpm.i686 0:3.5.8-2.el6 will be installed
---> Package libedit.i686 0:2.11-4.20080712cvs.1.el6 will be installed
---> Package libjpeg.i686 0:6b-46.el6 will be installed
---> Package libpng.i686 2:1.2.46-1.el6_1 will be installed
---> Package libxslt.i686 0:1.1.26-2.el6 will be installed
---> Package postgresql-libs.i686 0:8.4.9-1.el6_1.1 will be installed
---> Package unixODBC.i686 0:2.2.14-11.el6 will be installed
--> Processing Dependency: libltdl.so.7 for package: unixODBC-2.2.14-11.el6.i686
--> Running transaction check
---> Package libX11-common.noarch 0:1.3-2.el6 will be installed
---> Package libtool-ltdl.i686 0:2.2.6-15.5.el6 will be installed
---> Package libxcb.i686 0:1.5-1.el6 will be installed
--> Processing Dependency: libXau.so.6 for package: libxcb-1.5-1.el6.i686
--> Running transaction check
---> Package libXau.i686 0:1.0.5-1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=======================================================================================================
 Package                 Arch         Version                         Repository                  Size
=======================================================================================================
Installing:
 php                     i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository       1.1 M
 php-cli                 i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository       2.2 M
 php-common              i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository       522 k
 php-gd                  i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository       102 k
 php-ldap                i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        35 k
 php-mysql               i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        76 k
 php-odbc                i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        47 k
 php-pdo                 i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        71 k
 php-pear                noarch       1:1.9.4-4.el6                   CentOS6.2-Repository       393 k
 php-pecl-apc            i686         3.1.3p1-1.2.el6.1               CentOS6.2-Repository        93 k
 php-pecl-memcache       i686         3.0.5-3.el6                     CentOS6.2-Repository        60 k
 php-pgsql               i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        66 k
 php-soap                i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository       138 k
 php-xml                 i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        98 k
 php-xmlrpc              i686         5.3.3-3.el6_1.3                 CentOS6.2-Repository        50 k
Installing for dependencies:
 freetype                i686         2.3.11-6.el6_1.7                CentOS6.2-Repository       362 k
 libX11                  i686         1.3-2.el6                       CentOS6.2-Repository       585 k
 libX11-common           noarch       1.3-2.el6                       CentOS6.2-Repository       188 k
 libXau                  i686         1.0.5-1.el6                     CentOS6.2-Repository        22 k
 libXpm                  i686         3.5.8-2.el6                     CentOS6.2-Repository        58 k
 libedit                 i686         2.11-4.20080712cvs.1.el6        CentOS6.2-Repository        73 k
 libjpeg                 i686         6b-46.el6                       CentOS6.2-Repository       133 k
 libpng                  i686         2:1.2.46-1.el6_1                CentOS6.2-Repository       184 k
 libtool-ltdl            i686         2.2.6-15.5.el6                  CentOS6.2-Repository        45 k
 libxcb                  i686         1.5-1.el6                       CentOS6.2-Repository       104 k
 libxslt                 i686         1.1.26-2.el6                    CentOS6.2-Repository       448 k
 postgresql-libs         i686         8.4.9-1.el6_1.1                 CentOS6.2-Repository       201 k
 unixODBC                i686         2.2.14-11.el6                   CentOS6.2-Repository       382 k

Transaction Summary
=======================================================================================================
Install      28 Package(s)

Total download size: 7.8 M
Installed size: 26 M
Is this ok [y/N]: y
Downloading Packages:
-------------------------------------------------------------------------------------------------------
Total                                                                  7.2 MB/s | 7.8 MB     00:01
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : libX11-common-1.3-2.el6.noarch                                                     1/28
  Installing : php-common-5.3.3-3.el6_1.3.i686                                                    2/28
  Installing : php-pdo-5.3.3-3.el6_1.3.i686                                                       3/28
  Installing : libxslt-1.1.26-2.el6.i686                                                          4/28
  Installing : postgresql-libs-8.4.9-1.el6_1.1.i686                                               5/28
  Installing : libedit-2.11-4.20080712cvs.1.el6.i686                                              6/28
  Installing : php-cli-5.3.3-3.el6_1.3.i686                                                       7/28
  Installing : 1:php-pear-1.9.4-4.el6.noarch                                                      8/28
  Installing : libjpeg-6b-46.el6.i686                                                             9/28
  Installing : libtool-ltdl-2.2.6-15.5.el6.i686                                                  10/28
  Installing : unixODBC-2.2.14-11.el6.i686                                                       11/28
  Installing : 2:libpng-1.2.46-1.el6_1.i686                                                      12/28
  Installing : freetype-2.3.11-6.el6_1.7.i686                                                    13/28
  Installing : libXau-1.0.5-1.el6.i686                                                           14/28
  Installing : libxcb-1.5-1.el6.i686                                                             15/28
  Installing : libX11-1.3-2.el6.i686                                                             16/28
  Installing : libXpm-3.5.8-2.el6.i686                                                           17/28
  Installing : php-gd-5.3.3-3.el6_1.3.i686                                                       18/28
  Installing : php-odbc-5.3.3-3.el6_1.3.i686                                                     19/28
  Installing : php-pecl-apc-3.1.3p1-1.2.el6.1.i686                                               20/28
  Installing : php-pecl-memcache-3.0.5-3.el6.i686                                                21/28
  Installing : php-5.3.3-3.el6_1.3.i686                                                          22/28
  Installing : php-pgsql-5.3.3-3.el6_1.3.i686                                                    23/28
  Installing : php-xml-5.3.3-3.el6_1.3.i686                                                      24/28
  Installing : php-mysql-5.3.3-3.el6_1.3.i686                                                    25/28
  Installing : php-xmlrpc-5.3.3-3.el6_1.3.i686                                                   26/28
  Installing : php-ldap-5.3.3-3.el6_1.3.i686                                                     27/28
  Installing : php-soap-5.3.3-3.el6_1.3.i686                                                     28/28

Installed:
  php.i686 0:5.3.3-3.el6_1.3                        php-cli.i686 0:5.3.3-3.el6_1.3
  php-common.i686 0:5.3.3-3.el6_1.3                 php-gd.i686 0:5.3.3-3.el6_1.3
  php-ldap.i686 0:5.3.3-3.el6_1.3                   php-mysql.i686 0:5.3.3-3.el6_1.3
  php-odbc.i686 0:5.3.3-3.el6_1.3                   php-pdo.i686 0:5.3.3-3.el6_1.3
  php-pear.noarch 1:1.9.4-4.el6                     php-pecl-apc.i686 0:3.1.3p1-1.2.el6.1
  php-pecl-memcache.i686 0:3.0.5-3.el6              php-pgsql.i686 0:5.3.3-3.el6_1.3
  php-soap.i686 0:5.3.3-3.el6_1.3                   php-xml.i686 0:5.3.3-3.el6_1.3
  php-xmlrpc.i686 0:5.3.3-3.el6_1.3

Dependency Installed:
  freetype.i686 0:2.3.11-6.el6_1.7                libX11.i686 0:1.3-2.el6
  libX11-common.noarch 0:1.3-2.el6                libXau.i686 0:1.0.5-1.el6
  libXpm.i686 0:3.5.8-2.el6                       libedit.i686 0:2.11-4.20080712cvs.1.el6
  libjpeg.i686 0:6b-46.el6                        libpng.i686 2:1.2.46-1.el6_1
  libtool-ltdl.i686 0:2.2.6-15.5.el6              libxcb.i686 0:1.5-1.el6
  libxslt.i686 0:1.1.26-2.el6                     postgresql-libs.i686 0:8.4.9-1.el6_1.1
  unixODBC.i686 0:2.2.14-11.el6

Complete!

3.0 How to Install MySQL Database Server on CentOS 6.2

This post will show you on how to install MySQL server using yum command.

Simply run the following command :

[root@centos6 ~]# yum install mysql mysql-server
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.1.52-1.el6_0.1 will be installed
---> Package mysql-server.i686 0:5.1.52-1.el6_0.1 will be installed
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.52-1.el6_0.1.i686
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.52-1.el6_0.1.i686
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.52-1.el6_0.1.i686
--> Running transaction check
---> Package perl-DBD-MySQL.i686 0:4.013-3.el6 will be installed
---> Package perl-DBI.i686 0:1.609-4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================================
 Package                Arch         Version                  Repository                    Size
=================================================================================================
Installing:
 mysql                  i686         5.1.52-1.el6_0.1         CentOS6.2-Repository         898 k
 mysql-server           i686         5.1.52-1.el6_0.1         CentOS6.2-Repository         8.3 M
Installing for dependencies:
 perl-DBD-MySQL         i686         4.013-3.el6              CentOS6.2-Repository         134 k
 perl-DBI               i686         1.609-4.el6              CentOS6.2-Repository         705 k

Transaction Summary
=================================================================================================
Install       4 Package(s)

Total download size: 10 M
Installed size: 27 M
Is this ok [y/N]: y
Downloading Packages:
-------------------------------------------------------------------------------------------------
Total                                                             13 MB/s |  10 MB     00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : perl-DBI-1.609-4.el6.i686                                                     1/4
  Installing : perl-DBD-MySQL-4.013-3.el6.i686                                               2/4
  Installing : mysql-5.1.52-1.el6_0.1.i686                                                   3/4
  Installing : mysql-server-5.1.52-1.el6_0.1.i686                                            4/4

Installed:
  mysql.i686 0:5.1.52-1.el6_0.1               mysql-server.i686 0:5.1.52-1.el6_0.1

Dependency Installed:
  perl-DBD-MySQL.i686 0:4.013-3.el6                  perl-DBI.i686 0:1.609-4.el6

Complete!

Hope all these three steps will be useful when installing Apache, PHP and MySQL on linux Centos 6.2 server

How to Fix “php53-common conflicts with php-common” on Linux

Question :
When i try to install php on Linux CentOS 5.8, i get the following error and cannot proceed with the php installation.

[root@centos58 ~]# yum install php* -y
..

--> Processing Conflict: php53-common conflicts php-common
--> Finished Dependency Resolution
php-pecl-gmagick-1.1.0-0.2.RC2.el5.i386 from epel has depsolving problems
  --> php-pecl-gmagick conflicts with php-magickwand
php53-common-5.3.3-7.el5_8.i386 from updates has depsolving problems
  --> php53-common conflicts with php-common
php-pecl-gmagick-1.1.0-0.2.RC2.el5.i386 from epel has depsolving problems
  --> php-pecl-gmagick conflicts with php-pecl-imagick
php-pecl-apc-3.0.19-2.el5.i386 from epel has depsolving problems
  --> php-pecl-apc conflicts with php-eaccelerator
Error: php-pecl-apc conflicts with php-eaccelerator
Error: php-pecl-gmagick conflicts with php-pecl-imagick
Error: php-pecl-gmagick conflicts with php-magickwand
Error: php53-common conflicts with php-common
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

Solution :
To overcome the issue, you need to execute “yun install php53-* -y” that will install PHP 5.3 version :

[root@centos58 ~]# yum install php53-* -y
Transaction Summary
====================================================================================================
Install      58 Package(s)
Upgrade       0 Package(s)

Total download size: 24 M
Downloading Packages:
(1/58): php53-recode-5.3.3-1.el5.i386.rpm                                    | 5.9 kB     00:00
(2/58): firebird-filesystem-2.1.4.18393.0-1.el5.i386.rpm                     | 6.6 kB     00:00
(3/58): php53-enchant-5.3.3-1.el5.i386.rpm                                   | 9.7 kB     00:00
(4/58): php53-mcrypt-5.3.3-1.el5.i386.rpm                                    |  16 kB     00:00
(5/58): php53-tidy-5.3.3-1.el5.i386.rpm                                      |  18 kB     00:00
(6/58): php53-php-gettext-1.0.11-3.el5.noarch.rpm                            |  20 kB     00:00
(7/58): zarafa-common-7.0.6-1.el5.i386.rpm                                   |  21 kB     00:00
(8/58): boost141-system-1.41.0-2.el5.i386.rpm                                |  24 kB     00:00
(9/58): php53-pspell-5.3.3-7.el5_8.i386.rpm                                  |  26 kB     00:00
(10/58): php53-mssql-5.3.3-1.el5.i386.rpm                                    |  26 kB     00:00
(11/58): php53-snmp-5.3.3-7.el5_8.i386.rpm                                   |  29 kB     00:00
(12/58): php53-ldap-5.3.3-7.el5_8.i386.rpm                                   |  36 kB     00:00
(13/58): php53-process-5.3.3-7.el5_8.i386.rpm                                |  38 kB     00:00
(14/58): php53-dba-5.3.3-7.el5_8.i386.rpm                                    |  39 kB     00:00
(15/58): php53-bcmath-5.3.3-7.el5_8.i386.rpm                                 |  42 kB     00:00
(16/58): libntlm-1.0-1.el5.i386.rpm                                          |  43 kB     00:00
(17/58): libXpm-3.5.5-3.i386.rpm                                             |  45 kB     00:00
(18/58): php53-imap-5.3.3-7.el5_8.i386.rpm                                   |  50 kB     00:00
(19/58): php53-interbase-5.3.3-1.el5.i386.rpm                                |  50 kB     00:00
(20/58): php53-odbc-5.3.3-7.el5_8.i386.rpm                                   |  51 kB     00:00
(21/58): php53-xmlrpc-5.3.3-7.el5_8.i386.rpm                                 |  52 kB     00:00
(22/58): php53-pdo-5.3.3-7.el5_8.i386.rpm                                    |  66 kB     00:00
(23/58): boost141-filesystem-1.41.0-2.el5.i386.rpm                           |  72 kB     00:00
(24/58): php53-pgsql-5.3.3-7.el5_8.i386.rpm                                  |  73 kB     00:00
(25/58): php53-intl-5.3.3-7.el5_8.i386.rpm                                   |  74 kB     00:00
(26/58): php53-mysql-5.3.3-7.el5_8.i386.rpm                                  |  87 kB     00:00
(27/58): mod_ssl-2.2.3-63.el5.centos.1.i386.rpm                              |  94 kB     00:00
(28/58): libgsasl-0.2.29-1.el5.i386.rpm                                      | 100 kB     00:01
(29/58): php53-gd-5.3.3-7.el5_8.i386.rpm                                     | 109 kB     00:00
(30/58): php53-xml-5.3.3-7.el5_8.i386.rpm                                    | 112 kB     00:00
(31/58): distcache-1.4.5-14.1.i386.rpm                                       | 119 kB     00:00
(32/58): m4-1.4.5-3.el5.1.i386.rpm                                           | 133 kB     00:01
(33/58): libtidy-0.99.0-14.20070615.el5.i386.rpm                             | 140 kB     00:01
(34/58): php53-soap-5.3.3-7.el5_8.i386.rpm                                   | 146 kB     00:01
(35/58): enchant-1.4.2-4.el5.1.i386.rpm                                      | 151 kB     00:01
(36/58): libical-0.48-1.el5.i386.rpm                                         | 202 kB     00:01
(37/58): php53-mapi-7.0.6-1.el5.i386.rpm                                     | 217 kB     00:02
(38/58): firebird-libfbclient-2.1.4.18393.0-1.el5.i386.rpm                   | 295 kB     00:02
(39/58): imake-1.0.2-3.i386.rpm                                              | 319 kB     00:02
(40/58): automake-1.9.6-2.3.el5.noarch.rpm                                   | 476 kB     00:03
(41/58): libxslt-1.1.17-2.el5_2.2.i386.rpm                                   | 485 kB     00:04
(42/58): lm_sensors-2.10.7-9.el5.i386.rpm                                    | 511 kB     00:04
(43/58): libc-client-2004g-2.2.1.i386.rpm                                    | 516 kB     00:04
(44/58): unixODBC-libs-2.2.11-10.el5.i386.rpm                                | 551 kB     00:04
(45/58): php53-devel-5.3.3-7.el5_8.i386.rpm                                  | 591 kB     00:05
(46/58): php53-common-5.3.3-7.el5_8.i386.rpm                                 | 604 kB     00:04
(47/58): autoconf-2.59-12.noarch.rpm                                         | 647 kB     00:05
(48/58): net-snmp-5.3.2.2-17.el5.i386.rpm                                    | 703 kB     00:06
(49/58): recode-3.6-24.el5.i386.rpm                                          | 838 kB     00:07
(50/58): libmapi-7.0.6-1.el5.i386.rpm                                        | 886 kB     00:07
(51/58): libvmime-0.9.2-0.1.20110626svn.el5.i386.rpm                         | 887 kB     00:07
(52/58): freetds-0.91-2.el5.i386.rpm                                         | 992 kB     00:08
(53/58): php53-mbstring-5.3.3-7.el5_8.i386.rpm                               | 1.2 MB     00:09
(54/58): zarafa-client-7.0.6-1.el5.i386.rpm                                  | 1.2 MB     00:11
(55/58): php53-5.3.3-7.el5_8.i386.rpm                                        | 1.3 MB     00:10
(56/58): net-snmp-libs-5.3.2.2-17.el5.i386.rpm                               | 1.3 MB     00:11
(57/58): php53-cli-5.3.3-7.el5_8.i386.rpm                                    | 2.5 MB     00:22
(58/58): libicu-3.6-5.16.1.i386.rpm                                          | 5.3 MB     00:47
----------------------------------------------------------------------------------------------------
Total                                                               114 kB/s |  24 MB     03:37
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : php53-common                                                                1/58
  Installing     : php53-pdo                                                                   2/58
  Installing     : libicu                                                                      3/58
  Installing     : boost141-system                                                             4/58
  Installing     : unixODBC-libs                                                               5/58
  Installing     : net-snmp-libs                                                               6/58
  Installing     : freetds                                                                     7/58
  Installing     : boost141-filesystem                                                         8/58
  Installing     : php53-cli                                                                   9/58
  Installing     : php53                                                                      10/58
  Installing     : php53-mbstring                                                             11/58
  Installing     : enchant                                                                    12/58
  Installing     : libc-client                                                                13/58
  Installing     : libxslt                                                                    14/58
  Installing     : libntlm                                                                    15/58
  Installing     : libgsasl                                                                   16/58
  Installing     : libvmime                                                                   17/58
  Installing     : libical                                                                    18/58
  Installing     : m4                                                                         19/58
  Installing     : lm_sensors                                                                 20/58
  Installing     : net-snmp                                                                   21/58
  Installing     : libtidy                                                                    22/58
  Installing     : libXpm                                                                     23/58
  Installing     : imake                                                                      24/58
  Installing     : distcache                                                                  25/58
  Installing     : mod_ssl                                                                    26/58
  Installing     : recode                                                                     27/58
  Installing     : autoconf                                                                   28/58
  Installing     : automake                                                                   29/58
  Installing     : firebird-filesystem                                                        30/58
  Installing     : zarafa-common                                                              31/58
  Installing     : firebird-libfbclient                                                       32/58
  Installing     : php53-interbase                                                            33/58
  Installing     : php53-recode                                                               34/58
  Installing     : php53-gd                                                                   35/58
  Installing     : php53-tidy                                                                 36/58
  Installing     : php53-snmp                                                                 37/58
  Installing     : php53-xml                                                                  38/58
  Installing     : php53-imap                                                                 39/58
  Installing     : php53-enchant                                                              40/58
  Installing     : php53-mssql                                                                41/58
  Installing     : php53-odbc                                                                 42/58
  Installing     : php53-intl                                                                 43/58
  Installing     : php53-pgsql                                                                44/58
  Installing     : php53-mysql                                                                45/58
  Installing     : php53-pspell                                                               46/58
  Installing     : php53-bcmath                                                               47/58
  Installing     : php53-mcrypt                                                               48/58
  Installing     : php53-ldap                                                                 49/58
  Installing     : php53-soap                                                                 50/58
  Installing     : php53-process                                                              51/58
  Installing     : php53-xmlrpc                                                               52/58
  Installing     : php53-dba                                                                  53/58
  Installing     : php53-devel                                                                54/58
  Installing     : php53-php-gettext                                                          55/58
  Installing     : libmapi                                                                    56/58
  Installing     : php53-mapi                                                                 57/58
  Installing     : zarafa-client                                                              58/58

Installed:
  php53.i386 0:5.3.3-7.el5_8                         php53-bcmath.i386 0:5.3.3-7.el5_8
  php53-cli.i386 0:5.3.3-7.el5_8                     php53-common.i386 0:5.3.3-7.el5_8
  php53-dba.i386 0:5.3.3-7.el5_8                     php53-devel.i386 0:5.3.3-7.el5_8
  php53-enchant.i386 0:5.3.3-1.el5                   php53-gd.i386 0:5.3.3-7.el5_8
  php53-imap.i386 0:5.3.3-7.el5_8                    php53-interbase.i386 0:5.3.3-1.el5
  php53-intl.i386 0:5.3.3-7.el5_8                    php53-ldap.i386 0:5.3.3-7.el5_8
  php53-mapi.i386 0:7.0.6-1.el5                      php53-mbstring.i386 0:5.3.3-7.el5_8
  php53-mcrypt.i386 0:5.3.3-1.el5                    php53-mssql.i386 0:5.3.3-1.el5
  php53-mysql.i386 0:5.3.3-7.el5_8                   php53-odbc.i386 0:5.3.3-7.el5_8
  php53-pdo.i386 0:5.3.3-7.el5_8                     php53-pgsql.i386 0:5.3.3-7.el5_8
  php53-php-gettext.noarch 0:1.0.11-3.el5            php53-process.i386 0:5.3.3-7.el5_8
  php53-pspell.i386 0:5.3.3-7.el5_8                  php53-recode.i386 0:5.3.3-1.el5
  php53-snmp.i386 0:5.3.3-7.el5_8                    php53-soap.i386 0:5.3.3-7.el5_8
  php53-tidy.i386 0:5.3.3-1.el5                      php53-xml.i386 0:5.3.3-7.el5_8
  php53-xmlrpc.i386 0:5.3.3-7.el5_8

Dependency Installed:
  autoconf.noarch 0:2.59-12                        automake.noarch 0:1.9.6-2.3.el5
  boost141-filesystem.i386 0:1.41.0-2.el5          boost141-system.i386 0:1.41.0-2.el5
  distcache.i386 0:1.4.5-14.1                      enchant.i386 1:1.4.2-4.el5.1
  firebird-filesystem.i386 0:2.1.4.18393.0-1.el5   firebird-libfbclient.i386 0:2.1.4.18393.0-1.el5
  freetds.i386 0:0.91-2.el5                        imake.i386 0:1.0.2-3
  libXpm.i386 0:3.5.5-3                            libc-client.i386 0:2004g-2.2.1
  libgsasl.i386 0:0.2.29-1.el5                     libical.i386 0:0.48-1.el5
  libicu.i386 0:3.6-5.16.1                         libmapi.i386 0:7.0.6-1.el5
  libntlm.i386 0:1.0-1.el5                         libtidy.i386 0:0.99.0-14.20070615.el5
  libvmime.i386 0:0.9.2-0.1.20110626svn.el5        libxslt.i386 0:1.1.17-2.el5_2.2
  lm_sensors.i386 0:2.10.7-9.el5                   m4.i386 0:1.4.5-3.el5.1
  mod_ssl.i386 1:2.2.3-63.el5.centos.1             net-snmp.i386 1:5.3.2.2-17.el5
  net-snmp-libs.i386 1:5.3.2.2-17.el5              recode.i386 0:3.6-24.el5
  unixODBC-libs.i386 0:2.2.11-10.el5               zarafa-client.i386 0:7.0.6-1.el5
  zarafa-common.i386 0:7.0.6-1.el5

Complete!
[root@centos5

How to Install and Getting MySQL Support In PHP5 on Fedora 16

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP5 does not included in Fedora 16 with minimum type of installation. You have to install it manually if you really need it.

To install basic PHP5 package, simply run this command :

[root@fedora16 ~]# yum install php -y

To get MySQL support in PHP5, you have to install php-mysql module. Run this command to install phph-mysql. It will help you to install php-mysql dependencies,php-pdo. php-pdo is required to successfully run php-mysql module :

[root@fedora16 ~]# yum install php-mysql -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: php-pdo(x86-32) = 5.3.10-1.fc16 for package: php-mysql-5.3.10-1.fc16.i686
--> Running transaction check
---> Package php-pdo.i686 0:5.3.10-1.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                 Arch               Version                     Repository             Size
====================================================================================================
Installing:
 php-mysql               i686               5.3.10-1.fc16               updates                77 k
Installing for dependencies:
 php-pdo                 i686               5.3.10-1.fc16               updates                73 k

Transaction Summary
====================================================================================================
Install       2 Packages

Total download size: 150 k
Installed size: 346 k
Downloading Packages:
(1/2): php-mysql-5.3.10-1.fc16.i686.rpm                                      |  77 kB     00:01
(2/2): php-pdo-5.3.10-1.fc16.i686.rpm                                        |  73 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                                58 kB/s | 150 kB     00:02
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-pdo-5.3.10-1.fc16.i686                                                       1/2
  Installing : php-mysql-5.3.10-1.fc16.i686                                                     2/2

Installed:
  php-mysql.i686 0:5.3.10-1.fc16

Dependency Installed:
  php-pdo.i686 0:5.3.10-1.fc16

Complete!

Note :
php-mysql : A module for PHP applications that use MySQL databases
php-pdo : A database access abstraction module for PHP applications

How to Install php-mcrypt on Fedora 16

php-mcrypt is a standard of PHP module that provides mcrypt library support. In linux systems,mcrypt is necessary for installing CMSes like majento. Before you start to install any software such as CMSes like majento, you need to install the mcrypt library. In this post, i will show the quick step on how to install php-mcrypt on linux Fedora 16 server.

Simply run the following command to install php-mcrypt on Fedora 16 :

[root@fedora16 ~]# yum install php-mcrypt -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mcrypt.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt-5.3.10-1.fc16.i686
--> Processing Dependency: libltdl.so.7 for package: php-mcrypt-5.3.10-1.fc16.i686
--> Running transaction check
---> Package libmcrypt.i686 0:2.5.8-10.fc15 will be installed
---> Package libtool-ltdl.i686 0:2.4-9.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package                   Arch              Version                     Repository            Size
====================================================================================================
Installing:
 php-mcrypt                i686              5.3.10-1.fc16               updates               32 k
Installing for dependencies:
 libmcrypt                 i686              2.5.8-10.fc15               fedora                93 k
 libtool-ltdl              i686              2.4-9.fc16                  updates               45 k

Transaction Summary
====================================================================================================
Install       3 Packages

Total download size: 170 k
Installed size: 192 k
Downloading Packages:
(1/3): libmcrypt-2.5.8-10.fc15.i686.rpm                                      |  93 kB     00:02
(2/3): libtool-ltdl-2.4-9.fc16.i686.rpm                                      |  45 kB     00:00
(3/3): php-mcrypt-5.3.10-1.fc16.i686.rpm                                     |  32 kB     00:00
----------------------------------------------------------------------------------------------------
Total                                                                31 kB/s | 170 kB     00:05
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : libmcrypt-2.5.8-10.fc15.i686                                                     1/3
  Installing : libtool-ltdl-2.4-9.fc16.i686                                                     2/3
  Installing : php-mcrypt-5.3.10-1.fc16.i686                                                    3/3

Installed:
  php-mcrypt.i686 0:5.3.10-1.fc16

Dependency Installed:
  libmcrypt.i686 0:2.5.8-10.fc15                   libtool-ltdl.i686 0:2.4-9.fc16

Complete!

How to Install PHP-FPM on CentOS 6.2

PHP-FPM (FastCGI Process Manager) is a PHP FastCGI implementation and is an alternative PHP FastCGI implementation with some additional features useful for sites of any size, especially busier sites. PHP-FPM is a set of patches for PHP to work with the FastCGI process manager, turning PHP-FPM into a service rather than loading all of its libraries everytime a PHP request it’s made. In this post, i will show on how to install PHP-FPM on linux CentOS 6.2 server. Assume that you have configured EPEL and remi repositories on you linux CentOS 6.2 server.
How to Install and Configure EPEL Repository on CentOS 6.2
How to Install Remi yum Repository on CentOS 6.2

1. How to install PHP and other php extensions :

[root@centos62 ~]# yum --enablerepo=remi install php php-fpm php-common php-pecl-apc php-cli php-pear php-pdo php-mysql php-pgsql php-pecl-mongo php-sqlite php-pecl-memcache php-pecl-memcached php-gd php-mbstring php-mcrypt php-xml

Output :


  Installing : libmemcached-1.0.4-1.el6.remi.i686                                              8/23
  Installing : php-pecl-memcached-2.0.1-2.el6.remi.i686                                        9/23
  Installing : php-mysql-5.4.0-1.el6.remi.i686                                                10/23
  Installing : php-gd-5.4.0-1.el6.remi.i686                                                   11/23
  Installing : php-pecl-mongo-1.2.10-2.el6.remi.i686                                          12/23
  Installing : php-pecl-apc-3.1.10-2.el6.remi.i686                                            13/23
  Installing : php-pecl-memcache-3.0.6-3.el6.remi.i686                                        14/23
  Installing : php-pecl-sqlite-2.0.0-0.1.svn313074.el6.remi.i686                              15/23
  Installing : php-5.4.0-1.el6.remi.i686                                                      16/23
  Installing : php-pgsql-5.4.0-1.el6.remi.i686                                                17/23
  Installing : php-mcrypt-5.4.0-1.el6.remi.i686                                               18/23
  Installing : php-xml-5.4.0-1.el6.remi.i686                                                  19/23
  Installing : php-fpm-5.4.0-1.el6.remi.i686                                                  20/23
  Installing : php-mbstring-5.4.0-1.el6.remi.i686                                             21/23
  Installing : compat-mysql51-5.1.54-1.el6.remi.i686                                          22/23
  Cleanup    : mysql-libs-5.1.61-1.el6_2.1.i686                                               23/23

Installed:
  php.i686 0:5.4.0-1.el6.remi                           php-cli.i686 0:5.4.0-1.el6.remi
  php-common.i686 0:5.4.0-1.el6.remi                    php-fpm.i686 0:5.4.0-1.el6.remi
  php-gd.i686 0:5.4.0-1.el6.remi                        php-mbstring.i686 0:5.4.0-1.el6.remi
  php-mcrypt.i686 0:5.4.0-1.el6.remi                    php-mysql.i686 0:5.4.0-1.el6.remi
  php-pdo.i686 0:5.4.0-1.el6.remi                       php-pear.noarch 1:1.9.4-7.el6.remi
  php-pecl-apc.i686 0:3.1.10-2.el6.remi                 php-pecl-memcache.i686 0:3.0.6-3.el6.remi
  php-pecl-memcached.i686 0:2.0.1-2.el6.remi            php-pecl-mongo.i686 0:1.2.10-2.el6.remi
  php-pecl-sqlite.i686 0:2.0.0-0.1.svn313074.el6.remi   php-pgsql.i686 0:5.4.0-1.el6.remi
  php-xml.i686 0:5.4.0-1.el6.remi

Dependency Installed:
  compat-mysql51.i686 0:5.1.54-1.el6.remi                   libmemcached.i686 0:1.0.4-1.el6.remi
  php-pecl-igbinary.i686 0:1.1.2-0.1.git3b8ab7e.el6.remi    t1lib.i686 0:5.1.2-6.el6_2.1

Dependency Updated:
  mysql-libs.i686 0:5.5.22-1.el6.remi

Complete!

2. How to check PHP Version :

[root@centos62 ~]# php -v
PHP 5.4.0 (cli) (built: Mar  2 2012 17:49:53)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies

3. Proceed to configure PHP-FPM to meet your requirement :

[root@centos62 ~]# vi /etc/php-fpm.d/www.conf

4. Start PHP-FPM :

[root@centos62 ~]# service php-fpm start
Starting php-fpm:                                          [  OK  ]

How to Search for Available PHP5 Modules on Fedora 16

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in Fedora 16 with minimum type of installation. You have to install it manually if you really need it. Before start to install PHP, you can search for available PHP5 modules in the yum repository using the following command :

[root@fedora16 ~]# yum search php

or

[root@fedora16 ~]# yum search php | more
=============================== N/S Matched: php ===============================
cups-php.i686 : Common Unix Printing System - php module
eclipse-phpeclipse.noarch : PHP Eclipse plugin
gphpedit.i686 : A PHP source editor for GNOME 2
graphviz-php.i686 : PHP extension for graphviz
groonga-php.i686 : PHP language binding for groonga
ice-php.i686 : PHP runtime for developping Ice applications
ice-php-devel.i686 : PHP tools for developping Ice applications
kdevelop-php.i686 : Php language plugin for KDevelop
mod_suphp.i686 : An apache2 module for executing PHP scripts with the
               : permissions of their owners
nntpgrab-php.i686 : PHP module which allows PHP scripts to communicate with
                  : NNTPGrab
perl-PHP-Serialization.noarch : Converts between PHP's serialize() output and
                              : the equivalent Perl structure
php.i686 : PHP scripting language for creating dynamic web sites
php-Kohana.noarch : The Swift PHP Framework
php-LightweightPicasaAPI.noarch : A lightweight API for Picasa in PHP
php-PHPMailer.noarch : PHP email transport class with a lot of features
php-Smarty.noarch : Template/Presentation Framework for PHP
php-ZendFramework.noarch : Leading open-source PHP framework
php-ZendFramework-Search-Lucene.noarch : Apache Lucene engine PHP port
php-adodb.noarch : Database abstraction layer for PHP
php-bartlett-PHP-Reflect.noarch : Adds the ability to reverse-engineer PHP
php-bcmath.i686 : A module for PHP applications for using the bcmath library
php-captchaphp.noarch : PHP very user-friendly CAPTCHA solution
php-channel-pdepend.noarch : PHP Depend PEAR channel
php-channel-phpmd.noarch : PHP Mess Detector PEAR channel
php-channel-phpunit.noarch : Adds phpunit channel to PEAR
php-cli.i686 : Command-line interface for PHP
php-common.i686 : Common files for PHP
php-dba.i686 : A database abstraction layer module for PHP applications
php-deepend-Mockery.noarch : Mockery is a simple but flexible PHP mock object
                           : framework
php-devel.i686 : Files needed for building PHP extensions
php-digidoc.i686 : PHP bindings for libdigidocpp
php-doctrine-Doctrine.noarch : PHP Object Relational Mapper
php-domxml-php4-php5.noarch : XML transition from PHP4 domxml to PHP5 dom module
php-eaccelerator.i686 : PHP accelerator, optimizer, encoder and dynamic content
                      : cacher
php-email-address-validation.noarch : A PHP class for validating email addresses
php-embedded.i686 : PHP library for embedding in applications
php-ezc-Database.noarch : A lightweight database layer on top of PHP's PDO
php-ezc-File.noarch : Provides support for file operations which are not covered
                    : by PHP
php-facedetect.i686 : PHP extension to access the OpenCV library
php-fpdf.noarch : PHP class to generate PDF Files
php-fpdf-doc.noarch : Documentation for php-fpdf
php-fpm.i686 : PHP FastCGI Process Manager
php-gd.i686 : A module for PHP applications for using the gd graphics library
php-getid3.noarch : The PHP media file parser
php-gettext.noarch : Gettext emulation in PHP
php-hkit.noarch : Simple PHP5 API for extracting common microformats from a page
php-idn.i686 : PHP API for GNU LibIDN
php-imap.i686 : A module for PHP applications that use IMAP
php-interbase.i686 : A module for PHP applications that use Interbase/Firebird
                   : databases
php-intl.i686 : Internationalization extension for PHP applications
php-laconica.noarch : PHP tool for microblogging
php-layers-menu.noarch : Hierarchical PHP based DHTML menu system
php-ldap.i686 : A module for PHP applications that use LDAP
php-libdmtx.i686 : PHP bindings for libdmtx
php-libguestfs.i686 : PHP bindings for libguestfs
php-libpuzzle.i686 : PHP extension for libpuzzle
php-libvirt.i686 : PHP language binding for Libvirt
php-libvirt-doc.noarch : Document of php-libvirt
php-magickwand.i686 : PHP API for ImageMagick
php-manual-en.noarch : Documentation for the PHP programming language
php-mapi.i686 : The PHP MAPI extension by Zarafa
php-mapserver.i686 : PHP/Mapscript map making extensions to PHP
php-markdown.noarch : Markdown implementation in PHP
php-mbstring.i686 : A module for PHP applications which need multi-byte string
                  : handling
php-mcrypt.i686 : Standard PHP module provides mcrypt library support
php-mssql.i686 : MSSQL database module for PHP
php-mysql.i686 : A module for PHP applications that use MySQL databases
php-mysqlnd.i686 : A module for PHP applications that use MySQL databases
php-nusoap.noarch : SOAP Toolkit for PHP
php-oauth.noarch : PHP Authentication library for desktop to web applications
php-odbc.i686 : A module for PHP applications that use ODBC databases
php-pdb.noarch : PHP classes for manipulating Palm OS databases
php-pdepend-PHP-Depend.noarch : PHP_Depend design quality metrics for PHP
                              : package
php-pdo.i686 : A database access abstraction module for PHP applications
php-pear.noarch : PHP Extension and Application Repository framework
php-pear-Auth.noarch : Authentication provider for PHP
php-pear-Auth-OpenID.noarch : PHP OpenID
php-pear-Auth-radius.noarch : RADIUS support for php-pear-Auth
php-pear-Auth-samba.noarch : Samba support for php-pear-Auth
php-pear-Benchmark.noarch : Framework to benchmark PHP scripts or function calls
php-pear-CAS.noarch : Central Authentication Service client library in php
php-pear-Cache-Lite.noarch : Fast and Safe little cache system for PHP
php-pear-Console-Color.noarch : Easily use ANSI console colours from PHP
                              : applications
php-pear-Event-Dispatcher.noarch : Dispatch notifications using PHP callbacks
php-pear-HTML_Template_PHPLIB.noarch : PHP template system based on preg_*
php-pear-Log.noarch : Abstracted logging facility for PHP
php-pear-Net-Curl.noarch : OO interface to PHP's cURL extension
php-pear-Net-FTP.noarch : Provides an OO interface to the PHP FTP functions plus
                        : some additions
php-pear-Net-IDNA2.noarch : PHP library for punycode encoding and decoding
php-pear-PHP-CodeSniffer.noarch : PHP coding standards enforcement tool
php-pear-PHP-Compat.noarch : Provides missing functionality for older versions
                           : of PHP
php-pear-PhpDocumentor.noarch : The complete documentation solution for PHP
php-pear-PhpDocumentor-docs.noarch : Documentation for PhpDocumentor
php-pear-SOAP.noarch : Simple Object Access Protocol (SOAP) Client/Server for
                     : PHP
php-pear-Services-Twitter.noarch : PHP interface to Twitter's API
php-pear-XML-Parser.noarch : XML parsing class based on PHP's bundled expat
php-pecl-apc.i686 : APC caches and optimizes PHP intermediate code
php-pecl-gearman.i686 : PHP wrapper to libgearman
php-pecl-igbinary.i686 : Replacement for the standard PHP serializer
php-pecl-mailparse.i686 : PHP PECL package for parsing and working with email
                        : messages
php-pecl-mongo.i686 : PHP MongoDB database driver
php-pecl-oauth.i686 : PHP OAuth consumer extension
php-pecl-parsekit.i686 : PHP Opcode Analyser
php-pecl-rrd.i686 : PHP Bindings for rrdtool
php-pecl-selinux.i686 : SELinux binding for PHP scripting language
php-pecl-xdebug.i686 : PECL package for debugging PHP scripts
php-pgsql.i686 : A PostgreSQL database module for PHP
php-php-gettext.noarch : Gettext emulation in PHP
php-phpSmug.noarch : PHP wrapper for the SmugMug API
php-phpmd-PHP-PMD.noarch : PHPMD - PHP Mess Detector
php-phpunit-DbUnit.noarch : DbUnit port for PHP/PHPUnit
php-phpunit-PHP-CodeBrowser.noarch : PHP_CodeBrowser for integration in Hudson
                                   : and CruiseControl
php-phpunit-PHP-CodeCoverage.noarch : PHP code coverage information
php-phpunit-PHP-Timer.noarch : PHP Utility class for timing
php-phpunit-PHP-TokenStream.noarch : Wrapper around PHP tokenizer extension
php-phpunit-PHPUnit.noarch : The PHP Unit Testing framework
php-phpunit-PHPUnit-MockObject.noarch : Mock Object library for PHPUnit
php-phpunit-PHPUnit-Selenium.noarch : Selenium RC integration for PHPUnit
php-phpunit-bytekit.noarch : A command-line tool built on the PHP Bytekit
                           : extension
php-phpunit-phpcpd.noarch : Copy/Paste Detector (CPD) for PHP code
php-phpunit-phpdcd.noarch : Dead Code Detector (DCD) for PHP code
php-phpunit-phploc.noarch : A tool for quickly measuring the size of a PHP
                          : project
php-process.i686 : Modules for PHP script using system process interfaces
php-pspell.i686 : A module for PHP applications for using pspell interfaces
php-recode.i686 : A module for PHP applications for using the recode library
php-redland.i686 : PHP modules for the Redland RDF library
php-shout.i686 : PHP module for communicating with Icecast servers
php-simplepie.noarch : Simple RSS Library in PHP
php-snmp.i686 : A module for PHP applications that query SNMP-managed devices
php-soap.i686 : A module for PHP applications that use the SOAP protocol
php-swift-Swift.noarch : Free Feature-rich PHP Mailer
php-symfony-symfony.noarch : Open-Source PHP Web Framework
php-tidy.i686 : Standard PHP module provides tidy library support
php-voms-admin.noarch : Web based interface to control VOMS parameters written
                      : in PHP
php-xapian.i686 : Files needed for developing PHP scripts which use Xapian
php-xml.i686 : A module for PHP applications which use XML
php-xmlrpc.i686 : A module for PHP applications which use the XML-RPC protocol
php-xmpphp.noarch : XMPPHP is the successor to Class.Jabber.PHP
php-zipstream.noarch : Streaming dynamic zip from PHP without writing to the
                     : disk
phpFlickr.noarch : PHP client for the Flickr web service
phpTodo.noarch : PHP todo list manager
phpdoc.noarch : Command-line utility for PhpDocumentor
phpesp.noarch : PHP-based survey web application
rrdtool-php.i686 : PHP RRDtool bindings
sphinx-php.i686 : PHP API for Sphinx
syck-php.i686 : YAML module for php
uuid-php.i686 : PHP support for Universally Unique Identifier library
zorba-php.i686 : PHP language binding for zorba
bouml.i686 : UML2 tool box for C++, Java, IDL, PHP and Python
entertrack.noarch : Web-based artifact tracking/management system written in PHP
lighttpd-fastcgi.i686 : FastCGI module and spawning helper for lighttpd and PHP
                      : configuration
limph.noarch : A PHP5-compatible network host/service poller with web interface
php-IDNA_Convert.noarch : Provides conversion of internationalized strings to
                        : UTF8
php-ZendFramework-Auth-Adapter-Ldap.noarch : Zend Framework LDAP Authentication
                                           : Adapter
php-ZendFramework-Cache-Backend-Apc.noarch : Zend Framework APC cache backend
php-ZendFramework-Cache-Backend-Memcached.noarch : Zend Framework memcache cache
                                                 : backend
php-ZendFramework-Captcha.noarch : Zend Framework CAPTCHA component
php-ZendFramework-Db-Adapter-Firebird.noarch : Zend Framework database adapter
                                             : for InterBase
php-ZendFramework-Db-Adapter-Mysqli.noarch : Zend Framework database adapter for
                                           : mysqli
php-ZendFramework-Dojo.noarch : Zend Framework Dojo Toolkit integration
                              : component
php-ZendFramework-Feed.noarch : Live syndication feeds helper
php-ZendFramework-Gdata.noarch : Google Data APIs
php-ZendFramework-Ldap.noarch : Basic LDAP operations API
php-ZendFramework-Pdf.noarch : PDF file handling helper
php-ZendFramework-Services.noarch : Web service APIs for a number of providers
php-ZendFramework-Soap.noarch : SOAP web services server part helper
php-ZendFramework-demos.noarch : Demos for the Zend Framework
php-ZendFramework-extras.noarch : Zend Framework Extras (ZendX)
php-bartlett-PHP-CompatInfo.noarch : Find out version and the extensions
                                   : required for a piece of code to run
php-channel-bartlett.noarch : Adds bartlett channel to PEAR
php-channel-deepend.noarch : Survive The Deep End PEAR Channel
php-channel-doctrine.noarch : Adds doctrine project channel to PEAR
php-channel-ezc.noarch : Adds eZ Components channel to PEAR
php-channel-horde.noarch : Adds pear.horde.org channel to PEAR
php-channel-htmlpurifier.noarch : Adds htmlpurifier channel to PEAR
php-channel-pearplex.noarch : Adds the PearPlex channel to PEAR
php-channel-phing.noarch : Adds phing channel to PEAR
php-channel-swift.noarch : Adds swift mailer project channel to PEAR
php-channel-symfony.noarch : Adds symfony project channel to PEAR
php-enchant.i686 : Human Language and Character Encoding Support
php-ezc-Archive.noarch : A component for create, modify, and extract archive
                       : files of various formats
php-ezc-Authentication.noarch : Support for different means of identification
                              : and authentication
php-ezc-AuthenticationDatabaseTiein.noarch : Provides a Database filter for the
                                           : Authentication component
php-ezc-Base.noarch : Provides the basic infrastructure that all packages rely
                    : on
php-ezc-Cache.noarch : Provides a collection of lightweight classes to cache
                     : different kinds of data
php-ezc-Configuration.noarch : A component that allows you to use configuration
                             : files in different formats
php-ezc-ConsoleTools.noarch : A set of classes to do different actions with the
                            : console
php-ezc-DatabaseSchema.noarch : A set of classes that allow you to use
                              : information from a database schema
php-ezc-EventLog.noarch : Allows you to log events or audit trails
php-ezc-EventLogDatabaseTiein.noarch : Contains the database writer backend for
                                     : the EventLog component
php-ezc-Feed.noarch : This component handles parsing and creating RSS1, RSS2 and
                    : ATOM feeds
php-ezc-Graph.noarch : A component for creating pie charts, line graphs and
                     : other kinds of diagrams
php-ezc-Mail.noarch : A component construct and/or parse Mail messages
                    : conforming to the mail standard
php-ezc-PersistentObject.noarch : A component for store an arbitrary data
                                : structures to a fixed database table
php-ezc-PersistentObjectDatabaseSchemaTiein.noarch : Automatic generation of
     ...: PersistentObject from DatabaseSchema definitions
php-ezc-SystemInformation.noarch : Provides access to common system variables
php-ezc-Template.noarch : A fully functional Templating system
php-ezc-Webdav.noarch : Set up and run your own WebDAV server
php-feedcreator.noarch : Create RSS feeds
php-geshi.noarch : Generic syntax highlighter
php-horde-Horde-Exception.noarch : Horde Exception Handler
php-horde-Horde-Nls.noarch : Native Language Support (NLS)
php-horde-Horde-Translation.noarch : Horde translation library
php-horde-Horde-Url.noarch : Horde Url class
php-horde-Horde-Util.noarch : Horde Utility Libraries
php-pear-Auth-RADIUS.noarch : Wrapper Classes for the RADIUS PECL
php-pear-Auth-SASL.noarch : Abstraction of various SASL mechanism responses
php-pear-Auth-Yubico.noarch : Authentication class for verifying Yubico OTP
                            : tokens
php-pear-Auth_HTTP.noarch : Class providing HTTP authentication methods
php-pear-Cache.noarch : Framework for caching of arbitrary data
php-pear-CodeGen.noarch : Framework to create code generators that operate on
                        : XML descriptions
php-pear-CodeGen-PECL.noarch : Tool to generate PECL extensions from an XML
                             : description
php-pear-Console-CommandLine.noarch : A full featured command line options and
                                    : arguments parser
php-pear-Console-Getargs.noarch : Command-line arguments and parameters parser
php-pear-Console-ProgressBar.noarch : This class provides you with an
                                    : easy-to-use interface to progress bars
php-pear-Console-Table.noarch : Class that makes it easy to build console style
                              : tables
php-pear-Crypt-Blowfish.noarch : Quick two-way blowfish encryption
php-pear-Crypt-CHAP.noarch : Class to generate CHAP packets
php-pear-DB.noarch : PEAR: Database Abstraction Layer
php-pear-DB-DataObject.noarch : An SQL Builder, Object Interface to Database
                              : Tables
php-pear-DB-DataObject-FormBuilder.noarch : Automatically build HTML_QuickForm
                                          : objects
php-pear-DB-QueryTool.noarch : An OO-interface for easily retrieving and
                             : modifying data in a DB
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-Date-Holidays.noarch : Driver based class to calculate holidays
php-pear-Date-Holidays-USA.noarch : Driver based class to calculate holidays in
                                  : USA
php-pear-File.noarch : Common file and directory routines
php-pear-File-Bittorrent2.noarch : Decode and Encode data in Bittorrent format
php-pear-File-Find.noarch : Class which facilitates the search of filesystems
php-pear-File-Passwd.noarch : Manipulate many kinds of password files
php-pear-File-SMBPasswd.noarch : Class for managing SAMBA style password files
php-pear-HTML-Common.noarch : Base class for other HTML classes
php-pear-HTML-QuickForm.noarch : Class for creating, validating, processing HTML
                               : forms
php-pear-HTML-QuickForm-ElementGrid.noarch : Meta-element which holds any other
                                           : element in a grid
php-pear-HTML-QuickForm-advmultiselect.noarch : Element for HTML_QuickForm that
                                              : emulate a multi-select
php-pear-HTML-Table.noarch : Class to easily design HTML tables
php-pear-HTML-Template-IT.noarch : Integrated Templates
php-pear-HTML_Javascript.noarch : Class for creating simple JS scripts
php-pear-HTTP.noarch : Miscellaneous HTTP utilities
php-pear-HTTP-Client.noarch : Easy way to perform multiple HTTP requests and
                            : process their results
php-pear-HTTP-OAuth.noarch : Implementation of the OAuth spec
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-HTTP-Request2.noarch : Provides an easy way to perform HTTP requests
php-pear-HTTP-Upload.noarch : Secure managment of files submitted via HTML Forms
php-pear-Image-Canvas.noarch : Common interface to image drawing
php-pear-Image-Color.noarch : Manage and handles color data and conversions
php-pear-Image-Graph.noarch : Displays numerical data as a graph/chart/plot
php-pear-Image-GraphViz.noarch : Interface to AT&T's GraphViz tools
php-pear-MDB2.noarch : Database Abstraction Layer
php-pear-MDB2-Driver-mysql.noarch : MySQL MDB2 driver
php-pear-MDB2-Driver-mysqli.noarch : MySQL Improved MDB2 driver
php-pear-MDB2-Driver-pgsql.noarch : PostgreSQL MDB2 driver
php-pear-MDB2-Schema.noarch : Database Abstraction Layer
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
                     : emails
php-pear-Mail-Mime.noarch : Classes to create MIME messages
php-pear-Mail-mimeDecode.noarch : Class to decode mime messages
php-pear-Math-Stats.noarch : Classes to calculate statistical parameters
php-pear-Net-DIME.noarch : Implements Direct Internet Message Encapsulation
                         : (DIME)
php-pear-Net-DNS.noarch : Resolver library used to communicate with a DNS server
php-pear-Net-IPv4.noarch : IPv4 network calculations and validation
php-pear-Net-POP3.noarch : Provides a POP3 class to access POP3 server
php-pear-Net-Ping.noarch : Execute ping
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Sieve.noarch : Handles talking to a sieve server
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-Traceroute.noarch : Execute traceroute
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pear-Net-URL-Mapper.noarch : Simple and flexible way to build nice URLs for
                               : web applications
php-pear-Net-URL2.noarch : Class for parsing and handling URL
php-pear-Net-UserAgent-Detect.noarch : Extract information from an HTTP user
                                     : agent
php-pear-Numbers-Roman.noarch : Provides methods for converting to and from
                              : Roman Numerals
php-pear-Numbers-Words.noarch : Methods for spelling numerals in words
php-pear-OLE.noarch : Package for reading and writing OLE containers
php-pear-PEAR-Command-Packaging.noarch : Create RPM spec files from PEAR modules
php-pear-PHP-CompatInfo.noarch : Find out version and extensions required for a
                               : piece of code to run
php-pear-Pager.noarch : Data paging class
php-pear-Payment-Process.noarch : Unified payment processor
php-pear-Services-Weather.noarch : This class acts as an interface to various
                                 : online weather-services
php-pear-Spreadsheet-Excel-Writer.noarch : Package for generating Excel
                                         : spreadsheets
php-pear-Structures-DataGrid.noarch : Tabular structure for converting data
php-pear-Structures-DataGrid-DataSource-Array.noarch : DataSource driver using
                                                     : arrays
php-pear-Structures-DataGrid-DataSource-DataObject.noarch : DataSource driver
     ...: using PEAR::DB_DataObject
php-pear-Structures-DataGrid-DataSource-MDB2.noarch : DataSource driver using
     ...: PEAR::MDB2 and an SQL query
php-pear-Structures-DataGrid-DataSource-RSS.noarch : DataSource driver using RSS
                                                   : files
php-pear-Structures-DataGrid-Renderer-Pager.noarch : Renderer driver using
                                                   : PEAR::Pager
php-pear-Structures-DataGrid-Renderer-Smarty.noarch : Renderer driver using
                                                    : Smarty
php-pear-Text-Diff.noarch : Engine for performing and rendering text diffs
php-pear-Validate.noarch : Validation Class for Various Data Types
php-pear-Validate-Finance-CreditCard.noarch : Validation class for Credit Cards
php-pear-Var-Dump.noarch : Provides methods for dumping structured information
                         : about a variable
php-pear-XML-Beautifier.noarch : Class to format XML documents
php-pear-XML-RPC2.noarch : XML-RPC client/server library
php-pear-XML-RSS.noarch : RSS parser
php-pear-XML-Serializer.noarch : Swiss-army knife for reading and writing XML
                               : files
php-pear-phing.noarch : A project build system based on Apache Ant
php-pecl-apc-devel.i686 : APC developer files (header)
php-pecl-geoip.i686 : Extension to map IP addresses to geographic places
php-pecl-gmagick.i686 : Provides a wrapper to the GraphicsMagick library
php-pecl-igbinary-devel.i686 : Igbinary developer files (header)
php-pecl-imagick.i686 : Provides a wrapper to the ImageMagick library
php-pecl-lzf.i686 : Extension to handle LZF de/compression
php-pecl-memcache.i686 : Extension to work with the Memcached caching daemon
php-pecl-memcached.i686 : Extension to work with the Memcached caching daemon
php-pecl-mysqlnd-ms.i686 : A replication and load balancing plugin for mysqlnd
php-pecl-ncurses.i686 : Terminal screen handling and optimization package
php-pecl-radius.i686 : Radius client library
php-pecl-runkit.i686 : Mangle with user defined functions and classes
php-pecl-solr.i686 : Object oriented API to Apache Solr
php-pecl-sphinx.i686 : PECL extension for Sphinx SQL full-text search engine
php-pecl-ssh2.i686 : Bindings for the libssh2 library
php-pecl-yaml.i686 : Support for YAML 1.1 serialization using the LibYAML
                   : library
php-phpunit-File-Iterator.noarch : FilterIterator implementation that filters
                                 : files based on a list of suffixes
php-phpunit-PHP-Invoker.noarch : Utility class for invoking callables with a
                               : timeout
php-phpunit-PHPUnit-SkeletonGenerator.noarch : Tool that can generate skeleton
                                             : test classes
php-phpunit-Text-Template.noarch : Simple template engine
php-symfony-YAML.noarch : The Symfony YAML Component
phpMyAdmin.noarch : Handle the administration of MySQL over the World Wide Web
phpPgAdmin.noarch : Web-based PostgreSQL administration
phpldapadmin.noarch : Web-based tool for managing LDAP servers
phplogcon.noarch : A syslog data viewer for the web
phpwapmail.noarch : WAP-based e-mail client
squirrelmail.noarch : webmail client written in php
syck.i686 : YAML for C, Python, and PHP
tiquit.noarch : A PHP5-compatible help desk incident tracking/knowledgebase
              : system
toothchart.noarch : A PHP script which graphically shows how a baby's primary
                  : teeth have erupted

  Name and summary matches only, use "search all" for everything.

How to Install PHP on Fedora 16

PHP: Hypertext Preprocessor is a widely used, free and open-source server-side scripting language that was especially designed for web development to produce dynamic web pages and can be embedded into HTML. PHP applications are commonly found with the filename extensions .php, .php4, or .php5. PHP does not included in Fedora 16 with minimum type of installation. You have to install it manually if you really need it. In this post i will show the quick step to install PHP on linux Fedora 16 server. This post assumed that you have set up local yum repository using your DVDROM and had installed minimal installation type Fedora 16.

How to Setup Local Yum Repository from CD-ROM/DVD-ROM image on Fedora 16

Simply run yum command to install PHP. Please note that this will only installed basic php with php-cli and php-common only.

[root@fedora16 ~]# yum install php -y
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: php-common(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686
--> Processing Dependency: php-cli(x86-32) = 5.3.10-1.fc16 for package: php-5.3.10-1.fc16.i686
--> Running transaction check
---> Package php-cli.i686 0:5.3.10-1.fc16 will be installed
--> Processing Dependency: libedit.so.0 for package: php-cli-5.3.10-1.fc16.i686
---> Package php-common.i686 0:5.3.10-1.fc16 will be installed
--> Running transaction check
---> Package libedit.i686 0:3.0-4.20110227cvs.fc16 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

====================================================================================================
 Package            Arch         Version                          Repository                   Size
====================================================================================================
Installing:
 php                i686         5.3.10-1.fc16                    updates                     2.3 M
Installing for dependencies:
 libedit            i686         3.0-4.20110227cvs.fc16           Fedora16-Repository          85 k
 php-cli            i686         5.3.10-1.fc16                    updates                     2.2 M
 php-common         i686         5.3.10-1.fc16                    updates                     501 k

Transaction Summary
====================================================================================================
Install       4 Packages

Total download size: 5.1 M
Installed size: 16 M
Downloading Packages:
(2/4): php-5.3.10-1.fc16.i686.rpm                                            | 2.3 MB     00:27
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID a82ba4b7: NOKEY
Public key for php-5.3.10-1.fc16.i686.rpm is not installed
(3/4): php-cli-5.3.10-1.fc16.i686.rpm                                        | 2.2 MB     00:35
(4/4): php-common-5.3.10-1.fc16.i686.rpm                                     | 501 kB     00:06
----------------------------------------------------------------------------------------------------
Total                                                                73 kB/s | 5.1 MB     01:10
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Importing GPG key 0xA82BA4B7:
 Userid : Fedora (16) 
 Package: fedora-release-16-1.noarch (@anaconda-0)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Running Transaction Check
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : php-common-5.3.10-1.fc16.i686                                                    1/4
  Installing : libedit-3.0-4.20110227cvs.fc16.i686                                              2/4
  Installing : php-cli-5.3.10-1.fc16.i686                                                       3/4
  Installing : php-5.3.10-1.fc16.i686                                                           4/4

Installed:
  php.i686 0:5.3.10-1.fc16

Dependency Installed:
  libedit.i686 0:3.0-4.20110227cvs.fc16                 php-cli.i686 0:5.3.10-1.fc16
  php-common.i686 0:5.3.10-1.fc16

Complete!

How to Get the Details About Your PHP Installation on CentOS 5/CentOS 6/RHEL 5/RHEL 6

In this post, i will show on how to get the details about your PHP installation. This steps has been tested on CentOS 5.7, but it may working on CentOS 5.1, CentOS 5.2, CentOS 5.4, CentOS 5.5, CentOS 5.6, Red Hat Enterprise Linux 5 (RHEL 5) and Red Hat Enterprise Linux 6 (RHEL 6). Assumed that the document root of the default web site on apache httpd server is /var/www/html. Follow the following steps :

1. Create a small PHP file (info.php) in that document root directory :

[root@CentOS57 ~]# vi /var/www/html/info.php

2. Insert this in info.php :

<?php
phpinfo();
?>

3. Navigate the following URL on your browser :
As an example :
http://192.168.1.45/info.php