Laravel and PHP Setup from Scratch

Tudip Technologies
2 min readOct 20, 2021

To Install the updates you need to have a ubuntu 16.04, 18.04 or 20.04 server with a non-root sudo-enabled user account and a basic firewall. For a complete setup of php and Laravel we need to install the following:

  1. Apache and Installing the firewall
  2. Install Mysql
  3. Install Php
  4. Install Composer

Install Apache and firewall

Install Apache using Ubuntu’s package manager, apt, the commands used to install apache is:

  1. sudo apt update: This command will update all your existing updates that are needed to be updated
  2. sudo apt install apache2: This will install the apache server. You need to accept the permission by typing Y and then Enter. After completely installing apache2, you need to adjust your firewall settings to allow HTTP traffic.
  3. sudo ufw app list: This command will list down all your UFW profiles. Output will be like:
  1. sudo ufw allow in “Apache”: This command will allow traffic on port 80 for the Apache profile.
  2. sudo ufw status: Use this command to verify the status of your HTTP UFW profiles. Output will be like:

Read more: https://tudip.com/blog-post/laravel-and-php-setup-from-scratch/

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

No responses yet

Write a response