hb6syg
Last Updated: February 25, 2016
·
319
· devatotech
Avatar square

Install LAMP Stack one liner Ubuntu

Follow thru with this:

sudo apt-get install lamp-server^ phpmyadmin

Create link to phpmyadmin:

sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin

NOTES

Latest phpMyAdmin versions require mysqli extension and will no longer work with mysql one (note the extra "i" at the end of it's name).

sudo apt-get install php5-mysql

Will install package containing both old one and the new one, so afterwards all you need to do is to add

extension=mysqli.so

in your php.ini, restart apache and it should work.

Trouble Shooting

If you get this error:

apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

$ sudo vim /etc/apache2/apache2.conf

then add a new line

ServerName localhost

in the Global Configuration section of the file (for example). Save your changes and close the file.

MOD REWRITE

Change AllowOverride to All in /etc/apache2/sites-enabled/000-default

Say Thanks
Respond
Filed Under