PHP Service Installation Summary
System Environment Information
- CentOS Release 6.3 (Final)
- Vmware? Workstation 9.0.0 build-812388
RPM Installation Package Preparation
????? 1 Copy the following installation package from the CD to the specified directory
????? 2 can also be downloaded from the RPM resource website to the local environment
???? ? ? http://rpmfind.net/linux/
???? php-common-5.3.3-3.el6_2.8.i686.rpm
???? php-cli-5.3.3-3.el6_2.8.i686.rpm
???? php-5.3.3-3.el6_2.8.i686.rpm
???? php-pdo-5.3.3-3.el6_2.8.i686
???? php-mysql-5.3.3-3.el6_2.8.i686.rpm
???? php-xml-5.3.3-3.el6_2.8.i686.rpm
???? php-ldap-5.3.3-3.el6_2.8.i686.rpm
????? Directory Name
Remove the original PHP service
- View PHP Service installation--php already installed
????????? #php-V
???????? PHP 5.3.3 (CLI) (Built:may? 7 2012 19:58:17)
??????? Copyright (c) 1997-2010 the PHP Group
??? 2. View PHP RPM Installation
??????? #rpm-qa |grep PHP
??????? php-cli-5.3.3-3.el6_2.8.i686
??????? php-xml-5.3.3-3.el6_2.8.i686
??????? php-pdo-5.3.3-3.el6_2.8.i686
??????? php-common-5.3.3-3.el6_2.8.i686
??????? php-mysql-5.3.3-3.el6_2.8.i686
??????? php-ldap-5.3.3-3.el6_2.8.i686
??????? php-5.3.3-3.el6_2.8.i686
??? 3. Remove PHP in the following order
??????? #rpm-E php-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-ldap-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-mysql-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-cli-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-pdo-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-xml-5.3.3-3.el6_2.8.i686
??????? #rpm-E php-common-5.3.3-3.el6_2.8.i686
?? 4 Verification
????? #whereis PHP
????? There is no information about PHP.
????? Php:
Install PHP steps
- #cd/usr/dev/php
- #rpm-IVH php-common-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-cli-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-pdo-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-mysql-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-xml-5.3.3-3.el6_2.8.i686.rpm
- #rpm-IVH php-ldap-5.3.3-3.el6_2.8.i686.rpm
- #php-V
Command comments
?? 1 Enter the directory of the PHP RMP installation package to perform the RPM installation package for installation
?? 9 Verify that PHP is installed properly if normal installation displays the following:
????? PHP 5.3.3 (CLI) (Built:may? 7 2012 19:58:17)
?????? Copyright (c) 1997-2010 the PHP Group