Installing Drupal 4.3 on Mitel e-smith

I've labeled this as being for Drupal 4.3, since it's currently the latest version. Check the releases page to see if there is a newer version.

So what is Drupal anyway? Well, the Drupal about page probably describes it best, but I'll just say that it is a very flexible content management system that can be used to easily build and maintain a variety of different types of websites. One very interesting feature is the fact that it allows every registered member to write their own blog, so it's a great way to offer many people the chance to have their own blog without the bother of having to set it up themselves.

You'll need to issue all of the following code at the commandline. The steps really aren't very complicated, and as long as you enter the commands exactly as below, you'll do fine. Once you have a connection open to your server, change to the directory of the ibay where you want to install Drupal. To do this, you can enter cd /home/e-smith/files/ibays/(name-of-ibay).

  1. wget http://drupal.org/drupal/4.3.0/drupal/drupal-4.3.0.tar.gz

    This downloads the Drupal install package.

  2. tar xvfz drupal-4.3.0.tar.gz

    This uncompresses the package.

  3. mv drupal/* html/

    This moves all the required files into the html directory. If you want to move it into a sub-directory (of Primary, for example), you can just enter mv drupal/ html/(name-of-subdirectory). You can also skip the next step, because you've just moved the entire drupal directory.

  4. mv drupal/.htaccess html/.htaccess

    The * syntax for selecting files skips ones that start with a .. Without moving this file, Drupal will not work.

  5. cd html/

    If you moved Drupal to a sub-directory, this would have to be cd html/(name-of-subdirectory)

  6. mysqladmin create drupal

    This creates an empty database for use by Drupal. You can also replace drupal with whatever name you would like to use for the database.

  7. mysql drupal < database/database.mysql

    This initializes the database with the starting Drupal tables and information. If you used a different name for the database, you'll have to use that instead of drupal.

  8. pico includes/conf.php

    This launches the pico text editor. Use the arrow keys to navigate down to the $db_url line that begins with mysql.

    Replace the example settings as follows:

    • user replaced with root
    • Delete password and the colon in front of it
    • hostname needs to be localhost
    • database replaced with the name of the database, which would be drupal or whatever name you created above.

    Now use the arrow keys to scroll down to the $base_url line. This is where you need to enter your domain name and ibay or directory where you have Drupal installed. So, if you installed it in the root directory of your Primary, then it would be http://www.example.com. If you installed it in a sub-directory of Primary or an ibay named "drupal", the url would be http://www.example.com. If this is being installed in an ibay that is the source for a virtual domain, then this url would be http://www.name-of-virtual-domain.com. Note: as mentioned in the file, leave off the trailing slash.

    To save the changes made to this file, hit Control-X.

  9. That's it. Drupal is installed. Open a browser to the url where you installed it and click on the link that says "Create an account". The first account created automatically becomes the admin for the site. Now it's time to start configuring Drupal.

Comments

conf.php

I downloaded the latest version 4.6 and it doesn't seem to have a conf.php file anywhere.  Any ideas?

Check the Installing Drupal p

Check the Installing Drupal page on Drupal.org -- 4.6 doesn't use a conf.php file, it uses a settings.php, one per domain.

can't upload files :(

Hi Ben

1. among prerequisites about successful intallation of Drupla on e-smith .htaccess should be enabled in e-smith by using contrib http://contribs.org/contribs/nightspirit/e-smith-htaccess/ . Or this is not necessary for Drupal?

2. I have problems about uploading attachments into Drupal/Esmith

warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/arka7/html/includes/file.inc on line 256

what could cause that ? As far as I see there should be no problem about using 6.0.1.

thank you for the howto and have a nice day !

/sarunas

installing drupal on 6.01

greetings all. really good how to. I would really like to get this working. however, after following the how to, I get Access denied for user: 'root@localhost' (Using password: NO)

Perhaps I am doing something wrong. wonder if adding a user with access rights to the drupal database would be a useful excercise. will play a l ittle more but if anyone has any ideas...

I used "root" with no passwor

I used "root" with no password because that (was) the default setup. If you know how to add a MySQL user, just use that username with the appropriate password and you should be set.

Drupal on 6.01

Thanks for the how-to! Here's a little additional information for people who need to set up a separate mysql account for the drupal admin.

On my 6.01 e-smith, I did the following.

cd into the html folder of the ibay where you unpacked drupal. Then use the mysql tools to create the database and populate it:

# mysqladmin create drupal
# mysql drupal < database/database.mysql
# mysql -u root

Now, you are in mysql. Try this:

use mysql;
grant all on drupal.* to 'drupal'@'localhost' identified by 'PASSWORD' with grant option;
flush privileges;
\q

Change the word PASSWORD to an appropriate password. This should set up the drupal user properly. Now you need to fix the lines in conf.php:



# cd ./includes
# vi conf.php
change the db_url line to look like this:

$db_url = "mysql://drupal:PASSWORD@localhost/drupal";
(should be one line)

change the $base_url variable to point to your server and ibay:

$base_url="http://yourserver.com/ibayname";

This worked for me! Thanks for the pointers.

Ben Chapman

Great followup

Thanks for documenting this, Ben. And of course, for anyone else looking at this, make sure you get the latest version of Drupal (4.5.2 as of this post).

Finished new install of drupal 4.6.6 BUT!!!!!!

Hi

Have just installed Drupal 4.6.6 on SME 6.01 all went well up until I went to display home page. I have the browser telling me it is "done" but nothing is displayed. I followed the install file in the tar file as written, BUT, no cigar!!

Would anyone have a clue where or what I should do next to fix issue?

Ferg