1.php-fpm
Yum Install PHP-FPM
Default configuration on local 9000 port monitoring
Service PHP-FPM Restart Boot
2.nginx 1.9.0
GCC zlib OpenSSL pcre (yum install is required, note that version may require devel version)
wget http://nginx.org/download/nginx-1.9.0.tar.gz
TAR-ZXVF nginx-1.9.0.tar.gz
CD nginx-1.9.0 into the unpacked directory
Execution./configure
Make && make install build installation
Specify configuration file/usr/local/nginx/sbin/nginx-c/usr/local/nginx/conf/nginx.conf
Start/usr/local/nginx/sbin/nginx-s Reload
3.xdebug
Also compile the installation
wget http://xdebug.org/files/xdebug-2.3.2.tgz
Unzip, execute./configure->make && make Install
Vim/etc/php.ini
Join at the end
zend_extension= "/lib64/php/modules/xdebug.so"
Xdebug.remote_enable = On
Xdebug.remote_handler = DBGP
Xdebug.remote_port = 9001 #防止和php 9000 Clash of-FPM
Xdebug.remote_connect_back = 1 #并不限制接收调试信息的机器的地址, of course you can also specify xdebug.remote_host= 192.168.xxx.xxx
Xdebug.idekey = Phpstorm
Xdebug.remote_log =/root/xdebug.log
Because Linux runs in VMware and is networked via NAT, it needs to be forwarded with Iptables
4.phpstorm inside Configuration
Centos7+nginx 1.9.0+php-fpm+phpstorm+xdebug+vmware Development Environment Construction