Tuesday, July 01, 2008

Drupal setup

Following is a small howto for doing a setup of Drupal. You can find more details on http://drupal.org/handbooks

1. Download drupal and move the folder in /var/www/

2. Grant write permissions on configuration file
chmod o+w sites/default/

3. Create database in mysql
mysqladmin -u root -p create databasename

create username and password for accessing the database
mysql -u username -p
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER ON databasename.* TO 'username'@'localhost' IDENTIFIED BY 'password';

4. Install script
Go to browser and type http://localhost/drupal_folder
Follow the on-screen instructions

5. For Security purpose, set permission
chmod a-r CHANGELOG.txt

6. Run cron for maintenance
http://localhost/drupal_folder/cron.php

Saturday, May 03, 2008

How to setup mongrel server on ubuntu

Goto terminal and type
sudo gem install mongrel
cd application_folder
mongrel_rails start -d -p 8000 -a abc.com

First line will install mongrel server, then go inside your application folder.
Third line will start your mongrel server on port 8000. Now you can access your application on http://abc.com:8000/controller_name