Comments on Ubuntu 15.10 LAMP server tutorial with Apache 2.4, PHP 5 and MariaDB (instead of MySQL)

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache 2.4 web server on an Ubuntu 15.10 server with PHP 5 support (mod_php) and MySQL / MariaDB. Additionally, I will install PHPMyAdmin to make MySQL administration easier. A LAMP setup is the perfect basis for CMS systems like Joomla, Wordpress or Drupal.

22 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By: anhtuank7c

I follow your tutorial but i cannot access http://ip/phpmyadmin.

Image here

By: till

Ensure that you enabled the "apache" option during phpmyadmin installation. You can redo that by running:

 

dpkg-reconfigure phpmyadmin

By: Tyler

You Need To Add this to the end of your /etc/apache/apache2.conf file

Include /etc/phpmyadmin/apache.conf

this tutorial seems to be rushed and not thought out

By: till

That's not necessary, just verified that that on my LAMP server here. I explained to anhtuank7c above which step of the tutorial he and you missed. I write in the tut that you should select the option "apache2" when the phpmyadmin installer asks for "Web server to reconfigure automatically"

I'll cite from the tutorial:

Web server to reconfigure automatically: <-- apache2

The error that you have occurs when apache is not selected by enabling the "apache2" option with the "space" key of your keyboard.

You can redo that by running "dpkg-reconfigure phpmyadmin".

By: Guilherme

Hi There! I found your tutorial very helpful, How would I proceed if I would like to install MySQL instead of MariaDB? 

By: zbdi

sorunsuz kurdum te?ekkür ederim.

thx. perfect install.

By: kiddo

cant login on phpmyadmin

By: MahDi SaeDi

Did you try http://localhost/phpmyadmin?

Edit: Do this first

sudo gedit /etc/apache2/apache2.conf

add this line somewhere

Include /etc/phpmyadmin/apache.conf

and finally restart apache.

/etc/init.d/apache2 restart

By: sabi

Excelente tutorial. Recomendado.

By: fam

many thankyou, bro^^

By: Sasazuka

Starting web server apache2

AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'ServerName' directive globally to suppress this message

how to fix it?

By: Sasazuka

Sorry.

I fix it already with http://askubuntu.com/questions/329323/problem-with-restarting-apache2

By: Malte

Concise, short, clean. I like it! Though I didn't install phpMyAdmin. Most mysql php applications come with instructions on how to configure the sql database on the command line anyways.

By: Uli

Worked fine for me! Thx for the work done.

I had some troubles switching from mysql to mariadb because there seemed to be an incomplete install from mythtv. And due to version conflicts (mariadb 10.0, mysql 5.6) it was a little tricky.

By: ats

Hi

Appreciate the tutorial. I am very excited to have Lamp running on my system.

I followed your tutorial and unfortunately getting "Cannot log into Mysql Server" error message at Phpadmin page.

Please note that when I enter

echo "update user set plugin='' where User='root'; flush privileges;" | mysql --defaults-file=/etc/mysql/debian.cnf mysql

I get landed at  > prompt.

What did I do wrong...

Please extend support in fixing the issue.

By: Steve

Very Nice! I'm interested to see how much faster this version of MySql is! One note, I never did get the certificate warning after enablling ssl; perhaps because I'm on a Google Cloud?

By: MS

This is fantastic. It's rare to find a tutorial complete with phpmyadmin, ssl, all of it. Kudos.

By: handoy

many thankyou,succesfuly install......

 

By: VIjith

many thanks

By: snoop

Hey excelent tutorial worked perfect the 1st time... i do got a question though how could i automate the whole thing into a shell script is that possible? and if so how could i do it?

Thanks, Snoop

By: JSR

Great tutorial! Thanks

By: Marcus

Best guide ever.

Used it for my cubox i4pro running debian 8 .

Great job