IT Nota

  • Home
  • How To
  • .NET
  • WordPress
  • Contact

Installing Apache, MySQL and PHP on Linux Mint

This setup is intended for those who need to get their system up and running to do PHP web development. It is not recommended for production websites.

Install Apache

Open Terminal and type:

sudo apt-get install apache2

At the end of installation you will see a message saying:

* Starting web server apache2
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

It’s nothing to worry about because most personal computers don’t have one.

Test Apache

Open a web browser and point it to URL:

http://localhost/

You should see a message saying:

It works!
This is the default web page for this server.
The web server software is running but no content has been added, yet.

Install PHP

Open up Terminal again and type in the following command:

sudo apt-get install php5 libapache2-mod-php5

Test PHP

In the terminal, type this command:

sudo pluma /var/www/test.php

This will create a new php file in Pluma text editor. Copy/Paste this line into the .php file.

<?php phpinfo(); ?>

Save and close the file.

From a web browser, try to load the file:

http://localhost/test.php

It should render a page with all information on the PHP installation.

Install MySQL

Still in the Terminal, type this command:

sudo apt-get install mysql-server

You will be prompted with Configuring mysql-server dialog to setup a root password. It’s recommended that you set a password.

Configuring mysql-server-5.5 Set Root Password

Install phpMyAdmin

sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin

In Configuring phpmyadmin window, press spacebar to check apache2 and press TAB key to move to and press Enter.

Configuring phpmyadmin on Apache2

Choose when asked to configure database for phpmyadmin with dbconfig-common.

Configuring phpmyadmin dbconfig-common

Test phpMyAdmin

From the browser, open this address:

http://localhost/phpmyadmin

You should see phpMyAdmin’s login page and be able to login using ‘root’ as Username and the password you setup earlier when you installed MySQL.

phpMyAdmin Login Page

Further Reading

Installing LAMP (Linux, Apache, MySQL and PHP) On Linux Mint

June 12, 2013 Filed Under: How To Tagged With: Linux

Buy me a coffee?

Buy me a coffee If you find any of the articles or demos helpful, please consider supporting my work here, you'll have my big thanks!

Buy me a coffee Support this site
Buy Me a Coffee?

Categories

  • .NET
  • Coding
  • Cybersecurity
  • Database
  • How To
  • Internet
  • Multimedia
  • Photography
  • Programming
  • Resources
  • Review
  • Tips and Tricks
  • Uncategorized
  • Use Case
  • WordPress
  • Writing

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Recent Posts

  • How to View Stored Procedure Code in SQL Server
  • How to Find a String in SQL Server Stored Procedures
  • How to Remove Cached Credentials without Rebooting Windows
  • ESP Work Automation: Empowering Enterprises with Streamlined Workflows and Operational Efficiency
  • How to Search for a String in All Tables in a Database

Tags

.NET .NET Core AdSense ASP.NET Cdonts Dll Classic ASP Code Editor ETL FSharp Genesis Framework Git Google HP Asset Manager HTML5 Hugo IIS Information Security Internet Internet Information Services iOS JAMStack Linux macOS Microsoft Microsoft SQL Server MVC PHP PowerShell Python Simple Mail Transfer Protocol Smtp Server SQL SQL Server SSIS SSMS SSRS Sublime Text Visual Studio Visual Studio Code VPN Windows Windows 8 Windows 10 Windows 2012 Windows Server

Copyright © 2011-2025 IT Nota. All rights reserved. Terms of Use | Privacy Policy | Disclosure