Centos7+nginx 1.9.0+php-fpm+phpstorm+xdebug+vmware Development Environment Construction

Source: Internet
Author: User

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

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.