i recently install ubuntu 9.04...can someone help me regarding installation of drupal at ubuntu 9.04.....i dont know where to start...
i had downloaded xampp and extracted to /opt....but its too complex.....


duvien’s picture

Here's a good guide: http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapach...

(same will apply for Ubuntu v9.04 Jaunty)

I build engaging websites and intuitive designs that will benefit your business

murtza’s picture

Thank you so much bro...

The1design.cn’s picture

Than is useful article.

doka’s picture

In the last year the Drupal package was not in Debian/Ubuntu, now it is back. So after a fresh install of Jaunty, just type:

sudo apt-get install drupal6

and then you have to restart the webserver:

sudo /etc/init.d/apache2 restart

And you will see the Drupal install pages here:



doka’s picture

in the present drupal6 package of Ubuntu 9.04 Jaunty (https://launchpad.net/ubuntu/+source/drupal6/6.10-1), the clean URL feature does not work out of the box. With this two small corrections it can be enabled.

Enable the mod_rewrite module, and restart Apache:

a2enmod rewrite
/etc/init.d/apache2 restart

Set the correct base URL in .htaccess

sed -i 's/# RewriteBase \/drupal/ RewriteBase \/drupal6/' /etc/drupal/6/htaccess


lavanyashastri’s picture

Under /etc/drupal/6/htaccess

I uncommented and modified line 101 to this:
RewriteBase /drupal6

To get clean urls working (after I had enabled mod-rewrite)

(I am using Jaunty and Drupal6)

B3N’s picture

After doing all things said by above, I was still getting a "404 page not found" when i went to http://localhost/drupal6/install.php
So i tried this:

sudo cp /etc/drupal/6/apache.conf /etc/apache2/mods-enabled/drupal.conf
sudo /etc/init.d/apache2 restart

and VOILA!! it totally worked.

Source: https://help.ubuntu.com/community/Drupal

fmilland’s picture

Hi Doka:

I did that and clean URLs worked well, but i've moved Drupal files to /var/www/ and now i can't enable clean URL's how can i set them up?



doka’s picture

In /etc/drupal/6/htaccess file modify
RewriteBase /drupal6
to read like this:
RewriteBase /


virtualirfan’s picture

So, as part of the config step after I do apt-get install drupal6, I get a dialog that complains that the db isn't setup, offers to use dbconfig-common to setup mysql. However, it fails since no db has been setup. I abort the operation.

So, then I ran apt-get install mysql-common after which the drupal6 config dialog came up again. This time, I still pick using dbconfig-common and pick mysql again. However, I get an error message saying that "ERROR 2002 (HY00): Can't connect to local MySQL through socket '/var/run/mysqld/mysqld.sock' (2)"

I think I'm missing something fundamental. Pardon the newbie question.


virtualirfan’s picture

Nevermind ... I didn't have the mysql-server package installed and configured.

For anyone else having this newbie issue, first run:

$ apt-get install mysql-server

Followed by:

$ apt-get install drupal6

Now on to actually setting up my drupal site :)


trekkiebassman’s picture

Let me preface this by saying I am a complete noob at both Ubuntu and Drupal. Once you install this and get it properly configured, how do you update to the latest version of Drupal? In the update.txt file it says to copy the files to the installation directory, but where is that when the package installs it for you?

Thank you so much for any help.

schalter’s picture

I would also be interested in the upgrade policy of ubuntu regarding drupal6. Are the minor upgrades done via the package-management or do i have to apply them manually?

doka’s picture

I guess it's also an open question over there (I mean at the Drupal maintainers at Debian), see i.e. these open bugs:
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521288
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=526970

Drupal bugs at Ubuntu are here: https://bugs.launchpad.net/ubuntu/+source/drupal6 but the Debian community seems to me more active.

Any contribution is appreciated.


sheshkovsky’s picture

i've installed drupal 6 through terminal. now how can i import a DB? i mean i couldnt find php my admin url. http://localhost/phpmyadmin makes 404 error. where's the problem? should i have install phpmyadmin in seperate way?

trekkiebassman’s picture

I did a search for install.php and found it here, in case anyone else is wondering:

ijf8090’s picture

Have installed Apache, MySQL and PHP on Jaunty. Am stuck and very frustrated, 'cos I think it's something very simple?

I found the install file and tried accessing it by entering this URL file://localhost/usr/share/drupal6/install.php...

get a whole bunch of text starting w.

"st('Your web server does not appear to support any common database types. Check with your hosting provider to see if they offer any databases that Drupal supports.', array('@drupal-databases' => 'http://drupal.org/node/270#database')), ); } else { $form['basic_options'] = array( '#type' => 'fieldset', '#title' => st('Basic options'), '#description' => '"
Works when I enter http://localhost/drupal6/install.php

PHP is running 'cos http://localhost/test.php displays
System Linux ijf8090-laptop 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:57:59 UTC 2009 i686
Build Date Apr 23 2009 14:11:52
Server API Apache 2.0 Handler
Virtual Directory Support disabled
Configuration File (php.ini) Path /etc/php5/apache2
Loaded Configuration File /etc/php5/apache2/php.ini
Scan this dir for additional .ini files /etc/php5/apache2/conf.d
additional .ini files parsed /etc/php5/apache2/conf.d/gd.ini, /etc/php5/apache2/conf.d/mcrypt.ini, /etc/php5/apache2/conf.d/mysql.ini, /etc/php5/apache2/conf.d/mysqli.ini, /etc/php5/apache2/conf.d/pdo.ini, /etc/php5/apache2/conf.d/pdo_mysql.ini
PHP API 20041225
PHP Extension 20060613
Zend Extension 220060519
Debug Build no
Thread Safety disabled
Zend Memory Manager enabled
IPv6 Support enabled
Registered PHP Streams zip, php, file, data, http, ftp, compress.bzip2, compress.zlib, https, ftps
Registered Stream Socket Transports tcp, udp, unix, udg, ssl, sslv3, sslv2, tls
Registered Stream Filters string.rot13, string.toupper, string.tolower, string.strip_tags, convert.*, consumed, convert.iconv.*, bzip2.*, zlib.*

jwuk’s picture

When you typed file:///... you were fetching the file directly, not going through the Apache web server. That's why you had to use http://...

Glad you got it working.

ChromeToaster’s picture

OK installing Drupal in Ubuntu 9.04 is a breeze, right up until the upgrade process. I hate to be the pessimist here but why does the upgrade process have to be so difficult? Why not just have it built into Drupal so all one needs do is download the latest version, point to it, click upgrade and those files needing backed up don't ever get overwritten.

That's the end of my rant though.

I'm cranky because I'm stuck. It seems I have Drupal in multiple locations. It's a local install on Ubuntu 9.04. Shows up in both:

I have no idea how to backup the MySQL database because the only folders I see are:
includes misc modules profiles scripts sites themes

I literally just set this up so everything is in the default settings. I know I could just overwrite everything and do it again but I'd really like to do it right. I just need to know which files to backup. The ones in /etc/... or those in /usr/share/...? I also need to know where the MySQL database is stored so I can back it up as well.

Really appreciate the feedback!!!

doka’s picture

if you want to just back up the Drupal data from MySQL (also not the Drupal source from /etc/... and /usr/share, and I guess there is something in /var/... as well), then you should use one MySQL management tool (PhPMyAdmin, or ...) or database backup scripts.



Yoha’s picture

I'm completely new at Ubuntu and Drupal

It seems impossible for me to install Drupal 6 on Ubuntu 9.04. I've been at it a full day and reinstalled Ubuntu for the third time now (after hours of tinkering I feel like I have messed up the installation completely)
Even after a new install, apt-get install mysql-server and then: apt-get install drupal6
I get this error message during drupal installation:
Error 1045 (28000): Access denied for user 'root'@'Localhost' (using password: NO)
After this i can retry, abort etc.
(I left all the passwords in all the installations blank.)

localhost -> it works!
localhost/drupal6/install.php-> Access denied for user 'drupal6'@'localhost' (using password: YES)

/var/www/ contains only the It Works! index.html

I'm completely lost and about to return to XP

Yoha’s picture

I reinstalled mysql client and server through the synaptic and unchecked auto configuration (or it didn't ask, I can't remember) which fixed my mysql problems. Installed drupal 6 the same way but ended up with parser errors etc.
Downloaded Drupal 6.14 copied it in /usr/share/drupal6/ replace all (sudo chown "user" /usr/share/drupal6/*) and localhost/install.php. -> works like a charm.

doka’s picture

Please file a bug report to the Ubuntu maintainers of the drupal6 package: https://launchpad.net/ubuntu/+source/drupal6


Yoha’s picture

I found it quite a scary adventure, but I filed a bug report: https://bugs.launchpad.net/ubuntu/+source/drupal6/+bug/453559.
I couldn't find a way to change it afterwards but I'll hope this will do.

Seems like others have had somewhat the same problems with the drupal6 package:
https://bugs.launchpad.net/ubuntu/+source/drupal6/+bug/355142 :
Why does this thing ask me for a password when installing it when I haven't even inasmuch as set up a MySQL root password to begin with? This is NONSENSE!!!!!

For me the above mentioned steps worked perfectly and I hope this helps out.

P.S. I am extremely happy I can keep using Ubuntu for everything i need to do on my pc

davyvdb’s picture

I have written a guide on how to install Drupal on Ubuntu Server. This has been written for Ubuntu 8.04 but should work in 9.04 and further on. I've added some tips to enhance performance too.

DrupalJet’s picture

There is no Ubuntu repository for updates with Drupal so when you need to upgrade use http://drupal.org/node/439204#comment-2158272 on this discussion. I have tried XAMPP and Synaptic myself. You know when there is problems when newbies have to reinstall Ubuntu over and over again to get Drupal to work. It is not just Drupal it is MySQL to work with it. The solution is that Drupal house a repository for Ubuntu users. Good example is Ubuntuzilla http://sourceforge.net/apps/mediawiki/ubuntuzilla/index.php?title=Main_Page this could even host module updates. Making life simple so more people can discover Drupal. Please do pass this along in hopes to see Drubuntu Repository.

lameei’s picture

I have installed the apache/mysql with using this movie. i'm pretty sure that the web server is working cause i can see the default index page. Now i want to copy a ready drupal project from wamp to ubuntu. i did it the same way of uploading projects from localhost to web server. now when i try to open the projects by going to http://localhost/ProjectName instead of seeing the actual project page i see the drupal installation page. and by clicking on installation link i get an error message which shows that drupal can not find the settings.php file.
Am i missing something?

aloyr’s picture

couple of questions...

1) how exactly did you upload drupal from wamp to ubuntu?
2) did you migrate the database?

also, ubuntu lucid (10.04) has php 5.3, which is not compatible with drupal 6. it kind of works, but you get a bunch of php warnings. we ended up migrating our dev environments back to hardy.

perl -e 'print unpack(u,";8F4@=&AE(&-H86YG92P@=7-E(&1R=7!A;\"\$*");'

waterhorse’s picture

On my Debian sid install install.php is at /usr/share not in /var/www. What is the appropriate way to finish the install from there?

TIA for any help,


zaurav’s picture

Hey waterhorse,

I ran into the same problem as the db-config (blue screen) instructions told me to goto localhost/drupal6/install.php to start installation, but obviously it didn't because nothing was in /var/www except that index.php file.

so i symlinked it.

cd /var/www
ln -s /usr/share/drupal6

worked like a charm :) Dunno if this is the "right" way tho :)