Monday, April 18, 2016

Cài Đặt Nginx Webserver trên Ubuntu 14.02

### Install nginx Easy Engine


Step 1: Open Port in Server

22/TCP (Inbound/Outbound) : Standard SSH port
80/TCP (Inbound/Outbound) : Standard HTTP port
443/TCP(Inbound/Outbound) : Standard HTTPS port
22222/TCP (Inboud) : To access EasyEngine admin tools
11371/TCP (Outbound) : To connect to GPG Key Server

Step 2: Connect Server
ssh -i leonnguyen.pem ubuntu@54.254.134.128

Step 3: Update Ubuntu && Install EE

wget -qO ee rt.cx/ee && sudo bash ee # install easyengine
sudo ee site create example.com --wp # install wordpress on example.com

## https://easyengine.io/docs/commands/stack/
# Install web packages
ee stack install


#Clean NGINX FastCGI cache, Opcacache, Memcache
ee clean --all

#Create site
ee site create nameweb --wpfc --pagespeed --user=admin --pass=alo123

##https://easyengine.io/docs/commands/secure/
#Changing HTTP authentication credentials
ee secure --auth [Optional user name] [Optional password]

#Changing Admin Port
ee secure --port [Optional port no]

# Disable cache config file
#
# include common/wpfc.conf;
include common/php.conf;


EmoticonEmoticon