Drupal

Requirements

  • Apache is installed.
  • PHP is installed.
  • MySQL is installed.

To check if you have all the requirements, do the following steps:

  1. Paste <?php phpinfo(); ?> into a text editor and save as info.php
  2. Copy info.php into the root directory of the webserver(eg. htdocs folder)
  3. Open with an web browser http://yourDomain.com/info.php. You should see PHP Version X.X.X and MySQL Support. Otherwise, some requirements are not installed.
  4. Don't forget to delete info.php after you are done.

Install Drupal

  1. Download Drupal from http://drupal.org/.
  2. Decompress downloaded file and copy all decompressed files in the root directory of your server.
  3. TODO

Enable Clean URLs To enable Clean URLs, you have to do the following steps:

  1. Make sure that mod_rewrite is enable in Apache. You can see which modules are loaded with phpinfo() function.
    1. Paste <?php phpinfo(); ?> into a text editor and save as info.php
    2. Copy info.php into the root directory of the webserver(eg. htdocs folder)
    3. Open with an web browser http://yourDomain.com/info.php. You should see mod_rewrite in Loaded Modules section.
    4. Don't forget to delete info.php after you are done.
  2. Open the configuration file of Apache( httpd.conf ) and set AllowOverride parameter to All. Make sure also that AccessFileName parameter is set to .htaccess.
    ...
    AllowOverride All
    ...
    AccessFileName .htaccess
    ...
  3. Copy Drupal's .htaccess into the root directory of the webserver(eg. htdocs folder).
  4. Restart Apache.
  5. You should be able to enable Clean URLs at Administer->Clean URLs.

http://drupal.org/node/43783

Configuration Change site name To change site name, go to Administer->Site configuration->Site information. You can also change the slogan, mission, Footer message, etc.

Change Themes TODO favicon.ico

Change color

Unable Color module. Color module requires your file download method to be set to public. "color picker" (which is what you need to find in order to use the module) then go to your theme's configuration page (i.e. hit the "configure" link for the relevant theme at admin/build/themes).

Add Menu TODO

Core Modules Show the number of time each page has been viewed

  1. Enable Statistics module at Administer->Site Building->Modules.
  2. Enable Count content views at Administer->Logs->Access log settings.
  3. You have decide who is allowed to see this statistic by checking view post access counter box at Administer->User management->Access control.

Allow anonymous users to post comments

  1. Enable Comment module at Administer->Site Building->Modules.
  2. Check access comments and post comments/post comments without approval for anonymous user at Administer->User management->Access control. Note that you must check access comments so that users can access comments and then post their comments.

Rename URLs By default, when node(Page,Story, etc) is created, Drupal names the node with number. This doesn't create a user friendly path to the node. In order to be able to rename path of node by enabling Path module.

  1. Enable Path module at Administer->Site Building->Modules.
  2. When creating node(Page,Story, etc), you can rename the node by entering the desired name under URL path settings.

Useful links

MISC how to restrict access to nodes based on some criterion associated with the user. http://api.drupal.org/api/file/developer/examples/node_access_example.module/6/source