centos php5.2 installation method: first execute the command "wget -q -O." to add the source; then use the command "yum install php php-mysql php-xml php-gd php-mbstring php-cli "Just install php.
Recommended: "centos tutorial"
CentOS yum installation php5.2 method
yum installation low version php installation method
1. Environment
centos6.4 x86_32
2.Add source
wget -q -O - http://www.atomicorp.com/installers/atomic | sh
3. Excluding the php5.3 package, we only need php5.2.17
vim /etc/yum.conf exclude=*5.3.*
4. Installation
yum install php php-mysql php-xml php-gd php-mbstring php-cli
apache installation method
Installation
yum install httpd
Set to boot Start
chkconfig httpd on
Start service
/etc/init.d/httpd start 、
Install mysql
yum install mysql mysql-server
Set to start at boot
chkconfig mysqld onStart service
/etc/init.d/mysqld start
Modify mysql Password
mysql_secure_installation
When the following prompt appears, press Enter directly:
Enter current password for root
When the following prompt appears, press Enter again:
Set root password? [Y/n]
When the following prompt appears, enter the password you need to set, and press Enter Then enter once for confirmation:
New password:
There will be four more confirmations, namely:
Remove anonymous users? [Y/n] Disallow root login remotely? [Y/n] Remove test database and access to it? [Y/n] Reload privilege tables now? [Y/n]
Just press Enter.
Install ZendOptimizer-3.3.3
wget http://downloads.zend.com/optimi ... glibc23-i386.tar.gz tar -xzvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz ./ZendOptimizer-3.3.3-linux-glibc23-i386/install.sh
The above is the detailed content of centos php5.2 installation tutorial. For more information, please follow other related articles on the PHP Chinese website!