Setting up LEMP on Digital Ocean One Click Droplet to run the Laravel 5.2 web application

Setting up LEMP on Digital Ocean One Click Droplet to run the Laravel 5.2 web application

1) login with SSH
2) sudo apt-get update
3) sudo apt-get upgrade
3) copy the MySql admin password from /root/.digitalocean_password
4) run “mysql_secure_installation”
5) try to install composer
5.1) sudo apt-get install curl php5-cli git
5.2) curl -sS https://getcomposer.org/installer | php
5.3) sudo mv composer.phar /usr/local/bin/composer

6) go to /var/www
7) git download project folder
7.1) sudo chown -R :www-data /var/www/project_folder
7.2) sudo chmod -R 775 /var/www/project_folder/app/storage
7.3) sudo chmod -R 775 /var/www/project_folder/app/bootstrap
8) composer update –no-scripts
if you got error “allocate memeory case”
run the following commands to fix that issue
8.1) sudo fallocate -l 1G /swapfile
8.2) sudo mkswap /swapfile
8.3) sudo swapon /swapfile

9) Setting up / linking dns of the domain at z.com
10) login to z.com
11) go to related domain and added three dns for digital ocean
11.1) ns1.digitalocean.com
11.2) ns2.digitalocean.com
1.3) ns3.digitalocean.com

12) check at hosting (digital ocean droplet) with ssh
12.1) who is internalmedicinesocietymyanmar.com
and it will return digital ocean dns
13) create new domain setting at digital ocean
13.1) go to Networking at Digital Ocan
13.2) create new domain
13.3) Create One Domain at Digital Ocean by creating Records
===================================
A Record
Name = @
IP Address = 128.199.141.135
A Record
Name = acepluscoderepo.com
IP Address = 128.199.141.135
===================================
CNAME Record
Name = www
IP Address = example.com.
MX Record
Name = 1
IP Address = aspmx.l.google.com.
===================================
MX Record
Name = 5
IP Address = alt1.aspmx.l.google.com.
===================================
MX Record
Name = 5
IP Address = alt2.aspmx.l.google.com.
===================================
MX Record
Name = 10
IP Address = alt2.aspmx.l.google.com.
===================================
MX Record
Name = 10
IP Address = alt3.aspmx.l.google.com.
===================================
MX Record
Name = 10
IP Address = alt4.aspmx.l.google.com.
===================================
TXT Record
Name = example.com
IP Address = v=spf1 ip4:128.199.141.135 ~all
===================================
NS Record
Name = ns1.digitalocean.com.
===================================
NS Record
Name = ns2.digitalocean.com.
===================================
NS Record
Name = ns3.digitalocean.com.
===================================

14) After installed the nginx server at linux server, tried to send / testing email can send or not ?
Open terminal and type the following command to check it.

echo “HelloWorld” | mail -s “HelloWorld” test@gmail.com
test@gmail.com is “to” email address

Conclusion
Cheers

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s