Installing Drupal

You are now ready for the installation. There are two phases: downloading and placing the files on the server and then running Drupal's installation program. Before you begin, make sure that you have the database name and location as well as the Drupal database account name and password from the last step of the previous task. Also, make sure that you have enough time. You have to download Drupal and then possibly upload the files to your own server. If you are adding contributed modules, you need to download and possibly upload them. The Drupal installation process is automated, but it takes some time. Depending on your Internet connection and the number of times you have done this, installing Drupal can take from a few minutes to an hour or more.

1. Download the current version of Drupal from, as shown in Figure 3.6. Download links are on the main page. It comes as a compressed file; expand it into its component files and folders. I Community plumbing


• About Drupal ► Hosting powerful blend of features, Drupal supports ■ ranging from personal weblogs to large websites.

► Screenshots

Drupal 5.18 Contributions: Hi Modules 0 Themes



Download Drupal.

Drupal 6.12 and 5J.8 released a critical security vulnerability, t d 6 sites is strongly recommended. There art ire information about the Drupal 6.x release series, consult the Drupal 6.0 release the 5.x releases can be found In Drupal 5.0 release announcement.

Create new account Request new password

2. Create the settings.php file. You will find default settings in

./sites/def ault/default. settings. php inside the expanded download. Copy this file and rename the copy to . /sites/def ault/settings . php, as shown in Figure 3.7. (The copying and renaming is a good idea in case something goes wrong: you can revert to default.settings.php without having to redownload all of Drupal.) Make sure that settings . php is writable for the installation process. When the process is complete, you can make the file read-only.


□ default


j I

==ib eh- G©] an



> LJ demo_drupal CHANGELOG.txt

Ü all

► default.settings.p


^ Hermes Jj Untitled E3 Zeus ±



A «rrlnn* php

cron.php Q includes index, php

B Titan -1 Mercury —

INSTALL, mysql.txt INSTALL, pgsql.txt install.php

0 Saturn ±


0 jfeiler ±




H Desktop

B modules


^ profiles

Û STYDrupal ^Applications

■ zz""

LV Documents ▼ SEARCH FOR

a ^

ùi themes update.php


(¿1 Today


Q Yesterday

,i xmlrpc.php


Create settings.php.

3. Move the downloaded files to the server. The folder you downloaded will normally be named with the Drupal version—something like drupal-6.12. You can leave that name or rename the folder as you see fit. Depending on how you set up your URLs on the site, this name may be visible, so it is a good idea to remove the version from it. If you do not want to use a subfolder, move the contents of the downloaded folder (not the folder itself) to your web server root directory.

4. Launch the installer. Use your browser to open or, if you are running on your own computer, localhost/mysubfolder/install.php. If you installed the contents of the downloaded folder in your site's root, the URLs are or localhost/install.php.

5. In Drupal 7, there is now an extra step at the beginning of the installation process. As shown in Figure 3.8, choose the installation profile you want to install. In addition to the standard installation, a minimal installation now exists with only the required modules enabled. The minimal installation is not for people just getting started. In fact, it can make life more difficult for beginners. The minimal installation is designed primarily for module developers who want to test their module with a minimal of interactions with other modules. This step is shown in Figure 3.8.

Select an Installation profile I Drupal

Select an Installation profile I Drupal

Select an installation profile

H Drupal

Create a Drupal site wltli the most commonly used features ore-lrrstelled. Q Drupal (minimal)

Create a Drupal site wltn only required modules enabled. ( Save and continue )

► Choose profile

Choose language Verily requirements Set up database Install profile Configure site Finished

Select an installation profile

H Drupal

Create a Drupal site wltli the most commonly used features ore-lrrstelled. Q Drupal (minimal)

Create a Drupal site wltn only required modules enabled. ( Save and continue )

► Choose profile

Choose language Verily requirements Set up database Install profile Configure site Finished

6. Choose your language. English is the default, but you can also find instructions for other languages, as shown in Figure 3.9.


Choose your language.

7. Set up the database. Provide the database information that you wrote at the end of the previous task, as shown in Figure 3.10.

Database configuration ] Drupal

[ 4 | ^ | | C | | + 1 ^http://localhost/~sams/demo_drupal/install.php?prof1le=defauU&localeg>^rQ.' Google

Database configuration ] Drupal

[ 4 | ^ | | C | | + 1 ^http://localhost/~sams/demo_drupal/install.php?prof1le=defauU&localeg>^rQ.' Google y/ Choose language y Verify requirements ► Set up database Install site Configure site Finished

Database configuration y/ Choose language y Verify requirements ► Set up database Install site Configure site Finished


Provide the database log in information.

Database configuration

To set up your Drupal database, enter the Following information. Database type: © mysqli

O pgsqi

The type of database your Drupal data will be stoned In. Database name: demo_druRal

The name of the database your Drupal data w before Drupal can be Installed.

I be stored In. It m

Database password:

Advanced options (Save and continue")

8. If needed, provide the advanced options, shown in Figure 3.11. Although it is included as an advanced option, the hostname is required.

9. Configure the site, as shown in Figure 3.12. Set the email address for Drupal to use in sending its emails.


Set hostname and other advanced options.

Database configuration I Drupal

[ -4 I I [ C I [K"I [ + I £http://loealhost/~sams/demojarupal/install.php?profile=defauit&locai ' Q,

Advanced options

These options are only necessary for some sites. If you're not sure what you should enter here, leave the default settings or check with your hosting provider.

Database host:

local host if your database is located on a different server, change this. Database port:

If your di Table prefix:

( Save and continue


Set the site's email address.

6 O O Configure site 1 Drupal

I http://localhost/~5ams/demo_drupat/ln5tall.php?[Qcale=en&profile=defaL<&^^^^^^"

y Choose language y Verify requirements y/ Set up database y Install site ► Configure site Finished

Configure site

All necessary changes to ./sites/default and ./sites/defauIt/settings.php have been made, so you should remove write permissions to them now in order to avoid security risks. If you are unsure how to do so, please consult the on-line handbook.

To configure your website, please provide the following information. Site information

Site name:

The From add re other notifications, (lise being flagged as spam.)

Administrator account

10. As advised in Figure 3.12, make settings . php read-only.

11. Create the administrator account. This is a superuser account with total access to the site. (It is sometimes called the primary account.) One of the most important tasks for you to carry out after you have created the site is to create another account with more limited administrative permissions. Figure 3.13 shows how you set up the administrator account.


Configure site I Drupal

1 Ô ) 1 x-: 1 ( + 1 ^http://localhost/~sams/demo_drupal/install.php?locale=eii&profile=defauloH'Q.' Google

Administrator account

The administrator account has complete access to the site; it will automatically be granted all permissions and can perform any administrative activity. This will be the only account that can perform certain activities, so keep its credentials safe.


Spaces are allowed; punctuation Is not allowed except for periods, hyphens, and underscores.

][email protected] ort.hcountriif.tjn sujti.n3.c0rn

All e-malls from the system will be sent to this address. The e-mail address Is not made public and will only be used If you wish to receive a new password or wish to receive certain news or notifications by e-irall.


Server settings

By default, dates In this site will be displayed in the chosen time zone.

Create the administrator account.

12. Select your time zone and the options to use clean URLs and to automatically check for updates, as shown in Figure 3.14. If you want to use clean URLs, enable the mod_rewrite extension for Apache or the Microsoft URL Rewrite Modules for IIS 7.0 on IIS. (There is more on this in Hour 6.)

Configure site I Drupal

1 -< I C 1 [f<-'| ¡jP| f^nttp://localhost/~sams/demo_drupal/install.php?locale=endEprofile=d«faulG - '^Q.- l:

Default time zone:

Clean URLs:

• Disabled Enabled

This option makes Drupal emit "dean" URLs (I.e. wltho Your system configuration does not currently support tf in URLs hi

:citlonal troubleshooting Information.

Update notifications:

M Check for updates automatically

With this option enabled, Drupal will notify you when new reit significantly enhance your site's security and Is highly recom to periodically send anonymous Information on Its Installed co more Information please see the update notification Informath available. This will . This requires your s . to I or

( Save and


Set time zone and options for clean URLs and updates.

13. At the end of the process, you get any error messages that may have arisen. A link on that page lets you continue to your site, as shown in Figure 3.15. You are now running Drupal.


Move on to your site.



\ I C I IR- + £http://localhost/~sams/demo_drupal/





My account

Welcome to your new Drupal website!

Please Follow these steps to set up and start using your website:

Create content


1. Configure your website

Once logged in, visit the administration section, where you can customize and configure all aspects of your website.

2. Enable additional functionality

Next, visit the module list and enable features which suit your specific needs. You can find additional modules in the Drupal modules download section.

3. Customize your website design

To change the "look and feel" of your website, visit the themes section. You may choose from one of the included themes or download additional themes from the Drupal themes download section.

4. Start posting content

Finally, you can create content for your website. TTiis message will disappear once you have promoted a post to the front page.

For more information, please refer to the help section, or the online Drupal handbooks. You may also post at the Drupal forum, or view the wide range of other support options available.

Was this article helpful?

0 0

Post a comment