Monday 16 August 2010

Sorting out CAS and Drupal installation problems

How to install self signed certificates for use with the CAS single sign on system:
http://blogs.sun.com/andreas/entry/no_more_unable_to_find
(Note that you will need to use the hostname as installed)

Drupal:
Menu items not showing up when clean urls are switched on.
It's probably a problem with apache mod_rewrite.

How to switch off clean urls using the database
In the variables table change the value of clean_url to s:1:"0";
Then truncate all the cache tables

Apache2:
How to enable mode_rewrite
sudo a2enmod rewrite

How to check if mod_rewrite is enabled
Create a .htaccess file containing the following:
RewriteEngine on
RewriteRule testpage\.html http://www.google.com [R]

If going to testpage.html sends you to google then it's working

If it's not working...
[Ubuntu] check /etc/apache2/mods-enabled to make sure that there's a sym link to ../mods-available/rewrite.load
Check in sites-enabled that
AllowOverride is set to All (by default it's None)