• Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
  • Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
home/Knowledge Base/Web Servers/How to Install Apache, MySQL, and PHP on Ubuntu
Popular Search:Dedicated Server, CentOS, Web Hosting

How to Install Apache, MySQL, and PHP on Ubuntu

16 views 0 November 26, 2019 aklwebhost

LAMP includes Apache, MySQL, PHP, and Ubuntu. This guide was written for Ubuntu 14.04.

Step One: Install Apache

Apache is a free open source software for web servers.

To install Apache on Ubuntu, type these commands:

sudo apt-get update
sudo apt-get install apache2

Or just copy and paste this:

sudo apt-get update; sudo apt-get install apache2

Tahhda. Let’s check if Apache was installed correctly. Run the command: hostname -I and note down that IP. Open up your Internet Browser and direct your browser to that IP (Example: http://108.61.212.235 ). The page should load and say “It Works!”.

Step Two: Install MySQL

MySQL is a database management system. Let’s install MySQL on Ubuntu. Type these commands:

sudo apt-get install mysql-server php5-mysql

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

Once that has been 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
Tags:and PHP on UbuntuHow to Install ApacheMySQL

Was this helpful?

Yes  No
Related Articles
  • How To Setup Apache on Windows Server
  • Setting up IIS on Windows Server
  • Setup NGINX, PHP-FPM, and MariaDB on Debian 8
  • Apache Virtual Hosts on Ubuntu 14.04 LTS
  • Install Lighttpd with PHP5 and MySQL (LLMP Stack) on Ubuntu 14.04
  • Install Lighttpd and PHP on Ubuntu
Leave A Comment Cancel reply

Web Servers
  • How to Install Apache, MySQL, and PHP on Ubuntu
  • How To Setup Apache on Windows Server
  • Setting up IIS on Windows Server
  • Setup NGINX, PHP-FPM, and MariaDB on Debian 8
  • Apache Virtual Hosts on Ubuntu 14.04 LTS
  • Install Lighttpd with PHP5 and MySQL (LLMP Stack) on Ubuntu 14.04
View All 37  
Popular Articles
  • Using StrongSwan for IPSec VPN on CentOS 7
  • Disabling SSDP (Linux / Windows)
  • Can I pay by Western Union?
  • Can a Coupon Code Discount Be Carried Forward While I Upgrade My VPS Account
  • Can I pay multiple due invoices using a single transaction?
KB Categories
  • Billing
  • Cloud Hosting
  • CMS Hosting
  • cPanel/WHM Control Panel Guide
  • Dedicated Servers
    • AMD Opteron 6272
    • Arch
    • Backup Storage
    • Bandwidth
    • Basic Security
    • BSD
    • CentOS
    • Containers
    • CoreOS
    • DDoS Protection
    • Debian
    • Dedicated Server Control Panel
    • Intel Core i5 3550
    • Intel Core i5 4570
    • Intel Core i7 3770
    • Intel Core i7 4770
    • Intel Xeon E3 1230 V3
    • Intel Xeon E3 1245 V2
    • IP Space
    • Linux Guides
    • Minecraft
    • Networking
    • Server Apps
    • Server Troubleshooting
    • Ubuntu
    • Windows Guides
    • Windows Server 2008
    • Windows Server 2012
  • Domain Names
  • Email Support Documentation
    • Setup IMAP or POP
    • User Features – How To
    • Webmail – How To
  • FTP (File Transfer Protocol
    • CuteFTP Guide
    • FileZilla Guide
  • Game Servers
  • MySQL and MariaDB
  • Node.js
  • Plesk Web Hosting Guide
  • VPS Server
  • Web Servers

  How to Install Apache, MySQL, and PHP on CentOS 6

How To Install WordPress on a LEMP Configuration  

  • Privacy Policy
  • Terms of Use
  • © 2022 AKLWEB HOST LLC, All Rights Reserved.

Popular Search:Dedicated Server, CentOS, Web Hosting