Download as pdf or txt
Download as pdf or txt
You are on page 1of 19

Sunday, January 12, 8:28 am About Us

Home

Linux

News

Distributions

Install PostgreSQL
9 .3 On CentOS
6 .5/6 .4

Advertising

Tutorials

Sitemap

Privacy

Opensource

Knowledge Base

Install Cherokee
Lightweight
Webserv er On
Ubuntu
1 3 .1 0/1 3 .04

Contact Us

Android

QBittorrent 3 .1 .4
Released! Install In
Ubuntu Via PPA

FAQs

Update Centos
6 .5/6 .4 Behind
Proxy - Solv ed

Q/A Forum

Setup Backup
Serv er Using Bacula
And Webm in On
CentOS 6 .5/6 .4

Like us on Facebook

Install Lamp With 1 Command In Ubuntu


12.10, 13.04 Raring Ringtail & LinuxMint13
WRITTEN BY mel kham ON OCTOBER 11, 2010. POSTED IN linux mint, linux tutorials, ubuntu

86

Tw eet

38
130

open in browser PRO version

Like
Email

117

15

Unixmen
Like 14,153

Advertise Here

Share

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Updated: 10/09/2012 :LAMP (Linux, Apache, MySQL and PHP) is an open source Web
development platform that uses Linux as operating system, Apache as the Web server, MySQL as
the relational database management system and PHP as the object-oriented scripting language.
We did show you in our previous post how to install LAMP in Ubuntu 10.04 with one command
using tasksel command. It is a software installation application that is an integral part of the
Debian installer and works under Ubuntu Linux too. It groups some packages by tasks and offers
the user an easy way to install the packages for that task. It provides the same functionality as
using conventional meta-packages. in Maverick this command dosn`t come by default, so we
need to install it first before to perform the LAMP installation.
This tutorial was has been tested on Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04 LTS Precise
Pangolin. Also tested in LinuxMint13 and works fine.
Open terminal and Type the command :install it first with
sudo apt-get install tasksel

Now to install LAMP, type the taskel command in terminal :


sudo tasksel

And select LAMP Server:

This week Top Posts


Top Things To Do After Installing
Ubuntu 13.10 'Saucy Salamander' :
Ubuntu 13.10 Saucy Salamander will
be released on coming October 17th with
many new salient featur...0 comments | by SK
Ubuntu Wins W3tech's Operating
System Of The Year Award : We all
know Ubuntu. I will say majority of
Linux users today started with Ubuntu before
taking their...0 comments | by Enock Seth Nyamador
Ubuntu 12.04 Scores Highest In UK

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Ubuntu 12.04 Scores Highest In UK


Govt Security Assessment :
Communications-Electronics
Security Group (CESG), the security arm of
the UK government that assesse...0 comments | by
Enock Seth Nyamador

Install RPM Fusion Repository On


RHEL, CentOS, Scientific Linux 6.x,
5.x And Fedora 14 To 20 : Like
EPEL, REMI repository, RPM Fusion
repository provides packages that Fedora or
Red Hat doesn't w...0 comments | by SK
Empathy 3.10.3 Stable Released
With Two Bug Fixes : Empathy is a
GNOME multi-protocol chat and call
client Instant messaging program supporting
text, vo...0 comments | by Enock Seth Nyamador

During the installation you will be asked to insert the mysql root password

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

Install RepoForge (RPMForge)


Repository On RHEL, CentOS,
Scientific Linux 6.x/5.x/4.x : Like
EPEL, REMI, RPM Fusion repositories,

pdfcrowd.com

EPEL, REMI, RPM Fusion repositories,


RepoForge, formerly known as RPMForge, is
a third party re...0 comments | by SK

Recent Posts
Recent Posts
Install LAMP Server (Apache, MySQL or
MariaDB, PHP) On Ubuntu 13.10
Ubuntu 12.04 Scores Highest In UK Govt
Security Assessment
Install RepoForge (RPMForge) Repository
On RHEL, CentOS, Scientific Linux 6.x/5.x/4.x

Now check if php is working :

Audacious 3.4.3 Released With Bug Fixes


$sudo vi /var/www/info.php
and add

Ubuntu Wins W3techs Operating System Of


The Year Award

<?php
phpinfo();
?>

Install RPM Fusion Repository On RHEL,


CentOS, Scientific Linux 6.x, 5.x And Fedora
14 To 20

save and exit

OpenSUSE Forums Hacked; Another


vBulletin Attack!

restart apache2 ,
#sudo /etc/init.d/apache2 restart

open in browser PRO version

Empathy 3.10.3 Stable Released With Two


Bug Fixes

Are you a developer? Try out the HTML to PDF API

Install PostgreSQL 9.3 On CentOS 6.5/6.4

pdfcrowd.com

How To Install XnConvert In Ubuntu


Now open browser and type :
http://ip/info.php or http://localhost/info.php

This work by
unixmen.com is
licensed under a
Creative Commons
AttributionNonCommercialNoDerivs 3.0
Unported License.

Php is installed.
To full manage your lamp Server database, install phpmyadmin
sudo apt-get install phpmyadmin
To login to phpmyadmin, open browser and type :
http://ip/phpmyadmin or http://localhost/phpmyadmin

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Recent Comments
SK

Updated.. Thanks.

JANUARY 12, 2014 | #

Edgar Joya
JANUARY 12, 2014 | #

Maria DB installation needs to be updated. heres


https://downloads.mariadb.org/mariadb/repositories
SK
JANUARY 12, 2014 | #

Thank you Mark. Yes, Tamilnadu is beautiful


and please come if you have time. There are
many worth places to visit here.
SK

{module user9-footer|none}

JANUARY 12, 2014 | #

Thanks for the feedback dbo.


For questions please refer to our Q/A forum at : http://ask.unixmen.com/
dbo
JANUARY 11, 2014 | #

Perfect instructions! Easy and to the point.


Ive read other websites that take you here
and there, and have you install a bunch of
useless things. Thanks for the info!

Unixmen
open in browser PRO version

Are you a developer? Try out the HTML to PDF API

Follow

+1

pdfcrowd.com

Follow

advertise here

+1

+ 7,148

Favorite Links
Cheap Hosting
TuxMachines.org
UbuntuGeek.com
Webdesign & SEO
Related posts:
Install Lamp with 1 command in ubuntu
Howto: Install Lamp and phpmyadmin on Ubuntu
How to install LAMP with 1 command in LinuxMint
How to install LAMP and PhpMyadmin on LinuxMint 7 Gloria
How to install Lamp and Phpmyadmin in Fedora 13

13.04 Raring Ringtail


PHP

apache2

phpmyadmin

tasksel

httpd

lamp

mysql

Natty Narwhal

oneiric ocelot

ubuntu

238 Comment(s)

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Mel Kham
Founder of Unixmen , Born in Morocco, Living in Amsterdam. i Have a Good Knowledge about
Unix/Linux OS / Networking/ Storage/ Visualization/Backup/Monitoring/ ......., and i want to share
that with our reliable Unixmen readers . Email: webmaster@unixmen.com
AROUND THE WEB

7 Phases of Miley Cyrus's


Transformation Celeb Zen

7 Best Credit Cards for Those with


Excellent Credit Next Advisor

50 Best Pizzas in America: One from


Every State

ALSO ON UNIXMEN

How To Install Jshot Screenshot Tool 1 comment

Ubuntu Startup Disk Creator Finally Gets Fixes

Install Munin Monitoring Tool On CentOS, RHEL,


Scientific Linux 1 comment

Terminal Tip How To View Html Code Of A Website


From The Terminal 1 comment

223 comments
Join the discussion
Best

Community

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Best

Community
Lepro

2 years ago

sudo apt-get install lamp-server^ phpmyadmin


74

Reply Share

Aaron Hinojosa

Lepro a year ago

Definitely a better option than Tasksel. Tasksel will wipe out critical components if you are not careful and the
UI is a bit confusing (e.g., unchecking a box means marking the component for removal).
9

Reply Share

Durkadur

Aaron Hinojosa 11 months ago

Ohh noo ****ing hell.. You're right that UI is misleading.


2

Reply Share

Guest

Aaron Hinojosa 3 months ago

OMG! Thats the worst UI I have ever seen in my whole life! I was uninstalling ubuntu desktop without
knowing. And thats why I have had to reinstall a brocken OS 3 times today. Damnit!
1

Reply Share

FrankieBagnardi

Lepro 2 years ago

Thanks, that's the easiest lamp install I've ever done. What does the caret (^) mean there?
5

Reply Share

eg0e

FrankieBagnardi a year ago

Basically, it tells apt-get that you're issuing a command that would normally be handled by Tasksel
(Without having to first install tasksel.)
Fairly good explanation below.
http://tech.shantanugoel.com/2...
4

Reply Share

Jonathan Barronville

FrankieBagnardi 2 years ago

The caret means that it's a Taskel task. Check out the following link, I think it mentions that. Here is
open in browser PRO version Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

the link: https://help.ubuntu.com/commun...


Reply Share

Sean Davis

Lepro a month ago

That was so much easier. Thank you!


Reply Share

Warit

Lepro 2 years ago

tasksel: aptitude failed (100)


Reply Share

Rubens Mariuzzo

Warit 3 months ago

Same for me... and I don't know why.


Reply Share

lol

a year ago

crash all system FACK YOU


12
FUCK

Reply Share

a year ago

FUCK U
WHY U DIDN'T MENTION THAT CAN CRASH THE SYSTEM.
9
Valerio

Reply Share

2 years ago

I fix the installation doing this in terminal


# sudo ln -s /usr/share/phpmyadmin /var/www/phpmyadmin
After, I can access the phpadmin normally by [url=http://127.0.0.1/phpmyadmin]here[/url]
9

Reply Share

Riju

Valerio 10 months ago

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Riju

Valerio 10 months ago

thnx man...this tip really helped...


:)
Reply Share

Rangpuriya

Valerio a year ago

Thanks a lot. My problem was solved by your tips!


Reply Share

Randy

Valerio a year ago

Exactly what I needed, this should be in the tutorial. Thanks1


Reply Share

Alex de Lanne

Valerio a year ago

Good one, that did the trick for me! I think you create a hard link with this to your user folder where it
automatically is installed in.
Reply Share

Jesus Christ on the Cross

a year ago

Waiting on this horseshit method to finish uninstalling 90% of my software, and THEN install a lampstack. Bullshit.
8

Reply Share

Upset Ubuntu User

2 years ago

This almost wiped by whole Desktop clean! The author really should have warned against the possible implications
of using this approach to install software on Ubuntu... proceed with CAUTION!
12

Reply Share

Mike Monaco

a year ago

I think the people who are saying that this tutorial messed up their whole desktops didn't de-select "ubuntu desktop"
from the list of packages. could that be?
4

Reply Share

Mike Monaco 11 months ago


Are you a developer? Try out the HTML to PDF API
open in browser PRObrandon
version miller

pdfcrowd.com

brandon miller

Mike Monaco 11 months ago

from what I understand, if it's listed and you uncheck the box...it will be removed...what a pain in the ass.
i gotta get an engineer involved to bail me out. grrrrrrrrrrrrrrrrreat
Reply Share

Michael T

brandon miller 8 months ago

You shouldn't be so stupid, in the first time.


2
n1ck0las

Reply Share

9 months ago

Common sense kept me from unchecking anything already checked. This is common to come across on Linux, and
it would be worth pausing to think about before cursing the author.
I should also add that it's a right of passage to completely f**k up a Linux install at least once.
3

Reply Share

hans schneidhofer

2 years ago

hi, I am a bloody newcomer with lamp and have trouble;


have done all your directions, created a php.info but all what I get is : How should firefox with this file procedure ? ...
save as file ... or open with ...
looking with ls -al in /var/www show me the following :
user hans group hans -rwxr-xr-x info.php but have tried also 644 with the same result. hmm, what's going wrong or
which bugs have I done here ? :-)
t hanks in advane
hans
3

Reply Share

Typo

hans schneidhofer a year ago

I think your problem may be that you create "php.info", instead of "info.php". Read instructions carefully.
3

Reply Share

Marcel

hans schneidhofer a year ago

Restart your apache server.


open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Reply Share

Alexander Meesters

hans schneidhofer 2 years ago

looks like your apache doesn't recognize your php... are you sure you have installed it with the tasksel
method? or dit you alter the default apache config?
Reply Share

Namaste31

2 years ago

I don't thank you for this article, it completely screwed up my installation afterwards !!! Now I have to reinstall ubuntu
12.04 completely !!!
I should have followed Ubuntu's website instructions, saying that tasksel is not the preferred method (what an
euphemism...).
Tasksel install is a "forced" install, that doesn't take into account any dependancies and you can get into serious
trouble because of that, I know about that.
At least I know now : I will never ever again use tasksel !
5

Reply Share

ahhhhhhhhhhh

a year ago

AHHHH!!!!!! I am so very upset right now. My Ubuntu 12.04 system has been completely hosed by taking the advice
of this tutorial to use Taskel. And now after seeing the comments I realize that I'm just one of many who have had
their systems completely hosed by thinking that this article was doing us a favor.
The joke's on us! Congratulations!
2
viralgm

Reply Share

a year ago

There are also avaliable of xampp linux version. just download it and use one command (which is also avaliable on
their site).That's it. it is install it in opt folder.
http://www.apachefriends.org/e...
I think
it isversion
easiest Are
way
2ainstall
lamp
you
developer?
Tryin
outlinux
the HTML to PDF API
open in browser
PRO

pdfcrowd.com

I think it is easiest way 2 install lamp in linux


2

Reply Share

Arun

viralgm a year ago

I agree, I have been using XAMPP on windows for a while. With linux, i feel the biggest advantage is being
standalone [not setup style approach] and XAMPP does it just right !
1
Exadra37

Reply Share

2 years ago

I am using Ubuntu 12.04 64 bits.


When this tutorial says to make info.php file i get stucked, because with vi editor it was not possible to write to the
file, but with gedit it was possible, but we must have root privileges to save the file.
In order to make info.php file you must login as root:
1. type in your terminal: sudo su
2. now press enter
3. insert your password
Note: as you type the you wont see anything, but don worry the letters are there ;)
4. press enter
5. now type in your terminal: $sudo gedit /var/www/info.php
6. Copy and paste this code as you seen before in this article:
7. Save your file
8. Close gedit editor
Now you can continue this tutorial ;)
2

Reply Share

a year
agoHTML to PDF API
a developer? Try
out the
open in browser PROthomasbandit
version Are youExadra37

pdfcrowd.com

thomasbandit

Exadra37 a year ago

thanks couldnt get it working until saw this :D


Reply Share

Ardy

5 months ago

i follow this tutorial completely after fresh reformat my ubuntu server and worked now.
but, when i want to ssh my vps using putty, it say ssh: connect to host 192.184.88.81 port 22: Connection refused.
what happen? by the way, i select to install LAMP server and openssh server to be install. now what to do?
1

Reply Share

Jack Sparrow

a year ago

After this operation crash my entire system then i need to re install whole ubuntu 12.10.. I think it dont work. so
please perform this process by your own risk..
1

Reply Share

regex

a year ago

what's wrong with tasksel? it removes ubuntu (12.10) packages o,o


any idea?...
1
bukz

Reply Share

a year ago

Damn.. it ruined my desktop.. sux..


1

Reply Share

Obregonzalez

a year ago

ERROR:
<php? ();="" ?="" phpinfo="">Forma correcta:
</php?>
1

Reply Share

Obregonzalez

Obregonzalez a year ago

Noyou
pude
colocarTry
bien
el comentario,
pero en la forma de cdigo hay un error.
a developer?
out the
HTML to PDF API
open in browser PROPerdonen:
version Are

pdfcrowd.com

Perdonen: No pude colocar bien el comentario, pero en la forma de cdigo hay un error.
Reply Share

Anonymous

3 years ago

do not notify
1

Reply Share

W Pallazzo

2 years ago

People should NEVER uncheck anything in Tasksel wich is already checked by default. If you for example uncheck
Ubuntu, your complete Ubuntu OS will be removed!!!
1

Reply Share

mrakhlak

a year ago

vim sucks , use gedit to edit files guys


1

Reply Share

iC0nvict!

mrakhlak 10 months ago

He doesn't even uses vim. He says "vi" not "vim"


Oh my gosh..
Regards, convict!
2
Chris

Reply Share

a month ago

Biggest bullshit ever! This deinstalls everything. Everything.


Reply Share

rme

a month ago

Worked fine, thanks!


Did not 'uncheck' any any Tasksel packages (i.e. Desktop).
Note: If Vi (Vim) locks (crashes) must delete resulting swap file (e.g., .info.php.swp) in /var/www/ dir which is root
permissions. Use "sudo chmod 777 /var/www/ -c" and then "sudo find -name '.*.swp' | xargs rm -f" then redo
open in browser PRO version Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

permissions. Use "sudo chmod 777 /var/www/ -c" and then "sudo find -name '.*.swp' | xargs rm -f" then redo
info.php with Vim. Change permisions back with "sudo chmod 755 /var/www/ -c"
Reply Share

bywongdude

2 months ago

nice....but no warning to NOT uncheck just wastes time and effort. FAIL.
Reply Share

looper89

3 months ago

What ever you do don't deselect anything, bad, bad, bad things happen. I just watched it slowly remove everything
that was installed. :-(
Reply Share

Dima

3 months ago

I really hate you! You fucked up all my Ubuntu installation! Now I need to reinstall it again!
Reply Share

Atul Makwana

4 months ago

easy!
Reply Share

nigel

4 months ago

Good stuff
Reply Share

Load more comments

Subscribe

Add Disqus to your site

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

Archives
Select Month

Tags

YouTube

android apache browser Centos chrome command

Debian eyecandy Fedora firefox


games gaming gnome google karmic
line

koala

kde libreoffice

Linux linux distribution

LinuxMint lucid lynx maverick meerkat mysql


news

oneiric ocelot openoffice

opensource

opensuse oracle ppa Precise Pangolin release


RHEL

open in browser PRO version

security server software themes

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

RHEL

security server software themes

ubuntu unix upgrade virtualbox vlc

tools
windows wine

About Us

Advertising

Sitemap

Download YouTube Video | YouTube


Converter

Privacy

Contact Us

Copyright 2008-2013 Unixmen.com .


Maintained by Unixmen .

open in browser PRO version

Are you a developer? Try out the HTML to PDF API

pdfcrowd.com

You might also like