Server Fault is a question and answer site for system and network administrators. 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

i am on a debian 6 at 64bit.

I need to install LAMP.

apt-get update
apt-get upgrade
apt-get install apache2-mpm-prefork libapache2-mod-php5 mysql-server php5-mysql php5-gd

are those command enough?


share|improve this question

According to the Ubuntu page for setting up LAMP, yes, you are correct. You could also use tasksel to setup the server:

sudo tasksel install lamp-server

See the guide for more details.

share|improve this answer

I have installed:

  • mysql-server
  • mysql-client
  • apache2 (depends on apache2-mpm-prefork)
  • php5 (depends on libapache-mod-php5)
  • php5-mysql
  • php5-gd
  • php5-suhosin (security module)

Depending on what you are doing in php you may need additional php modules.

share|improve this answer
if i forgot to install a php module.. How Can I add it later? – dynamic Feb 9 '11 at 1:09
Use the command sudo aptitude install followed by the package name. The aptitude package management tool has a text mode graphical interface if you like. You can also use the search and show command from the command line, man aptitude will give you more information. – BillThor Feb 9 '11 at 2:02

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.