Drush is well known powerful tool for drupal admin. After have Drush installed on your Linux host, then you can do these following actions to install Drupal very quickly.
1. Install Drupal in /var/www:
Move to /var/www to install Drupal for having it running on apache2
$ cd /var/wwww
2. Download Drupal:
$ drush dl drupal --package-handler=git_drupalorg
This statement need you already has GIT and php-gd installed on your machine, if you still have not git then you have to install them:
$ sudo apt-get install git
$ sudo apt-get install php5-gd
3. Rename Drupal Source Folder:
After you have downloaded drupal source “drupal-7.xx”, you have to rename it, then move into renamed folder:
$ mv drupal-7.xx drupal
$ cd drupal
4. Install drupal:
$ drush si standard --db-url=mysql://dbusername:dbpassword@localhost:port/dbname --db-su=name --db-su-pw=password --site-name="Your New Site"
When the installation finished, you will be informed about drupal site admin account, please take note it for login the site later.
5. Restart apache2:
$ sudo /etc/init.d/apache2 restart
6. Run drupal:
http://localhost/drupal
No comments:
Post a Comment