Lab Environment:1.VMware2. Two Linux sub-computers3. Bridging, native when the clientExperimental Purpose:1. Compiling httpd and compiling PHP, compiling MySQL, familiar with the compiling process and principle2.HTTPD and PHP on the same server, PHP
Follow the steps below to achieve a successful, pro-Test. Reprint, take notes.Compiled php-5.5-6 MySQL support, appeared cannot find MySQL header files Under/usr/include/mysql. Note that the MySQL client library isn't bundled anymore! error! Here's
11.10/11/12 installation PHP5PHP official website Www.php.net, the current mainstream version is 5.6 and 7.1Brief steps to install PHP5:
Cd/usr/local/src
wget http://cn2.php.net/distributions/php-5.6.30.tar.gz
Tar zxvf php-5.6.30.tar.gz
CD
Commands that are purely Linux:1. Forcibly unload a dependent package: Rpm-e httpd-2.2.15-26.el6.x86_64--nodeps (--nodeps indicates no dependencies)4. Delete all files in the current directory: RM-RF * (f indicates the meaning of forced deletion6.
First, the preparatory work1. Install the compilation tool GCC, gcc-c++Note To resolve dependencies, it is recommended to use Yum installation, if not networked can use the installation CD as a Yum source--1) Edit the Yum configuration file:#
Recently upgraded the system to the UBUNTU16 long-term Support edition and redeployed the LNMP environmentContract several directory source directory/usr/local/srcMysql/usr/local/mysqlphp/usr/local/phpNginx/usr/local/nginxMySQLVersion
PHP official website www.php.netCurrent mainstream version is 5.6/7.1First, PHP5 installation cd /usr/local/src/ wget http://cn2.php.net/distributions/php-5.6.30.tar.gz tar zxf php-5.6.30.tar.gz cd php-5.6.30 ./configure --prefix=/usr/local/php
This article by show according to Lin Feng to provide friendship sponsorship, starting in the mud row world. LNMP environment in the building, now only PHP has no source installed. This article will introduce you to this. Note This article uses the
In PHP character encoding conversion We generally use the iconv and mb_convert_encoding to operate, but mb_convert_encoding in the conversion performance is much worse than iconv oh.String Iconv (String in_charset, String out_charset, String str)
PHP7 Upgrade Scriptsupdate_php7.sh#!/bin/bash# PHP7.1.2Update Scriptsif[ ! $1];thenver=7.1.2ElseVer=$1Fidebugfile=20121212Echo"THANK you to USING UPDATE SCRIPT made by Jason_xia"Echo"You is going to UPDATE YOUR PHP to ${ver}"Echo"You CAN JUST has A
From PHP 5.3.3, you can use PHP-FPM directly, no longer need to patch. Previously written "Linux from source code compiled installation PHP 5" See http://www.linuxidc.com/Linux/2011-10/45743.htm, but in the mod_php module, rather than FastCGI mode
11.10/11.11/11.12 installation PHP5PHP official website www.php.netCurrent mainstream version is 5.6/7.1Please install before installingYum install-y Libxml2-developenssl
Application Environment
LNMP environment, the current PHP version 5.3.8, encountered an application requirements to support only PHP 5.2.x, but also want to maintain the existing application or PHP 5.3.8. That is, two versions of PHP are required
Note "Before compiling, you need to install the Xcode kit!"
1, the preparation of related software packages, unified into the/usr/local/src/php directory:
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.