First, install the PHP5PHP official website Www.php.net. Mainstream version 5.6,7.1.If your program, PHP code can be used PHP7 7, can not be used with 5,PHP7 performance has greatly improved.# cd/usr/local/src/# wget http://cn2.php.net/distributions/
1. Go to the PHP website to download the source http://www.php.net/downloads.php, I download the version used is (php-5.4.8.tar.gz)2. Extract to/usr/src directory, execute command: sudo tar-zxvf php-5.4.8.tar.gz-c/usr/src3. Implementation./configure-
Compiling and installing PHP1. Go to the PHP website to download the source http://www.php.net/downloads.php, I download the version used is (php-5.4.8.tar.gz)2. Extract to/usr/src directory, execute command: sudo tar-zxvf php-5.4.8.tar.gz-c/usr/src3
Mbstring Library full name is Multi-Byte String that all languages have their own code, their number of bytes is not the same, currently PHP internal code only support iso-8859-*, EUC-JP, UTF-8Other coded languages are not displayed correctly on PHP
Mbstring library full name is multi-byte string that all languages have their own encoding, their number of bytes is not the same, the current PHP internal encoding only supports ISO-8859-*, EUC-JP, other coding languages for UTF-8 are not available
1. Go to the PHP website to download the source http://www.php.net/downloads.php, I download the version used is (php-5.4.8.tar.gz)2. Installation EnvironmentYum Install XML22. Extract to/usr/src directory, execute command: sudo tar-zxvf
PHP Compilation Installation Series
Xu Liangwei, Hu Hu called the benchmark Xu. Years of experience in Internet operation and maintenance, has been responsible for large-scale cluster architecture automation operation and maintenance
Compile and install the LAMP environment with source code and configure multiple virtual hosts Based on Domain Name access
Lab environment and software version:
CentOS version: 6.6 (2.6.32.-504. el6.x86 _ 64)Apache version: apache2.2.27Mysql version:
One, back up the original PHP fileTo view an existing PHP version:Backup, because it is not an overlay installation, here can also not backup, but, as a daily operating habits, backup is very necessary.[[email protected] ~]# cd
Installing PHP5Download the source Packagewget http://cn2.php.net/distributions/php-5.6.30.tar.gzUnzip the source packagetar -zxvf php-5.6.30.tar.gzTo compile (enter the directory after PHP decompression)./configure --prefix=/usr/local/php
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.