Saturday 30 November 2013

How to Install Drupal on LAMP

Step 1. Start your Linux server and login. 


Step 2. Enter the following command to download Drupal to your server:


1  “wget http://ftp.drupal.org/files/projects/drupal-7.21.tar.gztar -xvzf drupal-7.21.tar.gz”

Step 3. Enter the following command:“tar -xvzf drupal-7.21.tar.gz”

Step 4. Enter the following command: “sudo mkdir /var/www/drupal2”

Step 5. Enter the following command:“sudo mv drupal-7.21/* drupal-7.21/.htaccess /var/www/drupal2”


Step 6. Enter the following  command:
 “sudo mkdir /var/www/drupal2/sites/default/files”
Step 7. Enter the following command:“sudo chown www-data:www-data /var/www/drupal2/sites/default/files”



Step 8. Enter the following command “sudo cp /var/www/drupal2/sites/default/default.settings.php /var/www/drupal2/sites/default/settings.php”


Step 9. Enter the following command “sudo chown www-data:www-data /var/www/drupal2/sites/default/settings.php”

Step 10. Enter the following command “mysqladmin -u root -p create drupal2”
Step 11. Enter the following command Sudo chown –R www-data:www-data /var/www”

Step 12. Select standard and then click save and continue.

Step 13. Select English and then click save and continue.
Step 14. Enter drupal2 as database name and root as username.
Step 15. Wait for the installation to complete.
Step 16. Enter the site name and your information.
Step 17. Your Drupal site should look like this.
 
 
 
 
 
 

No comments:

Post a Comment