Making the installation instructions a bit clearer for newbies and it explicitly explains that the commands are for the command line.
parent
b8b36bd941
commit
ccfc5e159f
102
INSTALL.txt
102
INSTALL.txt
|
@ -4,8 +4,8 @@ REQUIREMENTS
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Drupal requires a web server, PHP4 (http://www.php.net/) and either
|
Drupal requires a web server, PHP4 (http://www.php.net/) and either
|
||||||
MySQL or PostgreSQL. Drupal requires PHP 4.1.0 or greater on Linux
|
MySQL or PostgreSQL. Drupal requires PHP 4.1.0 or greater on Linux
|
||||||
and PHP 4.2.3 or greater on Windows. PHP5 is not yet supported.
|
and PHP 4.2.3 or greater on Windows. PHP5 is not yet supported.
|
||||||
|
|
||||||
NOTE: The Apache web server and MySQL database are strongly recommended;
|
NOTE: The Apache web server and MySQL database are strongly recommended;
|
||||||
other web server and database combinations such as IIS and PostgreSQL
|
other web server and database combinations such as IIS and PostgreSQL
|
||||||
|
@ -30,7 +30,7 @@ OPTIONAL COMPONENTS
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
- To use XML-based services such as the Blogger API, Jabber, RSS
|
- To use XML-based services such as the Blogger API, Jabber, RSS
|
||||||
syndication, you will need PHP's XML extension. This extension is
|
syndication, you will need PHP's XML extension. This extension is
|
||||||
enabled by default in standard PHP4 installations.
|
enabled by default in standard PHP4 installations.
|
||||||
|
|
||||||
- If you want support for clean URLs, you'll need mod_rewrite and
|
- If you want support for clean URLs, you'll need mod_rewrite and
|
||||||
|
@ -43,37 +43,45 @@ INSTALLATION
|
||||||
1. DOWNLOAD DRUPAL
|
1. DOWNLOAD DRUPAL
|
||||||
|
|
||||||
You can obtain the latest Drupal release from http://drupal.org/.
|
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
|
wget http://drupal.org/files/project/drupal-x.x.x.tgz
|
||||||
$ tar -zxvf drupal-x.x.x.tgz
|
tar -zxvf drupal-x.x.x.tgz
|
||||||
|
|
||||||
This will create a new directory drupal-x.x.x/ containing all
|
This will create a new directory drupal-x.x.x/ containing all
|
||||||
Drupal files and directories. Move the contents of that directory
|
Drupal files and directories. Move the contents of that directory
|
||||||
into a directory within your web server's document root or your
|
into a directory within your web server's document root or your
|
||||||
public HTML directory:
|
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
|
2. CREATE THE DRUPAL DATABASE
|
||||||
|
|
||||||
These instructions are for MySQL. If you are using another database,
|
This step is only necessary if you don't already have a database
|
||||||
check the database documentation. In the following examples,
|
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
|
"dba_user" is an example MySQL user which has the CREATE and GRANT
|
||||||
privileges. You will need to use the appropriate user name for your
|
privileges. You will need to use the appropriate user name for your
|
||||||
system.
|
system.
|
||||||
|
|
||||||
First, you must create a new database for your Drupal site:
|
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
|
MySQL will prompt for the dba_user database password and then create
|
||||||
the initial database files. Next you must login and set the access
|
the initial database files. Next you must login and set the access
|
||||||
database rights:
|
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
|
Again, you will be asked for the dba_user database password. At the
|
||||||
MySQL prompt, enter following command:
|
MySQL prompt, enter following command:
|
||||||
|
|
||||||
GRANT ALL PRIVILEGES ON drupal.*
|
GRANT ALL PRIVILEGES ON drupal.*
|
||||||
|
@ -97,21 +105,31 @@ INSTALLATION
|
||||||
|
|
||||||
3. LOAD THE DRUPAL DATABASE SCHEME
|
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
|
4. CONNECTING DRUPAL
|
||||||
|
|
||||||
The default configuration can be found in the
|
The default configuration can be found in the
|
||||||
'sites/default/settings.php' file within your Drupal installation.
|
'sites/default/settings.php' file within your Drupal installation.
|
||||||
Before you can run Drupal, you must set the database URL and the
|
Before you can run Drupal, you must set the database URL and the
|
||||||
base URL to the web site. Open the configuration file and edit the
|
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 line to match the database defined in the previous steps:
|
||||||
|
|
||||||
$db_url = "mysql://username:password@localhost/drupal";
|
$db_url = "mysql://username:password@localhost/database";
|
||||||
|
|
||||||
|
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 web site:
|
Set $base_url to match the address to your Drupal site:
|
||||||
|
|
||||||
$base_url = "http://www.example.com";
|
$base_url = "http://www.example.com";
|
||||||
|
|
||||||
|
@ -121,19 +139,19 @@ INSTALLATION
|
||||||
next section.
|
next section.
|
||||||
|
|
||||||
Additional site configurations are created in subdirectories within
|
Additional site configurations are created in subdirectories within
|
||||||
the 'sites' directory. Each site subdirectory must have a
|
the 'sites' directory. Each site subdirectory must have a
|
||||||
'settings.php' file which specifies the configuration settings. The
|
'settings.php' file which specifies the configuration settings. The
|
||||||
easiest way to create additional sites is to copy the 'default'
|
easiest way to create additional sites is to copy the 'default'
|
||||||
directory and modify the 'settings.php' file as appropriate. The new
|
directory and modify the 'settings.php' file as appropriate. The new
|
||||||
directory name is constructed from the site's URL. The
|
directory name is constructed from the site's URL. The
|
||||||
configuration for www.example.com could be in
|
configuration for www.example.com could be in
|
||||||
'sites/example.com/settings.php' (note that 'www.' should be omitted
|
'sites/example.com/settings.php' (note that 'www.' should be omitted
|
||||||
if users can access your site at http://example.com/).
|
if users can access your site at http://example.com/).
|
||||||
|
|
||||||
Sites do not each have to have a different domain. You can use
|
Sites do not each have to have a different domain. You can use
|
||||||
subdomains and subdirectories for Drupal sites also. For example,
|
subdomains and subdirectories for Drupal sites also. For example,
|
||||||
example.com, sub.example.com, and sub.example.com/site3 can all be
|
example.com, sub.example.com, and sub.example.com/site3 can all be
|
||||||
defined as independent Drupal sites. The setup for a configuration
|
defined as independent Drupal sites. The setup for a configuration
|
||||||
such as this would look like the following:
|
such as this would look like the following:
|
||||||
|
|
||||||
sites/default/settings.php
|
sites/default/settings.php
|
||||||
|
@ -156,9 +174,9 @@ INSTALLATION
|
||||||
|
|
||||||
Each site configuration can have its own site-specific modules and
|
Each site configuration can have its own site-specific modules and
|
||||||
themes that will be made available in addition to those installed
|
themes that will be made available in addition to those installed
|
||||||
in the standard 'modules' and 'themes' directories. To use
|
in the standard 'modules' and 'themes' directories. To use
|
||||||
site-specific modules or themes, simply create a 'modules' or
|
site-specific modules or themes, simply create a 'modules' or
|
||||||
'themes' directory within the site configuration directory. For
|
'themes' directory within the site configuration directory. For
|
||||||
example, if sub.example.dom has a custom theme and a custom module
|
example, if sub.example.dom has a custom theme and a custom module
|
||||||
that should not be accessible to other sites, the setup would look
|
that should not be accessible to other sites, the setup would look
|
||||||
like this:
|
like this:
|
||||||
|
@ -177,23 +195,25 @@ INSTALLATION
|
||||||
|
|
||||||
You can now launch your browser and point it to your Drupal site.
|
You can now launch your browser and point it to your Drupal site.
|
||||||
|
|
||||||
Create an account and login. The first account will automatically
|
Create an account and login. The first account will automatically
|
||||||
become the main administrator account.
|
become the main administrator account.
|
||||||
|
|
||||||
6. CRON TASKS
|
6. CRON TASKS
|
||||||
|
|
||||||
Many Drupal modules have periodic tasks that must be triggered by a
|
Many Drupal modules have periodic tasks that must be triggered by a
|
||||||
cron job. To activate these tasks, you must call the cron page;
|
cron job. To activate these tasks, you must call the cron page by
|
||||||
this will pass control to the modules and the modules will decide
|
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.
|
if and what they must do.
|
||||||
|
|
||||||
The following example crontab line will activate the cron script
|
Most systems support the crontab utility for scheduling tasks like
|
||||||
on the hour:
|
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
|
More information about the cron scripts are available in the admin
|
||||||
help pages and in the Drupal handbook at drupal.org. Example
|
help pages and in the Drupal handbook at drupal.org. Example
|
||||||
scripts can be found in the scripts/ directory.
|
scripts can be found in the scripts/ directory.
|
||||||
|
|
||||||
DRUPAL ADMINISTRATION
|
DRUPAL ADMINISTRATION
|
||||||
|
@ -205,8 +225,8 @@ access rights.
|
||||||
|
|
||||||
Use your administration panel to enable and configure services. For
|
Use your administration panel to enable and configure services. For
|
||||||
example, set some general settings for your site with "Administration -
|
example, set some general settings for your site with "Administration -
|
||||||
configuration". Enable modules via "Administration - configuration -
|
configuration". Enable modules via "Administration - configuration -
|
||||||
modules". User permissions can be set with "Administration - accounts
|
modules". User permissions can be set with "Administration - accounts
|
||||||
- permissions".
|
- permissions".
|
||||||
|
|
||||||
For more information on configuration options, read through the
|
For more information on configuration options, read through the
|
||||||
|
@ -220,10 +240,10 @@ CUSTOMIZING YOUR THEME(S)
|
||||||
-------------------------
|
-------------------------
|
||||||
|
|
||||||
Now that your server is running, you will want to customize the look
|
Now that your server is running, you will want to customize the look
|
||||||
of your site. Several sample themes are included in the Drupal
|
of your site. Several sample themes are included in the Drupal
|
||||||
installation and more can be downloaded from drupal.org.
|
installation and more can be downloaded from drupal.org.
|
||||||
|
|
||||||
Customizing each theme depends on the theme. In general, each theme
|
Customizing each theme depends on the theme. In general, each theme
|
||||||
contains a PHP file themename.theme which defines a function header()
|
contains a PHP file themename.theme which defines a function header()
|
||||||
that can be changed to reference your own logos.
|
that can be changed to reference your own logos.
|
||||||
|
|
||||||
|
@ -252,6 +272,6 @@ MORE INFORMATION
|
||||||
|
|
||||||
For platform specific configuration issues and other installation and
|
For platform specific configuration issues and other installation and
|
||||||
administration assistance, please consult the Drupal handbook at
|
administration assistance, please consult the Drupal handbook at
|
||||||
http://drupal.org/. You can also find support at the Drupal support
|
http://drupal.org/. You can also find support at the Drupal support
|
||||||
forum or through the Drupal mailing lists.
|
forum or through the Drupal mailing lists.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue