General Instructions

Here is the procedure for installing drupal on a Linux or Unix system. This chapter describes the generic installation procedure for drupal as well as detailing some installation instructions for specific configurations.

1. Download the distribution tar-ball and unzip it into the directory you want to serve web files from:

2. Create a MySQL database for your drupal site (if you haven't already):

• mysqladmin create database_drupal

3. Create a user for your MySQL database and assign it the proper permissions.

• At the command line (requires root access or permissions to create users) type the following lines. The first line runs MySQL, then the second line instruct the MySQL program to create the proper permissions.

• mysql -u root -prootpassword database_drupal

• grant all privileges on database_drupal.* to [email protected] identified by 'userpassword';

• Important: in the above examples, replace rootpassword with the root MySQL user's password, database_drupal with the name of the database you are creating, username the Drupal database's username, userpassword with the new password you are assigning to that MySQL user.

4. Once you have a proper database, dump the required tables into your database:

• mysql -u username -puserpassword database_drupal < database/database.mysql

5. Edit the includes/conf.php configuration file to set the required settings such as the database options and to customize your site. You will need to know your MySQL username, password, and database name (see above).

6. Launch your browser and point it to http://yourdomain.com/ and create an account, log in. The first user will automatically have all administrator permissions. Click my account to edit your password.

7. (Optional) Edit the .htaccess file and set the values of the PHP variables to your likings: session.name, session.cookie_lifetime, session.gc_maxlifetime, session.cache_expire and session.save_path. Check your PHP reference manual for the exact purpose of each variable mentioned.

8. (Optional) Setup a crontab to periodically visit

http://yourdomain.com/cron.php.

• This usually means editing the /etc/crontab file and inserting a line like one (but not both!) of the following:

• 00 * * * * /usr/bin/lynx -source http://yourdomain.com/cron.php

• 00 * * * * /usr/bin/wget -O /dev/null http://yourdomain.com/cron.php

Notes:

PHP.ini should have the following settings:

- register_globals=on

- allow_call_time_pass_reference = On

+1 0

Post a comment