Skip to content

Instantly share code, notes, and snippets.

@viko16
Created November 7, 2014 13:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viko16/8fbc5a4c9eeb8a7c8294 to your computer and use it in GitHub Desktop.
Save viko16/8fbc5a4c9eeb8a7c8294 to your computer and use it in GitHub Desktop.
ubuntu 下 安装 nginx + php.5.5 + mysql

2014-11-7 安装于 ubuntu 14.10 下,root 用户请无视 sudo

安装nginx

sudo apt-get install nginx
sudo service nginx start

安装ppa源拓展工具,添加ppa源(为了安装高版本的php)

sudo apt-get install -y ppa-purge
sudo add-apt-repository ppa:ondrej/php5
sudo apt-get update

安装php5.5和扩展

sudo apt-get install php5-fpm
sudo apt-get install php5-mysql php5-gd php5-json php5-mcrypt php5-mysqlnd php5-xmlrpc php5-intl php5-sqlite php5-memcache php5-apc
sudo service php5-fpm reload

安装mysql,配置密码等

sudo apt-get install mysql-server mysql-client
sudo mysql_secure_installation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment