Build web site

Build an own community web-site. A samurai path. A tutorial on Drupal

Monday, November 21, 2005

How to install Drupal CMS in 3 simple steps

Update: Try posting to the default Drupal site yourself

A step by step guide on Drupal CMS installation to a cheap hosting.

My www.symbianexample.com site is hosted on one of the best cheap hosting services T35.com. Featurewise it's provides every basic feature you can expect from just a "good cheap hosting": Apache, PHP, MySQL, CPanel, SSH and FTP access to your files - this is all Drupal needs to work (SSH is optional, but simplifies the installation).

The Drupal installation consists of three steps:
1. Download files
2. Create and initialize the database
3. Set up the configuration files

1. Download files

First of all we need a place to download to, some directory possibly linked to one of our domain names.
I have a www.symbianexample.com domain name linked to the symbianexample subdirectory of my account root directory.
We need to get Drupal archive from http://drupal.org/files/projects/drupal-4.6.3.tar.gz and unpack it into the target directory. We could just unpack everything to the local PC and transfer files to the web server via FTP. It will work, but faster and simpler is to download files directly t your host.

Here's how I did it.
a) Start Putty SSH client and log in to your account using the address from your hoster. Usually it's just your domain name

b) After login, navigate to the public_html. By the way note the symbianexample directory there. It's empty at the moment

c) Download files from drupal.org
wget http://drupal.org/files/projects/drupal-4.6.3.tar.gz


d) Unpack files to the directory drupal-4.6.3
tar -zxvf drupal-4.6.3.tar.gz


e) Move unpacked files to the target directory
mv drupal-4.6.3/* drupal-4.6.3/.htaccess ./symbianexample

Drupal files are now in the symbianexample directory

2. Create and initialize the database

Drupal stores its content in the database, that can be MySQL - the most frequent option in the hosting packages.

a) Create the database
The easiest way of creating the DB is via CPanel.
Log into it using the hoster's instructions. In T35's case you just open yourdomain.com:2082 in the browser.
E.g. http://www.symbianexample.com:2082

There go to Server -> MySQL Databases and create database sanktrum_symbian, user with the same name sanktrum_symbian and grant the user all the rights on the just created database

sanktrum is my account name and CPanel automatically adds it to the DB name, you will have a different prefix.

b) Load initial content into DB
In the CPanel go to Server -> PhpMyAdmin and select just created sanktrum_symbian from the drop-down box on the left. My DB shows (55) existing tables, because I uploaded the data already. Yours just created DB will show 0.


After selecting the DB, go to the SQL tab and upload the database.mysql file, supplied with the Drupal archive. You can can get it from the database directory of the Drupal installation (just FTP it to the local drive)
Hit Go and voila, DB is up and running

3. Configure the site

The last installation item is the simplest one.
Go to the sites/default directory and edit the configuration.php
You need to edit only two lines that specify the domain and database used. Replace the DB name, user name and password with the ones created on the step 2. And enter your domain name, of course.
$db_url = 'mysql://sanktrum_symbian:YourSuperPassword@localhost/sanktrum_symbian';
$base_url = 'http://www.symbianexample.com';

Create the administrator account

After the installation is completed, log into the just created site and do it fast. The first who creates an account, get's the administrator rights :)


That's it. Your Druapl installation is up and running, ready for the extra configurations via the Web interface. As I told already, the next thing I am going to do is to research the ways of uploading the image to the Drupal article while typing the article just like you can upload the images to Blogger. I am going to give everybody rights to post on the site so, that everybody could try and evaluate the possible solutions.

To be continued, stay tuned

39 Comments:

At 10:59 PM, Anonymous katz said...

Great tutorial.. I'll try this sometime. Still testing Drupal on localhost..

 
At 3:39 AM, Blogger Artem said...

Great to know that somebody finds it useful! :)

I made some improvements on the localhost and will be posting again soon

 
At 12:27 PM, Blogger _yama_ said...

Thank YOU for this tutorial... it's pretty useful for newbies like me, that do not understand nothing (almost) about SQL or whatever...

Thanks again... I'll tell you about my experiences...

 
At 12:45 PM, Blogger Artem said...

Yama, it would be very nice to hear your experiences and to know what you'd like to see the tutorial about. I don't post here actively anymore, but plan to add some more tutorials periodically

 
At 3:18 PM, Blogger KLCtheBookWorm said...

THANK YOU! Dupral's official directions had me lost. You explained how to do the uploading step in Cpanel, which I still haven't found in Drupal's instructions.

 
At 10:01 PM, Blogger Artem said...

I am glad that this post is useful for somebody :)

 
At 4:47 AM, Anonymous Anonymous said...

Thank you for help!!!

 
At 5:53 PM, Blogger mark said...

Hello, I have read some documentation on Drupal and would like to install it on WINDOWS Server with IIS6.

Is there a 3 simple steps for installing on a Windows server?

I have only IIS6 up and running and have downloaded the Drupal, PHP5, and MySQL.

Should MySQL and PHP 5 be installed before Drupal?

Does it matter where MySQL is installed? Does it need to be in the same directory with Drupal?

 
At 10:41 PM, Blogger Artem said...

Hi, Mark

I run Drupal test server on my home Windows PC, so it is possible. However, I use Apache, not IIS.

To run Drupal you need a web server that supports PHP and also have a MySQL or PostgreSQL database installed (Drupal might work with other DBs also, but I never heard if it really can).

In your situation, it depends if you can make IIS run PHP scripts or not. Unfortunately I have no idea of how complex it is.

Yes, PHP and DB should be installed before the Drupal itself.

It is possible to run Drupal on IIS, but unless you have good reasons to do it, I'd advice trying some out of the box Apache+PHP+MySQL installation like XAMPP

 
At 9:30 AM, Anonymous Jeremy said...

how do you test drupal on a local host?

 
At 12:53 PM, Blogger Artem said...

I use the xampp bundle - www.apachefriends.org/en/xampp.html
It includes MySQL, Apache and PhpMyAdmin, so it's easy to install Drupal there

 
At 8:33 PM, Anonymous Navi said...

Hi, i have got my hands on Drupal and Netserver. I have installed Netserver which contains Apache, PHP, MySQL on Windows.

Is there simple steps to install drupal in windows.

I have read few documents but i cant find any one on Windows.

Thanks.

 
At 10:56 PM, Anonymous Anonymous said...

The left sidebar is overlapping the center area!!!

 
At 8:22 PM, Anonymous 9O said...

just got drupal installation working on godaddy using your instructions! Thanks!!

My steps were a little different, but it is working on their php/linux/deluxe hosting environment!

This is what I did differently:

a.)started Filezilla instead of Putty
d.)used your tar command in a local cygwin directory and then uploaded the files to the destination on the server/webhost
2.a) had already created a database...but when i open it i had to select utf-8 character set in the godaddy database manager interface
2.b)found database/database.4.0.mysql in my local directory (there was a ~4.1.mysql as well but 4.0 worked for me so far)
database name and username are the same for this example get the exact details from Hosting Manager>Home>Databases>MySQL $db_url = 'mysql://databasename:password@hostname/databaseusername';

Once again--nice job, and thank you for your help

 
At 1:21 AM, Anonymous artem said...

katz, I am glad it worked for you :)

 
At 3:46 PM, Anonymous Ashley said...

Hi...I found your tutorial much more helpful than the installation instructions however, I am havin a bit of difficulty with one or two things. I couldn't find a file called database.mysql, only database.mysql.inc, so I used that. When I tried to upload the database.mysql.inc, it comes back and gives me a giant error message:
_____________
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near [and then it quotes the first couple lines of the database.mysql.inc file which start out like < ? php //$SID ...etc. (but without the spaces which I omitted because blogger wouldn't let me post any script)]
______________

So, I don't really know what to do to fix that. If you have any suggestions please let me know! THank you.

 
At 6:44 PM, Anonymous Kayson said...

Got the same problem like ashley, please can anyone help me?

Contact me under: drupal@mysolopipe.com

Big thx in advance for the help!

 
At 8:10 AM, Anonymous Anonymous said...

be a professional and remove this clutter of ads on your blog , few of my friends also hate coming on your blog , bcoz of ads .

 
At 4:51 AM, Blogger bharani said...

where i erite the simple hello world program,,

how i execute it...
bharanikumariyerphp@gmail.com

 
At 11:48 PM, Blogger Zakaria Chowdhury said...

Great help, thanks. If you want to install Drupal 6.2 then check here: http://pro-developer.blogspot.com/2008/04/how-to-install-drupal-62.html

 
At 5:41 AM, Anonymous Anonymous said...

You can also first test the drupal CMS without installing the stuff.
Check www.freedrupal5hosting.com, over there you can try the CMS and then decide if you'd like to install it or not.

 
At 11:43 AM, Anonymous james said...

now drupal 6.x is very easy to install and configure..
give it a try.

 
At 8:41 AM, Blogger Wim said...

Hi,

I've setup my Drupal site on localhost and added allready a lot of modules and content.

In a while I will register a domain and would like to host the site on an internet server.

Is there an easy way to have my local Drupal installation moved to a webserver ? So I don't need to reinstall all modules again and create all content again...

Thanks for your help!
Wim
wim.deschepper@gmail.com

 
At 7:01 AM, Anonymous Dorien said...

If you are looking for a great "all inclusive" Drupal tutorial. You might want to check out http://book.drupalfun.com

This ebook guides the reader from the install to the full featured community site.

 
At 6:17 PM, Blogger rduht said...

we offer wow power leveling and wow gold wow gold

 
At 8:29 PM, Anonymous Anonymous said...

Who knows where to download XRumer 5.0 Palladium?
Help, please. All recommend this program to effectively advertise on the Internet, this is the best program!

 
At 1:02 AM, Anonymous Anonymous said...

Our physics replica rolex professor was replica rolex struggling to replica rolex draw the class into replica rolex discussion replica rolex of Archimede's rolex principle rolex of water displacement.rolex He told us that rolex Archimede Final Fantasy XI GIL noticedrolex that when replica watches he got into replica watches a pool at the replica watches public bathhouse,replica watches the water replica watches rose spilling replica rolex over the edge. replica rolex Excited at his replica rolex discovery,aion gold he ran down replica rolex the street yelling,replica rolex "Eureka, eureka! The instructor asked ffxi gil if anyone knew LOTRO Gold what that meant.

 
At 2:54 PM, Blogger Milla said...

good to know this information to istalar things that are useful, thanks for the recommendation, I recommend buy viagra

 
At 11:39 AM, Blogger fundoo said...

Thanks for the information, we will add this story to our blog, as we have a audience in this sector that loves reading like this” cms services

 
At 11:31 AM, Blogger fundoo said...

Thanks for the information, we will add this story to our blog, as we have a audience in this sector that loves reading like this” cms services

 
At 9:13 AM, Anonymous Stained Glass Crafts said...

Thanks for the infoe useful

 
At 2:05 AM, Anonymous Anonymous said...

There are lots of fantastic replica watches Swiss produced replica watches Replica Watches UK companies for the world. replica watch Most inside extremely awesome retailing replica watches uk
fake watches companies are produced during replica rolex

 
At 11:51 PM, Anonymous Custom Logo Design said...

Nice tutorial and very informative and helpful post .Thanks for taking time to share this incredible post here with us .Good job keep it up the great work.

 
At 9:09 PM, Anonymous Web Hosting Solution said...

Your post really helped me to understand this. It has great details and yet it is easy to understand.That's what i was looking for. I will definitely share it with others.Excellent!

 
At 10:38 AM, Anonymous Content management system said...

Hi, nice post. I have been wondering about this topic,so thanks for sharing. I will certainly be subscribing to your blog.

 
At 4:59 AM, Anonymous CMS Development Company said...

Nice steps for drupal installation guides.

 
At 11:41 PM, Blogger Flex Sin said...

I have not used this module but supposedly field collection module can create a collection of fields. So if Scald Media Management module creates fields then you probably can use them inside a field collection. drupal

 
At 12:15 AM, Anonymous Anonymous said...

Excellent information and facts. Only real difficulty I was basically receiving was viewing the pics. No idea exactly why.

obat herbal
Obat Kutil Kelamin herbal
obat kutil herbal
Mengobatai Kutil Kelamin
Obat Herbal kelamim
Askep Kondiloma alami

 
At 4:28 AM, Blogger Marker fernandez said...

You have done a great job by sharing this informative post. I would like to appreciate your good work and also would like to encourage you to keep it up
Buy SSL Certificate at cheap Price

 

Post a Comment

Links to this post:

Create a Link

<< Home