How to Install PHP on Fedora 16

Share this Article :

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.

[[email protected] ~]# 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!

One Response

  1. Jonesr_tw

Leave a Reply