Misc Python Scripts

Here are some misc scripts.


Search Engine Optimization in Drupal 6

Drupal Modules

  • global redirect module
    • makes sure there is only one URL per page (gets rid of node/123 type URLs)
    • simply install—no configuration needed.
    • path_redirect module also needs to be used if you have old urls that you have changed but want to keep the old url address functioning
    • otherwise just make sure there are not multiple aliases for any pages using Site Building/URL aliases/list and sort on “system”

A truly beautiful Drupal site

Have a look at The Vintage Aviator if you want to see a really nice example of a website. Plus it is implemented in Drupal. The only negative comment I would have is that the page load time is rather slow, but that could be because the site has just come out and is getting a lot of coverage.
Here is a link to an article by the author on the story of how he build the site and what tools he used: http://drupal.org/node/267393

Collection of 31 Remarkable Drupal Powered Websites

A great article can be found here: CMS Showcase: 31 Remarkable Drupal Powered Websites which lists (as you may guess) 31 excellent sites.
It is great that an image of the home page of each site is posted, but it would have been even better if a few words were said about each site, particularly what makes them "remarkable".


CMS Evaluation recommends Drupal

The article Selecting an Open Source Content Management Solution Using Web 2.0 to Drive Online Sales compares four systems: Drupal, Alfresco, Joomla, and Liferay. There is a chart that evaluates their strengths and weaknesses. The choice was made to go with Drupal, and the article describes how this led to a successful implementation.


Colour test page

Regular colours

  • e.g. red is #FFxxxx; where xx varies from 00 through to FF
Colour 00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0 FF

Excellent list of Drupal websites

seo-expert-blog.com has just published The Most Incomplete List of Drupal Sites
It is a great list!
Two other great listings are: http://www.drupalsites.net/
and: http://unspun.amazon.com/Top-Drupal-Sites/list/show/4583


Installing Drupal on RimuHosting.com

Here is how to install Drupal on a CentOS 5.4 Linux installation, hosted on http://RimuHosting.com

  1. log in as root
    Update to latest version with:
    rm -f /etc/localtime
    ln -s /usr/share/zoneinfo/America/Toronto /etc/localtime
    apt-get update -y ; apt-get upgrade

Installing Drupal on Centos5

Please note that more up-to-date instructions are available here:

Here is how to install Drupal on a Centos5 Linux installation

  1. Install Centos5 including web server and mysql
  2. log in as root
  3. Update to latest version with: yum -y update yum ; yum -y update
  4. Install modules with: yum -y install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel system-config-securitylevel-tui
    Note that this is called system-confi-firewall in CentOS 6
  5. Enable .htaccess: cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.original
    vi /etc/httpd/conf/httpd.conf
    and in two places change AllowOverride None to All (may not be needed in CentOS 6
  6. Uncomment NameVirtualHost *:80
  7. Start apache with: service httpd start
  8. Run: system-config-securitylevel-tui and enable firewall for ssh and http, plus port 10000 for webmin
  9. Open a browser window pointed to the server to check if apache is running
  10. Create default page: echo "<html><head><title>Name of Server</title></head><body><h1>Name of Server</h1></body></html>" > /var/www/html/index.html
  11. Make sure server is running by visiting: http://servername/
  12. Create test script: echo "<html><head><title>Test Page</title></head><body><?php phpinfo(); ?></body></html>" > /var/www/html/testphp.php
  13. Make sure php is running by visiting: http://servername/testphp.php
  14. download and install webmin:
    wget http://prdownloads.sourceforge.net/webadmin/webmin-$WMVER.noarch.rpm
    rpm -U webmin-$WMVER.noarch.rpm
    system-config-firewall #to open port 10000
  15. Check it is working by visiting: http://servername:10000
  16. Use webmin to create a virtual server at /var/www/html with no server name. (This will be the default and must come first)
  17. Install MySQL with: yum -y install php-mysql mod_auth_mysql mysql-server php-gd php-mbstring
  18. Start MySQL: /etc/init.d/mysqld start
  19. Now setup MySQL: mysqladmin -u root password rootsqlpassword
  20. Make sure mysqld and httpd start on boot by checking the boxes: webmin / system / bootup and shutdown
  21. Download and install Drupal following the instructions here: http://drup.org/acquia-drupal-svn
  22. Well done! You are finished

Ledalite: beautiful new Drupal site

Ledalite has a very attractive new website using Drupal. It is a table-less theme with some javascript effects and subtle shading that makes the site pleasant to look at and to use. The "product quick links" is an interesting feature. There are also some very nice image galleries on the site.



Subscribe to Drup.org RSS