How do I install drupal on my hosting account

Drupal installs easily on phpwebhosting.com servers. ssh to your server and type the following:

1. Download drupal

wget http://ftp.osuosl.org/pub/drupal/files/projects/drupal-4.7.2.tar.gz

(get the latest download address from the drupal website)

2. unpack it and cd to the drupal directory

tar xzpvf drupal-4.7.2.tar.gz

3. make drupal your default web dir

mv www www_old
mv drupal-4.7.2 www

(you can also keep your existing www directory and move drupal to a subdir of www)

4. Edit the config file

emacs sites/default/settings.php

search for :

$db_url = ‘mysql://your_username_here:your_password_here@localhost/your_database_name’;

(line 87 in the current settings.php – might change in the future)

Be sure to replace :

your_username_here
your_password_here
your_database_name

with your actual username, password and database. When you signup a database with your username is created automatically. You can use that one or create a new one.

5. Create the database

mysql -u your_username -p your_database_name < database/database.4.1.mysql 6. Load your site Go to your site and create a user. The first user created will become the admin user with all rights. 7. Your are done - enjoy!

Leave a Reply

Your email address will not be published. Required fields are marked *