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.

See also  How to Resolved Dependencies Related with wvText

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 Reset the Directory Manager Password on RHEL 7 / CentOS 7
How to Reset the Directory Manager Password on RHEL 7 / CentOS 7

It is best practice to remember passwords, but because too many passwords, sometimes we forget. We are not encouraged to write the password on any paper or share the password...

How to Find Big Files Size on Linux RHEL/CentOS
How to Find Big Files Size on Linux RHEL/CentOS

As the linux administrator, sometimes we have to identify which files are most take much space in the linux server resulting in low free space. Low disk space can also...

Why Linux users should worry about malware and what they can do about it
Why Linux users should worry about malware and what they can do about it

Don’t drop your guard just because you’re running Linux. Preventing the spread of malware and/or dealing with the consequences of infection are a fact of life when using computers. If...

How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7
How to Reset Forgotten Root Password on Linux RHEL 7/CentOS 7

This article will explain the steps to reset a lost root password or to reset forgotten root password on Linux RHEL 7 or CentOS 7. Basically, the steps will adding...

How to Update CentOS or Upgrade CentOS to the Latest Version
How to Update CentOS or Upgrade CentOS to the Latest Version

Recently, the latest version of CentOS 7.3 was released. All users of CentOS 7.0, 7.1 and 7.2 can upgrade their system to the most recent. This quick guide will explain...

How to Change your WordPress Username, Nickname and Display Name in MySQL
How to Change your WordPress Username, Nickname and Display Name in MySQL

After you create an account log in WordPress, you may want to change your WordPress username, as appropriate or due to security reason. However, you can not do this from...

How to Enable SSH Root Login on Ubuntu 16.04
How to Enable SSH Root Login on Ubuntu 16.04

As what we wrote in the previous article on how to allow SSH root on Ubuntu 14.04, after installing a fresh new copy of Ubuntu 16.04 LTS, we find that...

How to Change UUID of Linux Partition on CentOS 7
How to Change UUID of Linux Partition on CentOS 7

UUID (Universally Unique IDentifier) should be unique and it is used to identify storage devices on a linux system. If you cloned a virtual machine from vCenter, the metadata containing...

1 Comment

  • Avatar for Jonesr_tw Jonesr_tw says:

    i have installed PHP-5.3.13-1.fc15.i686 ,and apache started. But i cannot still run .php .
    scripts are invalid and shows nothing on browser’s view.
    conf files are default.
    How should i modify these conf files to make php works?

    TVM

Leave a Reply

Your email address will not be published. Required fields are marked *