PHP Installation
Yun Install vim
Download Php:wget http://cn.php.net/distributions/php-7.1.2.tar.gz decompression: TAR-ZXVF php-7.1.2.tar.gz installation gcc:yum install GCC gcc+ Libxml2-devel compile:./configure--prefix=/usr/local/php7--enable-fpmmakesudo make install execute 1.php file /usr/local/ php7/bin/php 1.php If you use Nginx to be the server, you need to download a fastcgi, related documents http://php.net/manual/zh/install.fpm.phpCGI,FAST-CGI,enable= FPM These three points are not well understood; 1. Whether the PHP interpreter is embedded in the WEB server process internal execution mod_php by embedding the PHP interpreter into the Apache process, only with Apache, while CGI and fast-cgi appear as separate processes as long as the corresponding WEB server implements CGI or FAST-CGI protocol to handle PHP requests. mod_php This embedded way the biggest drawback is that the memory occupies a large, regardless of whether the PHP interpreter will be loaded into memory, typically processing CSS, JS and other static files is absolutely no need to load the interpreter. 2. The number of requests processed by a single process mod_php and fast-cgi patterns can process multiple requests during the lifetime of each process, while CGI mode processes a request to destroy the process immediately, and CGI performance is very poor in high concurrency scenarios. In the comprehensive, if the performance has a high demand, can be static request and dynamic request separate, then Nginx + php-fpm is a better choice. ps:cgi, fastcgi usually refers to the protocol specification of the WEB server communicating with the interpreter, and PHP-FPM is an implementation of the FASTCGI protocol.
Mysql
wget http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.15.tar.gz Download TAR-ZXVF mysql-5.7.15.tar.gz Extract yum install CMake gcc-c++ ncurses-devel perl-data-dumper boost Boost-doc boost-devel install dependency
Cmake-dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data-dsysconfdir=/etc-dmysql_user =mysql-dwith_myisam_storage_engine=1-dwith_innobase_storage_engine=1-dwith_archive_storage_engine=1-dwith_ Readline=1-dmysql_unix_addr=/usr/local/mysql/data/mysql.sock-dmysql_tcp_port=3306-denabled_local_infile=1- Denabled_downloads=1-dwith_partition_storage_engine=1-dextra_charsets=all-ddefault_charset=utf8-ddefault_ collation=utf8_general_ci-dwith_debug=0-dmysql_maintainer_mode=1-dwith_ssl:string=bundled-dwith_zlib:string= bundled-ddownload_boost=1-dwith_boost=/usr/share/doc/boost-doc-1.41.0/
sudo make install
mysqld start MySQL MySQL
Apcahe
wget HTTP://APACHE.FAYEA.COM//HTTPD/HTTPD-2.4.25.TAR.GZTAR-ZXF httpd-2.4.25.tar.gz
wget http://mirrors.tuna.tsinghua.edu.cn/apache//httpd/httpd-2.4.23.tar.gztar-zxf Httpd-2.4.23.tar.gzwget/http Mirrors.tuna.tsinghua.edu.cn/apache//apr/apr-1.5.2.tar.gzwget http://mirrors.tuna.tsinghua.edu.cn/apache//apr/ APR-UTIL-1.5.4.TAR.GZTAR-ZXF apr-1.5.2.tar.gztar-zxf apr-util-1.5.4.tar.gzmv apr-1.5.2 aprmv apr-util-1.5.4 APR-UTILMV Apr apr-util httpd-2.4.23/srclib/wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/ PCRE-8.38.TAR.GZTAR-ZXF pcre-8.38.tar.gz&&cd pcre-8.38./configure--prefix=/usr/local/pcre-8.38make & &sudo make INSTALLCD. /httpd-2.4.23./configure--prefix=/usr/local/apache-with-pcre=/usr/local/pcre-8.38/bin/pcre-config- With-included-aprmake &&sudo make installcd/usr/local/apache/bin/
sudo firewall-cmd--zone=public--add-port=80/tcp--permanent
sudo./apachectl-k start
CentOS Deployment PHP Development environment