How to Install Drupal on Godaddy

Before we proceed to Install Drupal on Godaddy hosted domain. Here is a quick Introduction about Drupal and godaddy.

Drupal:
Drupal is a free software package that allows an individual or a community of users to easily publish, manage and organize a wide variety of content on a website.

For more detailed information about Drupal, check Drupal Website.


Godaddy:
Go Daddy is an Internet domain registrar and web hosting company, which also sells e-business related software and services. For more detailed information about Godaddy, check Godaddy Website.

1. Download Drupal

You can obtain the latest Drupal release from http://drupal.org/. The files are in .tar.gz format and can be extracted using most compression tools. On a typical Unix command line, use:


tar -zxvf drupal-x.x.tar.gz

This will create a new directory drupal-x.x/ containing all Drupal files and directories. Move the contents of that directory iinto your godaddy Hosted account FTP server. Upload it within “/” or “/drupal” subdirectory as per your plan.

To upload files to your Godaddy hosted Web site, you need an FTP client. Using FTP, you can move all your drupal’s files from your local system to Godaddy hosted account.

Some popular FTP clients are:


After downloading and installing one of these clients, you can use it to connect to your Godaddy hosting account. settings. Following login details require to connect.

Web Site URL: http://www.mydomain.com
FTP Site URL: ftp://www.mydomain.com
FTP User Name: User name for your hosting account.
FTP Password: Password for your hosting account.

2. GRANT WRITE PERMISSIONS ON CONFIGURATION FILE

Drupal comes with a default.settings.php file in the sites/default directory. The installer will create a copy of this file filled with the details you provide through the install process, in the same directory. Hence give the web server write privileges to the sites/default directory.


SNAAAAAAAAAAAAAPSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS chmod o+w sites/default

3. CREATE THE DRUPAL DATABASE

  • Login to your Godaddy Account to create a Mysql database.
You can do this by using Godaddy web-based control panel



Open the Control Panel and click on name DATABASE to Expand a screen similiar as below you will see.


  • In the Hosting Manager Control panel go Click on “MySQL”
  • Click on “CREATE NEW DATABASE” button
  • Enter a new Username and password for drupal database (Username will also become your database name) and click on OK.



It will take a while (5 to 10 min or so) for GoDaddy’s servers to create and setup your database. Hit reload every so often.

  • When the “OPEN MANAGER” button is enabled your database is setup
  • Click the “Edit” Icon under “Actions”(it looks like a pencil)


  • This shows you your database information



  • Copy the “Host Name” to a scratch text file or write it down, you will need this to connect to your database
Note: Take note of the username, password, database name and hostname as you create the database. You will need this to enter these items in the install script.

4. RUN THE INSTALL SCRIPT

To run the install script point your browser to the base URL of your website
(e.g., http://www.mydomain.com).

You will be guided through several screens to set up the database, create tables, add the first user account and provide basic web site settings.

The install script will attempt to create a files storage directory in the default location at sites/default/files (the location of the files directory may be changed after Drupal is installed).

The install script will attempt to write-protect the sites/default directory after creating the settings.php file. If you make manual changes to that file later, be sure to protect it again after making your modifications. Failure to remove write permissions to that file is a security risk. Although the default location for the settings.php file is at sites/default/settings.php, it may be in another location if you use the multi-site setup, as explained below.


5. CONFIGURE DRUPAL

When the install script succeeds, you will be directed to the “Welcome” page, and you will be logged in as the administrator already. Proceed with the initial configuration steps suggested on the “Welcome” page.

13 Responses to “How to Install Drupal on Godaddy”

  1. Scott Says:

    According to the install instructions, you need to run this MySQL script.

    GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER
    ON databasename.*
    TO ‘username’@'localhost’ IDENTIFIED BY ‘password’;

    However, it fails on GoDaddy, I believe because the database is not on the same server. Do you know how to make it work?
    Thanks!
    -Scott

  2. Ask Chief Online Says:

    Hi Scott,
    On GoDaddy shared hosting at least the database server is different from your web server. You need to get the IP address for your DB server and put that in when installing Drupal instead of using localhost.

    Try this:
    1.Go to control panel
    2.Click on MySql
    3.You ‘ll see version/database name/description/action
    4.Under the action column click on edit/view details
    5.Then you’ll see hostname:h66mysql.secureserver.net (eg)
    6.Replace it with the ‘localhost’ during Drupal installation.

    Let me know if it works..?
    — Ask Chief Online

  3. Daniel Warner Says:

    It works!

    If you go to GoDaddy Hosting Control Center > Databases Tab > MySQL and click on ‘Open Manager’ next to the database you are trying to connect to it will launch MyPHPAdmin. In the upper right hand corner of MyPHPAdmin you’ll find the IP address of your database. Paste that into the first box under ‘advanced options’ in Drupal’s MySQl database setup (where it says ‘localhost’ by default).

    Thanks for the 411.

  4. daniel Says:

    Any thoughts on how I change this? I’m on a Mac.

    register_globals is enabled. Drupal requires this configuration directive to be disabled. Your site may not be secure when register_globals is enabled. The PHP manual has instructions for how to change configuration settings. (Currently using PHP register globals Enabled (’1′))

    Thanks in advance.

  5. Ask Chief Online Says:

    Hi Daniel,

    With Linux hosting + PHP 5, Godaddy turned off register_globals function by default. You can create php5.ini (for PHP5) file in the root directory of your site & add following line:

    register_globals = off

    Save this file. Run your site again.
    Best of Luck !!!
    — Ask Chief Online

  6. Ridho Says:

    you say “How to Install Drupal on Godaddy” but u use wordpress???? Hem………

  7. name Says:

    best of the best it is,

  8. Eric Says:

    This is a fantastic guide, thanks for putting it up. Appreciate the follow up comments too.

    I am so used to a normal cpanel in HostMonster, but now I had to work with GoDaddy and it was quite a change, to say the least.

    Though I prefer hostmonster/bluehost, thanks for this guide
    -Eric
    http://mydrupaladventures.com

  9. Ask Chief Online Says:

    @ Ridho
    We are currently working on another Tech Help site which uses Drupal on Godaddy, have a look here http://www.pingoit.com/

  10. Malik Bush Says:

    Thanks askchief for taking the time to do this. I used your instruction set in a class that I conducted for the Drupal community here in the Twin Cities of Minneapolis and St. Paul at our local Drupal Daze http://www.drupaldaze.com . The class was a hit and your instructions were instrumental to our success. Great Work.

    Here is the example page that I started as a part of teaching the class http://www.malikbush.com

  11. Al Says:

    Hi guys but i cannot seem to be able to run the install script from vista. my server is windows too.

    Any hints?

    Tnaks

  12. Sean Says:

    Al:

    If you are using GoDaddy, the Windows server is not configured to use Godaddy’s “Hosting 2.0″ option, which enables PHP 5.x.

    This could be your problem if you are using Drupal 6.x, which requires PHP 5.x.

  13. Sean Says:

    Browser freakout… I meant to also add that you will need to switch to Linux hosting at GoDaddy for this upgrade.

Leave a Reply