centos php5.2 installation tutorial

藏色散人
Release: 2023-03-04 21:24:02
Original
3111 people have browsed it

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.

centos php5.2 installation tutorial

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
Copy after login

3. Excluding the php5.3 package, we only need php5.2.17

vim /etc/yum.conf
exclude=*5.3.*
Copy after login

4. Installation

yum  install  php php-mysql php-xml  php-gd php-mbstring php-cli
Copy after login

apache installation method

Installation

yum install httpd
Copy after login

Set to boot Start

chkconfig httpd on
Copy after login

Start service

/etc/init.d/httpd start
、
Copy after login

Install mysql

yum install mysql mysql-server
Copy after login

Set to start at boot

chkconfig mysqld onStart service

/etc/init.d/mysqld start
Copy after login

Modify mysql Password

mysql_secure_installation
Copy after login

When the following prompt appears, press Enter directly:

Enter current password for root
Copy after login

When the following prompt appears, press Enter again:

Set root password? [Y/n]
Copy after login

When the following prompt appears, enter the password you need to set, and press Enter Then enter once for confirmation:

New password:
Copy after login

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]
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!