ubuntu 16.04 php 开发环境搭建
生活随笔
收集整理的這篇文章主要介紹了
ubuntu 16.04 php 开发环境搭建
小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
ubuntu 16.04 php 開發(fā)環(huán)境搭建
mysql
sudo apt install -y mysql-server mysql-clientphp 5.6
sudo add-apt-repository -y ppa:ondrej/php sudo apt update sudo apt install -y php5.6 php5.6-fpm php5.6-mysql php5.6-mbstring php5.6-curl php5.6-xmlnginx
sudo apt install -y nginx
sudo vim /etc/nginx/sites-enabled/default
sudo systemctl reload nginx
phpstorm
sudo apt install -y php-xdebug sudo vim /etc/php/5.6/mods-available/xdebug.ini xdebug.remote_enable=1 xdebug.remote_host=localhost xdebug.remote_port=9000 xdebug.idekey=PHPSTROMsudo systemctl restart php5.6-fpm
Go to http://www.jetbrains.com/phpstorm/marklets/
Click the Generate button under the Xdebug section, then drag the links “Start debugger” and “Stop debugger” from the Debug section that appears to the Bookmarks Toolbar.
參考資料:
https://askubuntu.com/questions/756181/installing-php-5-6-on-xenial-16-04
https://confluence.jetbrains.com/display/PhpStorm/Zero-configuration+Web+Application+Debugging+with+Xdebug+and+PhpStorm
總結(jié)
以上是生活随笔為你收集整理的ubuntu 16.04 php 开发环境搭建的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 淘宝模拟登录2解决滑动验证问题
- 下一篇: php快速计算子网掩码的前缀长度