How to Install LAMP stack on Ubunt 16.04 VPS

1)Install Apache

add a single line to the /etc/apache2/apache2.conf file to suppress a warning message.

Open up the main configuration file

at the bottom of the file, add:-

ServerName Domain Name or IP

check for syntax errors

Output
Syntax OK

Restart Apache to implement the changes:

see the Apache Full profile:

Output
Profile: Apache Full
Title: Web Server (HTTP,HTTPS)
Description: Apache v2 is the next generation of the omnipresent Apache web
server.

Ports:
80/tcp

Allow incoming traffic for this profile:

2)Install MySQL

for security, run following command and press other than Y

3)Install PHP

check php installation

CREAT BASIC PHP SCRIPT OF PHP INFO

PUT THE TEXT IN BLANK FILE

ctrl+x, then press Y and hit Enter

Go to your browser then type:

domainname/IP address/info.php

 

 

 

 

 

 

 

 

 

You May Also Like

About the Author: Anant Jaynarayana

Leave a Reply

Your email address will not be published. Required fields are marked *