Wednesday, September 15, 2010

P2PU: Drupal Social Web Application #1

I’ve enrolled in a P2PU course called Drupal Social Web Application. Over the next 6 weeks I’ll be learning how to use Drupal and git while working on development of the Open Hippel platform. Most of this stuff is pretty new to me so I’ll be in over my head. I’ll also be moving house at the same time, hopefully without too much of a no interwebs period. When it rains it pours!

I’ve been getting acquainted with Drupal this week and after some trials with the Ubuntu drupal6 package I’ve opted for the manual installation of Drupal as outlined in the Ubuntu Community Documentation. The manual installation allows me some more flexibility in terms of where I keep my files and which version I use when compared to a package install.

Here is a brief outline of the steps I followed on an Ubuntu Server 10.04 virtual machine.

  1. $ cd ~
  2. $ wget http://ftp.drupal.org/files/projects/drupal-6.19.tar.gz
  3. $ tar zxvf drupal-6.19.tar.gz
  4. $ sudo mkdir /var/www/drupal
  5. $ sudo mv drupal-6.19/* drupal-6.19/.htaccess /var/www/drupal
  6. $ sudo mkdir /var/www/drupal/sites/default/files
  7. $ sudo chown www-data:www-data /var/www/drupal/sites/default/files
  8. $ sudo cp /var/www/drupal/sites/default/default.settings.php /var/www/drupal/sites/default/settings.php
  9. $ sudo chown www-data:www-data /var/www/drupal/sites/default/settings.php
  10. $ mysqladmin –u root –p create drupal
  11. $ mysql –u root –p
  12. mysql> GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER, CREATE TEMPORARY TABLES, LOCK TABLES ON drupal.* TO ‘<drupaluser>’@’localhost’ IDENTIFIED BY ‘<drupalpass>’;
  13. mysql> FLUSH PRIVILEGES;
  14. mysql> \q
  15. $ vim /var/www/drupal/sites/default/settings.php
  16. edit:  $db_url = ‘mysql://<drupaluser>:<drupalpass>@localhost/drupal’;
  17. $ cp /etc/apache2/sites-available/default /etc/apache2/sites-available/drupal
  18. $ vim /etc/apache2/sites-available/drupal
  19. edit: DocumentRoot /var/www/drupal
  20. $ sudo a2dissite default && a2ensite drupal
  21. $ sudo /etc/init.d/apache2 reload
  22. From the host (or any machine on the same network) browse to “<server ip>/install.php” and follow the web based setup for Drupal
Technorati Tags: ,,,

10 comments:

  1. Well I am so excited that I have found your post because I have been searching for some information on this for almost three hours! You've helped me a lot indeed and by reading this article I have found many new and useful information about this subject!
    we buy houses cash

    ReplyDelete
  2. It is in issue of detail a pleasant and useful part of info. I’m joyous that you easily shared this cooperative data with us. delight hold us up to date like this. express gratitude you for sharing. Visit-http://www.escort-hk.net/.

    ReplyDelete

  3. Just admiring your work and wondering how you managed this blog so well. It’s so remarkable that I can't afford to not go through this valuable information whenever I surf the internet!

    seo services in lahore

    ReplyDelete

  4. it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity..
    seo company in lahore

    ReplyDelete

  5. I wanted to thank you for this excellent read!! I definitely loved every little bit of it. I have you bookmarked your site to check out the new stuff you post.
    digital marketing agency in lahore

    ReplyDelete
  6. hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community.

    web hosting in lahore

    ReplyDelete
  7. What a thrilling post, you have pointed out some excellent points, I as well believe this is a superb website. I have planned to visit it again and again.
    Web Development Company in Lahore

    ReplyDelete
  8. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.
    Affordable SEO Services in Lahore

    ReplyDelete
  9. Very nice article, I enjoyed reading your post, very nice share, I want to twit this to my followers. Thanks!.
    Digital Marketing Agency Lahore

    ReplyDelete
  10. A blog with full of knowledge is found rarely but this article stunned me when i read it. I've goosebumps, literally it's amazing visit us to get Website designing near you.

    ReplyDelete