Ubuntu development environment with .local domain setup

Submitted by Karthikeyan on

Watch the following video to know how to setup Ubuntu Development environment for PHP coders. (LAMP Environment)

Apache, MySQL & PHP setup in Ubuntu Linux. 

1. Update apt cache and installed packages:

sudo apt update sudo apt upgrade

2. Install Apache 2

sudo apt install apache2

3. Install Mysql

sudo apt install mysql-server

Secure MySQL Installation

sudo mysql_secure_installation

4. Install PHP

sudo apt install php libapache2-mod-php php-mysql

check PHP version

php -v

5. Setup local domain

Add your host

sudo nano /etc/hosts

Configure apache to run on your directory

sudo nano /etc/apache2/apache.conf

Add virtual hosts for your local domain

sudo nano /etc/apache2/sites-available/your_domain.local.conf

Enable your local domain

sudo a2ensite your_domain.local.conf

 

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.