search
HomeBackend DevelopmentPHP Problemcentos php5.2 installation tutorial

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

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!

Statement
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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools