One: Install PHP:
Upload the PHP installation package and the Libmcrypt-devel development package to the installed machine
1, install Libmcrypt-devel and bzip2 to solve the dependent environment:
[email protected] php-5.4.26]# Yum localinstall/tmp/libmcrypt-*
[email protected] php-5.4.26]# Yum install bzip2*
2. Unzip the php-5.4.26 and compile the installation
[Email protected] ~]# tar xvf php-5.4.26.tar.gz
[Email protected] ~]# CD php-5.4.26
To start compiling:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/F7/wKiom1Rd0QGSY2nzAAFTOZ6q-KY574.jpg "title=" 2.jpg " alt= "Wkiom1rd0qgsy2nzaaftoz6q-ky574.jpg"/>
Compile Complete:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/F6/wKioL1Rd0ZmAGB_zAAL1iQPhulk714.jpg "title=" 1.jpg " alt= "Wkiol1rd0zmagb_zaal1iqphulk714.jpg"/>
Install and verify:
[[email protected] php-5.4.26]# make && make install
[Email protected] php-5.4.26]# ls/usr/local/php/
Bin etc include Lib Php
3. Edit the HTTP configuration file to support PHP:
Confirm that the HTTP configuration file has been added
[Email protected] php-5.4.26]# vim/etc/httpd2/httpd.conf
151 LoadModule Php5_module modules/libphp5.so
To add a configuration file:
[email protected] php-5.4.26]# CP Php.ini-development/etc/php.ini
Add PHP Type support:
AddType application/x-httpd-php. php
AddType Application/x-httpd-php-source. Phps
Add support HTTP Home page:
5. Edit the PHP homepage and test:
[Email protected] php-5.4.26]# cd/usr/local/apache/htdocs/
[Email protected] htdocs]# vim index.php
<?php
Phpinfo ();
?>
To restart Apache:
[Email protected] php-5.4.26]#/ETC/INIT.D/HTTPD2 restart
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/F6/wKioL1Rd2MWC6RezAAJu68AOYKY625.jpg "title=" 1.jpg " alt= "Wkiol1rd2mwc6rezaaju68aoyky625.jpg"/>
Two: Install phpMyAdmin and test:
Easy to install, directly unzip and move to Apache working directory:
[Email protected] ~]# Unzip Phpmyadmin-4.0.5-all-languages.zip
[Email protected] ~]# MV PHPMYADMIN-4.0.5-ALL-LANGUAGES/USR/LOCAL/APACHE/HTDOCS/PMA
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/F7/wKiom1Rd2gnx-rPVAADCkx9xCiE321.jpg "title=" 1.jpg " alt= "Wkiom1rd2gnx-rpvaadckx9xcie321.jpg"/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/F7/wKiom1Rd2vKwPARwAAKjtHvKmh0360.jpg "title=" 1.jpg " alt= "Wkiom1rd2vkwparwaakjthvkmh0360.jpg"/>
Three: Install XCache and test:
[Email protected] ~]# tar xvf xcache-3.0.3.tar.bz2
[Email protected] ~]# CD xcache-3.0.3
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/F6/wKioL1Rd2__iktwYAACnpcJ7ix8072.jpg "title=" 1.jpg " alt= "Wkiol1rd2__iktwyaacnpcj7ix8072.jpg"/>
Compile and install:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4D/F6/wKioL1Rd3FnRdhgrAABsYhQQ_T8310.jpg "title=" 1.jpg " alt= "Wkiol1rd3fnrdhgraabsyhqq_t8310.jpg"/>
To add a configuration file:
[Email protected] xcache-3.0.3]# MKDIR/ETC/PHP.D
[email protected] xcache-3.0.3]# CP xcache.ini/etc/php.d/
[Email protected] xcache-3.0.3]# Vim/etc/php.d/xcache.ini
Extension=/usr/local/php/lib/php/extensions/no-debug-zts-20100525/xcache.so
[Email protected] xcache-3.0.3]#/ETC/INIT.D/HTTPD2 restart
Test:
User browser Open host address:
View XCache Information:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/F6/wKioL1Rd3Z2BdOb-AAEFET1dZWw799.jpg "title=" 1.jpg " alt= "Wkiol1rd3z2bdob-aaefet1dzww799.jpg"/>
View MySQL information:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4D/F7/wKiom1Rd3XfjlIqRAALkWuHwgas105.jpg "title=" 1.jpg " alt= "Wkiom1rd3xfjliqraalkwuhwgas105.jpg"/>
FOUR: AB Pressure performance testing tools:
Common options for the AB test tool:
-N: The total number of connections to test, that is, how many times the connection is tested
-C: Number of concurrent connections per test
Before testing to use Ulimit to cancel or increase the limit of the number of connections, the default is 1024;
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4D/F6/wKioL1Rd4MzT5lOlAAQrATnyHHg295.jpg "title=" 1.jpg " alt= "Wkiol1rd4mzt5lolaaqratnyhhg295.jpg"/>
This article from the "Linux" blog, reproduced please contact the author!
Compile and install php-5.4.26, XCache and mysqladmin, AB pressure tool testing