Installdrupal
From LocalizationWiki
Requirements
1. web server
2. PHP4 (4.3.3 or greater) or PHP5 (http://www.php.net/)
3. either MySQL (http://www.mysql.com/)or PostgreSQL (http://www.postgresql.org/).
4. Your database user will also need sufficient privileges to run Drupal.
Installation
1. Download latest Drupal release from http://drupal.org/. wget http://drupal.org/files/projects/drupal-x.x.x.tar.gz
2. Unzip the downloaded file tar -zxvf drupal-x.x.x.tar.gz
This will create a new directory drupal-x.x.x/ containing all Drupal files and directories
3. 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
Create and prepare Drupal Database
1. Create a new database for your Drupal site.
mysqladmin -u dba_user -p create databasename. Here, dba_user=MySQL user which
has the CREATE and GRANT privileges and databasename=name of your database
2. Login and set the access database rights:
mysql -u dba_user -p to log in and
At the mysql prompt :
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX,
ALTER, CREATE TEMPORARY TABLES, LOCK TABLES
ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Replace the 'username' and 'password' by your own username and password to access the drupal database.
3. Activate the new permissions, by entering the following command:
FLUSH PRIVILEGES;
Load the Drupal Database Schema.
1. To load the Drupal Database Schema you must use the file 'database.4.0.mysql'
(for MySQL 4.0 or lower) or 'database.4.1.mysql' (for MySQL 4.1 or higher). Both files are
located in Drupal's database directory.
2. for MySQL 4.0 or lower:
mysql -u username -p databasename < database/database.4.0.mysql
for MySQL 4.1 or higher:
mysql -u username -p databasename < database/database.4.1.mysql
Connecting Drupal.
1. The default configuration can be found in the
'sites/default/settings.php' file within your Drupal installation.
Before you can run Drupal, you must set the database URL. Open the
configuration file and edit the $db_url line to match the database
defined in the previous step:
$db_url = "mysql://username:password@localhost/databasename";
Change the 'username', 'password', 'hostname' and 'databasename' to your own values.
Drupal is now setup and ready to be accessed using your web browser!!.
For more information visit the Drupal web site or read the INSTALL*.txt files that comes with drupal.
