How to install Apache, MySQL, PHP on Ubuntu fast on Vultr

How to install Apache, MySQL, PHP on Ubuntu fast on Vultr

LAMP includes Apache, MySQL, PHP and Ubuntu,

If you don’t have a server, sign up from here https://www.vultr.com/?ref=8283205

Apache, the Apache HTTP Server is free and free-source cross-platform web server technology, distributed under the terms of Apache License 2.0. Apache was developed and maintained under the auspices of the Apache Technology Foundation by an open community of programmers.

MySQL is an open-source platform for maintaining relational databases. The title is a mixture of “My,” the name of the sister of co-founder Michael Widenius, and “SQL,” the Structured Query Language abbreviation.

PHP: Hypertext Preprocessor is a general-purpose web development programming language. It was originally created in 1994 by Rasmus Lerdorf; The PHP Group now provides the PHP reference implementation.

Ubuntu is a free, open-source, Debian-based Linux platform. Across three versions, Ubuntu is officially released: Windows, Server, and Core. On the system alone or in a virtual machine, both versions will operate. Ubuntu is a common cloud computing operating system with OpenStack support.

To install apache type these commands:

sudo apt-get update
sudo apt-get install apache2 

wohoo!. Let’s check if Apache was installed correctly. Run the command:

hostname -I

Step Two

– Install MySQL

Step Two- Install MySQL

MySQL is a database management system.

sudo apt-get install mysql-server php5-mysql

During the install MySQL will request for you to setup a password.

Now Once that’s installed run these commands

sudo mysql_install_db

then write

sudo /usr/bin/mysql_secure_installation

Step Three– Install PHP

Now write these commands

sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt

Done.

Leave a Comment