Install Nginx
$ sudo echo "deb http://nginx.org/packages/mainline/ubuntu/ `lsb_release -cs` nginx" >> /etc/apt/sources.list $ sudo echo "deb-src http://nginx.org/packages/mainline/ubuntu/ `lsb_release -cs` nginx" >> /etc/apt/sources.list $ sudo curl http://nginx.org/keys/nginx_signing.key | sudo apt-key add - $ sudo apt-get update $ sudo apt-get install nginx
Install PHP7.0
$ apt install php7.0-fpm php7.0-mysql php7.0-cli php7.0-xml php7.0-gd php7.0-curl php7.0-ldap php-soap php7.0-mcrypt php7.0-mbstring php7.0-zip unzip $ nano /etc/php/7.0/fpm/php.ini 找到cgi.fix_pathinfo选项,去掉注释, 将值设置为0: cgi.fix_pathinfo = 0; Open the xdebug.ini file: $ nano /etc/php/7.0/fpm/conf.d/20-xdebug.ini [xdebug] xdebug.remote_enable=1 xdebug.remote_handler=dbgp xdebug.remote_mode=req xdebug.remote_host=127.0.0.1 xdebug.remote_port=9000