Skip to main content

Posts

Showing posts with the label digitalocean

Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) Part - 3

This is a third part of the Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) . In this post, I'm going to prepare the server for Laravel application deployment. Let's create a folder for our Laravel application. By default, NginX will look at the /var/www/ path to serve the files. In this folder let's create a folder called app. Open the following file to update the new path. Run the following command in your terminal. sudo nano /etc/nginx/sites-available/default Let's change the root line and add the public folder path. Change the following location section to add /index.php?$query_string; location / {                 # First attempt to serve request as file, then                 # as directory, then fall back to displaying a 404.              ...

Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) Part - 2

This tutorial is the second part of the Deploy Laravel 5.4 App on LEMP Stack (DigitalOcean Guide) . Before I install LEMP stack, I am going to update the package installer. To do that run the following command in the terminal. It will grab the package list and update it. sudo apt-get update Install Nginx (Engine-X) Run the following command to install Nginx server. sudo apt-get install nginx   After the installation, you should be able to visit your IP address and it will show the Nginx default page. Install MySQL Run the following command to install MySQL on your server. sudo apt-get install mysql-server The above command will start the MySQL installation process. You will have to enter 'Y' and proceed. After few steps you will see the following screen. Enter root password and proceed. Default MySQL installation is famous for insecure. MySQL has a helper script to secure the MySQL installation. To run the script type the following command i...