Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Lubuntu is installed and all runs great - now I want to add apache or lamp. How to proceed?

I need to add all the important ports and the firewall. Besides this I want to install the phpmyadmin. Well is this hard to do?

share|improve this question
up vote 1 down vote accepted

Not at all this fairly simple.

$ sudo apt-get install apache2 libapache2-mod-php5 php5 phpmyadmin

After that you should be all set. If you want to add the ports to the firewall these are port 80/TCP for HTTP and 443/TCP for HTTPS, if you want ssl also do:

 $ sudo a2enmod ssl
 $ sudo a2ensite default-ssl

And to add to iptables:

 $ sudo iptables -t filter -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
 $ sudo iptables -t filter -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT

Not completely sure about the IPtables commands since I usually reload using a config file.

If you have any more problems please let me know.

Kind regards, Jochen

share|improve this answer
thx alot for all the hints: by the way - i do not need root access to run these commands do i!? love to hear from you greetings – zero Jul 25 '12 at 20:37
Yes you need sudo permissions @zero – Rinzwind Jul 26 '12 at 7:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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