Installing Nginx, php-fpm and Mongodb on Ubuntu

Installing Nginx

Add nginx signing key to sign the nginx packages and repository to the apt program keyring. Moe detail:  http://wiki.nginx.org/Install

or try:

Add the following to  the end of  apt config file:  “/etc/apt/sources.list”. “trusty” is the codename of nginx for ubuntu 14.04, for the other version of ubuntu please  check: http://nginx.org/en/linux_packages.html#distributions

Installing

Installing php5

Add php 5.6 package source to ubuntu system.

if you get error like this:

try to modify file “/etc/default/locale” to fix it:

Then logout and login again.

If you got error, try to install package “software-properites-common”

Or add the following to  the end of  apt config file:  “/etc/apt/sources.list”.

Check package version.

Installing

Configure Nginx and PHP5-fpm

Edit the nginx config file: “/etc/nginx/nginx.conf”

Append the following to file “/etc/nginx/fastcgi_params”

Create folders and files to add site

create file “/etc/nginx/sites-available/nextsolo.conf

Edit php5-fpm config file: “/etc/php5/fpm/pool.d/www.conf”

Installing MySQL

or

http://dev.mysql.com/downloads/repo/apt/ 

Installing MongoDB

For more detail: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/

install php mongodb driver

Installing Redis Server 3.0

install php redis driver

maybe you will use the following codes.

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *