Home

Lullabot

Lullabot Ideas

We know stuff. We empower you to know stuff too.

Drupal Theming Deep Dive Week
Portland, OR
August 2nd - 6th, 2010

Install a Local Web Server on Ubuntu

Video by Addison BerryNovember 14, 2007 - 12:42am

This video will show you how to set up a local web server on the Ubuntu desktop version. It walks through most of the process using a GUI and uses just a little bit of command line to set some things up. I did it this way to make it the most accessible to even new users of Ubuntu. It walks you through installing the needed packages, setting it up for clean URLs and getting Drupal started.

Comments

Rob Loach (not verified) on November 14, 2007 - 2:20am

The List

Hey Addison, nicely done.... Here's a list of packages you installed for quick future reference:

  • Apache2
  • MySQL Client
  • MySQL Server
  • PHP 5
  • PHP 5 - GD
  • PHP 5 - MySQL
  • PHPMyAdmin (in universe repository)

I also like to install CURL as there are some contributed modules out there that use it. A local mail server sometimes helps too. Great quick tutorial, keep it up!

Anonymous (not verified) on March 31, 2008 - 2:31pm

can find my downloads

I down loaded php and mysql and apache.
Only apache downloaded can find the others php and mysql help

alaminos (not verified) on September 9, 2008 - 9:01am

nice one and great stuff

thanks for sharing i love this

Roel De Meester (not verified) on November 14, 2007 - 7:37am

Tasksel

I prefer using the 'tasksel' program which installs a prepackaged list of application
the commands would be

> sudo tasksel install lamp-server
> sudo apt-get install phpmyadmin

easy as hell..but that indeed only works if all the necessary 'universe' repositories have been setup like you have explained.

As for the post-installation instructions. They come in very handy because they apply to any method used to set up the lamp-server and plan to build drupal sites.

* edit v00-default -> Allow Overide ALL
* enable rewrite module
* chown www folder

theborg (not verified) on November 14, 2007 - 8:24am

Thanks

If a picture is worth a thousand words videos like this are invaluable to the visual learner.

Thanks, good work!!

Grugnog (not verified) on November 15, 2007 - 1:52am

Another HOWTO

There is a (more copy and paste command-line oriented) HOWTO on the Drubuntu group on groups.drupal.org - see the development server page, or the HOWTO outline - which links to some of the other things commonly set up at this stage.

That said, it is well worth knowing how to use Synaptic, since it is an invaluable tool for general package work anyway, so this is a great resource (and I'll add a link from the Drubuntu wiki!).

Tony (not verified) on November 15, 2007 - 9:30am

Excellent video - many thanks

This is a great video. Thank you very much for your efforts in producing these. Yes, a picture is worth a thousand words, but a video is worth even more.

Keep up the great work!

Rowan (not verified) on November 19, 2007 - 6:28am

Packages

In Ubuntu 7.10, before I could add Apache2 I had to turn on 'Canonical-supported Open Source software' myself, as it wasn't enabled by default.

Also, on 7.10 you probably won't see phpmyadmin in /var/www/, however it's actually still there, see http://ubuntuforums.org/showthread.php?t=591952.

Great screencast by the way. :)

Jim (not verified) on November 20, 2007 - 11:05am

Curiosity

What screen capture app was used for Ubuntu to get this MP4 file? Or was this via VNC or a virtualized system that was recorded with a screen recorder in OSX or Windows?

November 20, 2007 - 11:23am Addison Berry

I cheated

I used Parallels on my Mac to run it and iShowU (Mac-only) screencap software to record.

Vorbian (not verified) on November 23, 2007 - 11:11pm

Thanks Addison

Great job on this video cast (and all your others)! It was a huge help.

raffi (not verified) on November 24, 2007 - 12:20am

Excellent

I used this tutorial to set up drupal on a vm using parallels and it worked perfectly. nicely done.

Jza (not verified) on November 29, 2007 - 3:28am

Screencast on linux

get gtk-rekordmydesktop and cinelerra or gmencoder.

Kiernan (not verified) on November 29, 2007 - 7:31pm

Thanks a bunch, I was mystified by that, but now I know, Thanks.

Thanks a bunch Addi!! You're my hero!!

BTW, if you like music videos, I have a site setup utilizing HTML 3,
and the worst HTML coding you probably have ever seen, but
it requires no login or password and anyone can contribute videos with a
few bookmarklets: http://www.chann3lz.com/

Also I found out that spacemonger will run under wine, so if you need to organize space on your server, you can use that..

Andrew Winner (not verified) on October 20, 2008 - 9:43pm

...

Kiernan: Thanks, didn't know spacemonger ran under wine. http://www.rapidsixpack.com

Thanks Addi! Just a thought for a future tutorial->optimizing your web server setup for optimum drupal perfomance.

PeyJ (not verified) on December 7, 2007 - 3:36am

sudo apt-get install drupal5

There is one way more easy :

sudo apt-get install drupal5

~$ sudo apt-get install drupal5
[sudo] password for ******* :
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances      
Lecture des informations d'état... Fait
Les paquets supplémentaires suivants seront installés :
  apache2-mpm-itk apache2-utils apache2.2-common dbconfig-common
  libapache2-mod-php5 libdbd-mysql-perl libdbi-perl libnet-daemon-perl
  libplrpc-perl libt1-5 mysql-client mysql-client-5.0 php5 php5-common php5-gd
  php5-mysql postfix wwwconfig-common
Paquets suggérés :
  apache2-doc php-pear dbishell libcompress-zlib-perl mysql-doc-5.0 procmail
  postfix-mysql postfix-pgsql postfix-ldap postfix-pcre sasl2-bin resolvconf
  postfix-cdb postgresql-client apache apache-ssl
Paquets recommandés :
  mysql-server postgresql-8.2
Les NOUVEAUX paquets suivants seront installés :
  apache2-mpm-itk apache2-utils apache2.2-common dbconfig-common drupal5
  libapache2-mod-php5 libdbd-mysql-perl libdbi-perl libnet-daemon-perl
  libplrpc-perl libt1-5 mysql-client mysql-client-5.0 php5 php5-common php5-gd
  php5-mysql postfix wwwconfig-common
0 mis à jour, 19 nouvellement installés, 0 à enlever et 0 non mis à jour.
Il est nécessaire de prendre 15,4Mo dans les archives.
Après dépaquetage, 40,5Mo d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer [O/n] ?

You just have to install phpMyAdmin & imagemagick packet and your new Ubuntu Gutsy Lamp server is ready to work...

Phillip Ingle (not verified) on December 26, 2007 - 7:30am

Quicktime

Hi
I watched this last time on my pc, now I am trying to watch it again from my ubuntu machine and cant get the video to play, any tips?

Brandon (not verified) on February 6, 2008 - 7:47pm

VLC.

VLC.

mahalie (not verified) on January 5, 2008 - 7:58pm

multiple drupal dev installs

I plan on breaking things quite a lot... Anyone have any opinions/preferences regarding multiple drupal installs via sub directories vs. the subdomain method Grugnog mentions here? (requires 'Drubuntu' group subscription for access)

mahalie (not verified) on January 5, 2008 - 8:11pm

another multi-site method

This HowToForge Multisite CVS Drupal Installation looks interesting as well.

webdesign (not verified) on January 8, 2008 - 4:35pm

Thanks a lot

Really good work. Thx!

Evilbuntu (not verified) on January 14, 2008 - 10:15pm

now where

once this installation is done how can i create a webpage and host it from my server?

i am new to the whole ubuntu thing

thanks a bunch

is there another tutorial?

evilbuntu (not verified) on January 14, 2008 - 10:17pm

also

i am running server not desktop does this change anything?

i have already run this whole tutorial and everything seems as it should

gizelle (not verified) on January 18, 2008 - 10:24am

misconfiguration error

i am unable to open any php pages i.e. when i click on phpmyadmin folder i get a misconfiguration error. i have followed the instructions step by step. (as well as i could anyway because i do not hear any sound on the video - although my sound is working fine otherwise... just followed what was happening on terminal).

localhost is working fine, html pages are working as they should.

im a complete ubuntu/linux newbie. please help!

ps: THANKS A MILLION for this video, ur a star!

screen (not verified) on January 22, 2008 - 9:53am

PHP5 package can't be authenticated and could be malicious!

Great tutorial on using the GUI, indeed!

However, when I chose php5 from the search results in the package manager, I got a strange and scary message:

"You are about to install software that can't be authenticated! Doing this could allow a malicious individual to damage or take control of your system. The chosen action also affects other required packages."

I tried googling for this message but could not get any concrete advice. What do I do and how should I proceed? Should I install A-M-P using the command line? I would rather prefer the GUI.

Has anyone gotten this message on Ubuntu 7.1?

Aamir Adnan (not verified) on January 23, 2008 - 5:58am

how would i make mail server on ubuntu???

i have project on installing apache web server on ubuntu and also mail server, i am getting difficulty in preaparing it please help me!
please give step by step solution i am new to ubuntu

baho (not verified) on February 5, 2008 - 3:26am

Internet routing

I'm using my ubuntu box as an internet router for 2 other pc's. I want to use it as a web and mail server too. After i followed the tutorial and restarted the pc once, the internet sharing stoped working. The other 2 pc's can ping the server, can access the webpage but there's no internet sharing :(. Can anyone tell me how to resolve this problem? (I'm new to linux and this stuff, so be gentle on me :) )

sqrlking (not verified) on February 5, 2008 - 6:42pm

phpmyadmin didn't end up in the right folder

and i can't get into it through localhost. =\ When i try to move it from the etc folder to the apache folder, it tells me i don't have permission.

obviously, I'm new. :) can anyone help?

Anonymous (not verified) on March 8, 2008 - 5:52pm

downloading problem

thank you for the great video!

but for some strange reason i can't download the file, only stream it in ubuntu(firefox+totem).
this drives me _absolutely nuts_ !
the download link gives me only a "waiting for www.lullabot.com"....

maybe something is not working on your side (modules/settings??)?

keep making more of those please :D

robotjox (not verified) on March 16, 2008 - 3:14pm

fire up a terminal, and

fire up a terminal, and type:

wget http://www.lullabot.com/files/ubuntuLocalhost.mp4

Mwahahaha (not verified) on March 26, 2008 - 9:35am

Excellent

Thanks for a great tutorial! been getting stuck on this for a while and now everything's up and running!

drache19 (not verified) on April 9, 2008 - 2:15am

great post

this is an excellent video I appresiate your help

hoodia gordonii plus (not verified) on April 15, 2008 - 1:57pm

thanks for guideline

thank you fir helping to install local webserver

Rob Loach (not verified) on April 15, 2008 - 6:22pm

Hardy Heron

This method works fine in Ubuntu Hardy Heron.

shally (not verified) on April 30, 2008 - 8:40pm

Problem: different setting for latest UBUNTU (hardy)

Hi..Thanks to the video, anyway different thing goes to ubuntu 8.04. the problem is the permission..is there anyway i can change the permission of the directory?
i've change the www ownership but when i install drupal and installation goes smooth, the files directory is not found and i make one. but after that, i refresh and it says the files directory is not writable. i installed drupal 5.7. Drupal 6.2 also dont work (this the first one i install)
help me out ok..thanks..

Josh (not verified) on May 4, 2008 - 5:14am

Apache 1.3 ??

Hi, I love his screencast, but how can I go about installing an Apache 1.3 Package on Ubuntu 8? I am very new to Linux and could use a little help. Thanks.

Ron Yam (not verified) on May 5, 2008 - 12:50pm

Great Video Cast for folks from Microsoft camp

HI Addison,
Great job, I think your video cast will give me adequate information to transition a web site from IIS to Apache. I am fairly new to LAMP, so far I have been impressed by Ubuntu. I still struggle with the various LAMP terminology, file organization, where and what issues.
I wish there are more targeted and well defined type of video casts like yours out there.
Again thanks.

Anonymous (not verified) on May 6, 2008 - 6:44am

thank u

I really want to thank u :)

Anonymous (not verified) on May 13, 2008 - 10:22pm

streaming server

can this web server use as a streaming server?

sw (not verified) on May 26, 2008 - 3:45pm

it works

it works for me thanks and make more of these will help newbies like us :P

Bulent Ozturk (not verified) on May 27, 2008 - 3:25am

Nice Work,

Thank you for this nice video.

Patrick (not verified) on June 1, 2008 - 7:37pm

Thanks

Thanks for taking the time to put this together, this is exactly what I needed spoon fed to me in a 12 minute tutorial! You have a nice voice too.

Vbest (not verified) on July 8, 2008 - 5:37am

thanks

thanks

Richard (not verified) on July 22, 2008 - 6:27pm

Thank You

Many thanks for the video, it's very useful!

unik (not verified) on August 13, 2008 - 3:58pm

folders missing from www

that's right.
in my /var/www folder, there is only that index.html file
but phpmyadmin folder and the apache one are missing
can anyone help me with this
I've ubuntu 8.04 installed and I'm an absolutely noob

Anonymous (not verified) on August 16, 2008 - 12:57pm

way helpful

this is way helpful. thank you! you have eliminated the entry barrier!
pb

Anonymous (not verified) on August 30, 2008 - 2:33pm

Missing folders

Great tutorial, but after completing all the installations from package manager i go into the folder /var/www and the 2 folders that are suppose to be there as per the video are not, and all i have is an index.html file that says 'It works' when loaded.

Where have i gone wrong, where are the folders?

thanks

Me (not verified) on September 9, 2008 - 2:28am

Ubuntu 8

for those with a problem with Ubuntu8.04
" /var/www folder, there is only that index.html file
but phpmyadmin folder and the apache are missing"

Take a look at the thread linked below.
It worked for me.

http://ubuntuforums.org/showthread.php?t=591952

alaminos (not verified) on September 9, 2008 - 8:59am

wow thanks

it works for me thanks and make more of these will help newbies like me.. thanks alot

jugney (not verified) on September 24, 2008 - 11:32am

Database

Thanks for this great tutorial. Now I just need to know which option to select when setting up my database under the Collation option. There are many choices and I don't know which one to pick???

Jugney

  • 1
  • 2
  • next ›
  • last »

Recent

Podcast 87: Panels vs Context, The Cage Match!

Podcast 7.30.2010

Drupal Voices 140: Nathaniel Catchpole on Drupal 7 performance improvements

Podcast 7.29.2010

Drupal Voices 139: Mike Carper on the Boost module

Podcast 7.28.2010

Drupal Voices 138: Khalid Baheyeldin on Performance & Scalability Strategy

Podcast 7.27.2010

Command Line Basics: Intro to Vi/Vim

Video 7.27.2010

Popular

Podcast 87: Panels vs Context, The Cage Match!

Podcast 7.30.2010

Assembling Pages with Drupal

Article 7.17.2010

Drupal Voices 140: Nathaniel Catchpole on Drupal 7 performance improvements

Podcast 7.29.2010

Drupal Voices 139: Mike Carper on the Boost module

Podcast 7.28.2010

Install a Local Web Server on Ubuntu

Video 11.14.2007
 
  • Home
  • Services
  • Events
  • Ideas
  • Store

Connect the Bots:

Twitter Facebook YouTube blip.tv All Posts Newsletter
  • Ideas
  • Blog
  • Podcasts
  • Videos
  • About
  • Contact
  • Jobs
  • Services
    • Training
  • Events
    • Training Workshops
    • Other Events
    • Conferences
    • Calendar
  • Products
    • Videos
    • Books
    • Swag
  • Ideas
    • Blog
    • Podcast
    • Videos
  • About
    • Philosophy
    • Team
    • Presskit
  • Contact
    • General
    • Work Inquiries
    • Mailing List