Google
 

How To: PHP Installation

PHP Installation

1. Install php

[root@proxy ~]# yum install php

Setting up Install Process

Setting up repositories

updates-released 100% |=========================| 951 B 00:00

extras 100% |=========================| 1.1 kB 00:00

base 100% |=========================| 1.1 kB 00:00

Reading repository metadata in from local files

Parsing package install arguments

Resolving Dependencies

--> Populating transaction set with selected packages. Please wait.

---> Downloading header for php to pack into transaction set.

php-5.0.4-10.5.i386.rpm 100% |=========================| 18 kB 00:01

---> Package php.i386 0:5.0.4-10.5 set to be updated

--> Running transaction check

--> Processing Dependency: php = 5.0.4-10 for package: php-ldap

--> Processing Dependency: php = 5.0.4-10 for package: php-pear

--> Restarting Dependency Resolution with new changes.

--> Populating transaction set with selected packages. Please wait.

---> Downloading header for php-pear to pack into transaction set.

php-pear-5.0.4-10.5.i386. 100% |=========================| 35 kB 00:01

---> Package php-pear.i386 0:5.0.4-10.5 set to be updated

---> Downloading header for php-ldap to pack into transaction set.

php-ldap-5.0.4-10.5.i386. 100% |=========================| 13 kB 00:00

---> Package php-ldap.i386 0:5.0.4-10.5 set to be updated

--> Running transaction check

Dependencies Resolved

=============================================================================

Package Arch Version Repository Size

=============================================================================

Updating:

php i386 5.0.4-10.5 updates-released 2.3 M

Updating for dependencies:

php-ldap i386 5.0.4-10.5 updates-released 28 k

php-pear i386 5.0.4-10.5 updates-released 371 k

Transaction Summary

=============================================================================

Install 0 Package(s)

Update 3 Package(s)

Remove 0 Package(s)

Total download size: 2.7 M

Is this ok [y/N]:

Downloading Packages:

(1/3): php-pear-5.0.4-10. 100% |=========================| 371 kB 00:58

(2/3): php-ldap-5.0.4-10. 100% |=========================| 28 kB 00:01

(3/3): php-5.0.4-10.5.i38 100% |=========================| 2.3 MB 01:35

Running Transaction Test

Finished Transaction Test

Transaction Test Succeeded

Running Transaction

Updating : php ######################### [1/6]

Updating : php-pear ######################### [2/6]

Updating : php-ldap ######################### [3/6]

Cleanup : php-pear ######################### [4/6]

Cleanup : php-ldap ######################### [5/6]

Cleanup : php ######################### [6/6]

Updated: php.i386 0:5.0.4-10.5

Dependency Updated: php-ldap.i386 0:5.0.4-10.5 php-pear.i386 0:5.0.4-10.5

Complete!

2. Checking the installation

a. [root@proxy ~]# rpm -qa|grep php

php-ldap-5.0.4-10.5

php-pear-5.0.4-10.5

php-5.0.4-10.5

3. Put this php file on /var/www/html, name it index.php to test.


http://www.php.net/phpinfo