...
1. Obtain the latest Drupal release and extract the contents of the compressed file.
Code Block |
---|
|
$ wget http://ftp.drupal.org/files/projects/drupal-x.x.tar.gz
$ tar -xzvf drupal-x.x.tar.gz |
...
2. Move the contents of the drupal-x.x directory into a directory within your web server's document root or public HTML directory (ensure that the .htaccess file, a hidden file, is successfully moved into the destination directory as well).
Code Block |
---|
|
$ mv -v drupal-x.x public_html/your_drupal_directory |
...
3. Make a copy of the default.settings.php file in the sites/default directory and name the copy settings.php.
Code Block |
---|
|
$ cp sites/default/default.settings.php sites/default/settings.php |
4. Give the web server write privileges to sites/default/settings.php and the sites/default/directory:
Code Block |
---|
|
$ chmod a+w sites/default/settings.php
$ chmod a+w sites/default |
5. Create a database for Drupal. Make note of your username and password as you will need it when the Drupal install script runs.
Code Block |
---|
|
mysqladmincreate -udatabase [mysqlusername] -p create [databasename]
mysql -u [mysqlusername] -p
enter your password
grant all on [databasename].* to [db_user_name>@<server] identified bydrupaldatabase];
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES ON [drupaldatabase].* TO '[drupaldatabaseuser]'@'localhost' IDENTIFIED BY '[password]';
flush privileges;
exit |
6. Run the install script by pointing your browser to the base URL of your website (e.g. http://www.example.com/).
...