0

I have tried to install LAMP on Ubuntu 14.04LTS Cant get PHPmyAdmin to work and access MYSQL Where is the clearest set of instructions to install LAMP

1

3 Answers 3

2

You can install the LAMP stak and phpmyadmin in a single command using the apt-get tasksel mode (don't forget the final ^):

sudo apt-get install lamp-server^ phpmyadmin
2

You have to install tasksel at first by sudo apt-get install tasksel. Then there are two processes to install LAMP server-- 1.Give the command sudo tasksel. You will get the following window- List of servers

Here press the down-arrow to select the server you want to install(In your case it is LAMP). Press tab to select,then ok. Now go on and install it!.

2.You can directly install it without seeing the list of servers by giving sudo tasksel install lamp-server and the installation process will start.

Now install phpmyadmin by sudo apt-get install phpmyadmin

6
  • "You have to install tasksel at first by sudo apt-get install tasksel" not true: sudo apt-get install lamp-server^ will install a lampserver user the tasksel task (see the list of tasks for apt-get related to ^)
    – Rinzwind
    Sep 4, 2014 at 14:28
  • That's not fundamental I think because the server to be installed in debian system are maintained by tasksel.So the user has to know what is 'tasksel'. Isn't it? Sep 4, 2014 at 14:32
  • No not really. All they need to know is that "^" will install a pre-defined tasks; there is no longer a need to install or know about tasksel itself/ (I wonder why that ^ method seems so unknown to lots of people :P )
    – Rinzwind
    Sep 4, 2014 at 14:35
  • Yes you are right.But I was wondering in future,many other servers (or other stuffs) can be installed through tasksel,so I mentioned it for convenience ;) Sep 4, 2014 at 14:40
  • Ah ok! But -all- of these can be used with apt-get and a ^ (the list with tasks is very long ;) )
    – Rinzwind
    Sep 4, 2014 at 14:42
0

This should take care of installing Lamp Server.

sudo apt-get install lamp-server^ phpmyadmin

lamp-server^ runs apt-get in tasksel mode.

It doesn't look like tasksel lamp-server task installs phpmyadmin

sudo tasksel  --task-packages lamp-server
libmysqlclient18
libwrap0
apache2
libaprutil1-dbd-sqlite3
tcpd
apache2.2-common 
apache2-utils
libswitch-perl
libaprutil1
libaprutil1-ldap
libclass-isa-perl
libdbi-perl
libplrpc-perl
mysql-server
apache2.2-bin
mysql-client-5.5
mysql-server-5.5
libdbd-mysql-perl
libcap2
libhtml-template-perl
perl-modules
libnet-daemon-perl
libapr1
perl
mysql-server-core-5.5
mysql-client-core-5.5
ssl-cert
apache2-mpm-prefork

Therefore we need to add phpmyadmin too.

1
  • I can do this 1 line shorter. See my edit.
    – Rinzwind
    Sep 4, 2014 at 14:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.