Making the installation instructions a bit clearer for newbies and it explicitly explains that the commands are for the command line.

4.6.x
Steven Wittens 2005-01-13 16:15:49 +00:00
parent b8b36bd941
commit ccfc5e159f
1 changed files with 61 additions and 41 deletions

View File

@ -43,20 +43,28 @@ INSTALLATION
1. DOWNLOAD DRUPAL
You can obtain the latest Drupal release from http://drupal.org/.
Download the current tar.gz format and extract the files:
The files are in .tar.gz format and can be extracted using most
compression tools. On a typical Unix command line, use:
$ wget http://drupal.org/files/project/drupal-x.x.x.tgz
$ tar -zxvf drupal-x.x.x.tgz
wget http://drupal.org/files/project/drupal-x.x.x.tgz
tar -zxvf drupal-x.x.x.tgz
This will create a new directory drupal-x.x.x/ containing all
Drupal files and directories. Move the contents of that directory
into a directory within your web server's document root or your
public HTML directory:
$ mv drupal-x.x.x/* drupal-x.x.x/.htaccess /var/www/html
mv drupal-x.x.x/* drupal-x.x.x/.htaccess /var/www/html
2. CREATE THE DRUPAL DATABASE
This step is only necessary if you don't already have a database
set-up (e.g. by your host).
If you control your databases through a web-based control panel
check its documentation for creating databases, as these instructions
are for the command-line.
These instructions are for MySQL. If you are using another database,
check the database documentation. In the following examples,
"dba_user" is an example MySQL user which has the CREATE and GRANT
@ -65,13 +73,13 @@ INSTALLATION
First, you must create a new database for your Drupal site:
$ mysqladmin -u dba_user -p create drupal
mysqladmin -u dba_user -p create drupal
MySQL will prompt for the dba_user database password and then create
the initial database files. Next you must login and set the access
database rights:
$ mysql -u dba_user -p
mysql -u dba_user -p
Again, you will be asked for the dba_user database password. At the
MySQL prompt, enter following command:
@ -97,9 +105,16 @@ INSTALLATION
3. LOAD THE DRUPAL DATABASE SCHEME
Once you have a database, you must load the required tables:
Once you have a database, you must load the required tables into
the database.
$ mysql -u nobody -p drupal < database/database.mysql
If you use a web-based control panel, you should be
able to upload the file 'database.mysql' from Drupal's 'database'
directory and run it directly as SQL commands.
From the command line, use:
mysql -u nobody -p drupal < database/database.mysql
4. CONNECTING DRUPAL
@ -109,9 +124,12 @@ INSTALLATION
base URL to the web site. Open the configuration file and edit the
$db_url line to match the database defined in the previous steps:
$db_url = "mysql://username:password@localhost/drupal";
$db_url = "mysql://username:password@localhost/database";
Set $base_url to match the address to your web site:
where 'username', 'password', 'localhost' and 'database' are the
username, password, host and database name for your set up.
Set $base_url to match the address to your Drupal site:
$base_url = "http://www.example.com";
@ -183,14 +201,16 @@ INSTALLATION
6. CRON TASKS
Many Drupal modules have periodic tasks that must be triggered by a
cron job. To activate these tasks, you must call the cron page;
this will pass control to the modules and the modules will decide
cron job. To activate these tasks, you must call the cron page by
visiting http://www.example.com/cron.php ;
This will pass control to the modules and the modules will decide
if and what they must do.
The following example crontab line will activate the cron script
on the hour:
Most systems support the crontab utility for scheduling tasks like
this. The following example crontab line will activate the cron
tasks automatically on the hour:
0 * * * * wget -O - -q http://HOSTNAME/cron.php
0 * * * * wget -O - -q http://www.example.com/cron.php
More information about the cron scripts are available in the admin
help pages and in the Drupal handbook at drupal.org. Example