• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How to install LAMP Stack in Linux Mint

1005

To install LAMP Stack in Linux Mint

LAMP stands for Linux, Apache, MySQL & PHP. In this article we will learn how to install LAMP stack in Linux Mint.

To install Apache

Run the following command to install the Apache services.

linuxhelp Desktop # apt-get install apache2 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for ufw (0.34~rc-0ubuntu2) ...


Open your web browser and navigate to http://localhost/ or http://< IP_address> /
ubuntu_default_page

To install MariaDB

Run the following command to install MariaDB.

linuxhelp Desktop # apt-get install mariadb-server mariadb-client 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Setting up mariadb-client (5.5.49-1ubuntu0.14.04.1) ...
Processing triggers for ureadahead (0.100.0-16) ...
Setting up mariadb-server (5.5.49-1ubuntu0.14.04.1) ...
Processing triggers for libc-bin (2.19-0ubuntu6.6) ...
During installation set the root user password
Adjust other settings in Mysql
mysql_secure_installation 
/usr/bin/mysql_secure_installation: 379: /usr/bin/mysql_secure_installation: find_mysql_client: not found
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
      SERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!
All done!  If you' ve completed all of the above steps, your MariaDB
installation should now be secure.
Thanks for using MariaDB!


Once MariaDB database is installed, login by using the following command.

linuxhelp Desktop # mysql -u root -p 
Enter password: 
Welcome to the MariaDB monitor.  Commands end with   or g.
Your MariaDB connection id is 42
Server version: 5.5.49-MariaDB-1ubuntu0.14.04.1 (Ubuntu)
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type ' help '  or ' h'  for help. Type ' c'  to clear the current input statement.
MariaDB [(none)]>  exit
Bye

To install PHP

Run the following command to install the PHP.

linuxhelp Desktop # apt-get install php5 php5-mysql php5-cli php5-curl php5-gd php5-mcrypt 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
.
.
.
Setting up php5-json (1.3.2-2build1) ...
php5_invoke: Enable module json for cli SAPI
php5_invoke: Enable module json for apache2 SAPI


Create test PHP file to check whether php is working with apache or not.

linuxhelp Desktop # nano /var/www/html/phpinfo.php 
Add the following line to the file

< ?php phpinfo()  ?> 

Save and exit the file
Restart apache web server by running the following command.

linuxhelp Desktop # service apache2 restart 
 * Restarting web server apache2


Open your web browser and navigate to http://localhost/phpinfo.php or http://< IP_address> /phpinfo.php
php

To install phpMyAdmin

Run the following command to install phpmyadmin.

linuxhelp Desktop # apt-get install phpmyadmin &ndash y 
install_php_myadmin
configure_phpmyadmin
password
Reading package lists... Done
Building dependency tree
Reading state information... Done
&hellip 
&hellip 
populating database via sql... done.
dbconfig-common: flushing administrative password
apache2_invoke: Enable configuration phpmyadmin
* Reloading web server apache2


Open your web browser and navigate to http://localhost/phpmyadmin or http://< IP_address> /phpmyadmin
phpMyAdmin
phpMyAdmin

Tags:
ethan
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

State how can you take a backup of the whole database in MySQL?

A

You can use the command line utility to take a backup of all the mysql table or a specific mysql table easily with the following:



mysqldump –-user [user_name] –-password=[password] [database_name] > [dump_file_name]

Q

How to destroy a session variable?

A

To destroy Session_unregister() Unregister a global variable from the current session

Q

How can I install two software at the same time?

A

Yes, you can choose several applications but it gets installed one by one.

Q

How Can you increase the execution time of a php script?

A

Yes, we can use the max_execution_time variable to set the desired time you needed for executing a php script.

Q

What is SQL Injection and how do you deal with that?

A

SQL injection is a technique utilized by hackers to get access into your database by using malicious SQL statements. Using this, anyone can gain complete access to your database without any authorization or permission.

Related Tutorials in How to install LAMP Stack in Linux Mint

Related Tutorials in How to install LAMP Stack in Linux Mint

How to Install LAMP on Popos
How to Install LAMP on Popos
May 30, 2018
How to install LAMP on Solus-3 OS
How to install LAMP on Solus-3 OS
Mar 22, 2018
How to Install and Configure the Lamp Server on Linux Mint 20
How to Install and Configure the Lamp Server on Linux Mint 20
Nov 7, 2020
How to install LAMP Stack on Manjaro 17.0.5
How to install LAMP Stack on Manjaro 17.0.5
Oct 13, 2017
How to install LAMP Stack on Parrot 3.9
How to install LAMP Stack on Parrot 3.9
Dec 6, 2017
How to install LAMP stack in OpenBSD
How to install LAMP stack in OpenBSD
Oct 11, 2016
How To Install OrangeHRM in Ubuntu
How To Install OrangeHRM in Ubuntu
Jul 21, 2016
How to Build a Lamp Stack Docker Container on Ubuntu 21.04
How to Build a Lamp Stack Docker Container on Ubuntu 21.04
Mar 8, 2022

Related Forums in How to install LAMP Stack in Linux Mint

Related Forums in How to install LAMP Stack in Linux Mint

LAMP
victorsamuel class=
Install LAMP stack with single command
Jan 9, 2018
Apache
daniel class=
Wordpress Installation : Internal server error
Jun 15, 2018
LAMP
mason class=
ERROR 2002 (HY000): Can't connect to local MySQL server
Dec 10, 2020
Php
godwinstein class=
PHP error not displaying or not logging on Lamp server
Feb 10, 2021
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help David Lopez Guillen ?
Ayuda urgente instale SSL para servidor Opensuse y ahora no funciona tengo servicio web

hola segui este tutorial para tener un certificado ssl y ahora no se ve mi app en la red, espero alguien pueda ayudarme, tengo M9oodle en3.5 en un servidor open suse y ahora no funciona por favor ayuda.

https://www.linuxhelp.com/how-to-create-ssl-certificate-in-opensuse

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.