Archive for September, 2007

Troublesome mod_rewrite

September 30, 2007

To enable the rewrite_moddule in apache is easy just do this

a2enmod rewrite

to disable it is

a2dismod rewrite

in command line after that you have to restart apache by /etc/init.d/apache2 restart. But… wait a second here … I did all these but my Habari install was still not OK.   I have the blog and first entry correctly displayed but none of the links in the blog was working.   It must be a rewrite_rule issue, i.e. rewrite module wasn’t working.    phpinfo() doesn’t tell me the correct fact as well.   It was a particular apache issue with ubuntu.

I googled this (a good post here and there) and eventually found that file 000-default in /etc/apache2/sites-enabled has to be edited to set AllowOverride All    The proper way I think is to add below lines between Directory tags.

[Directory /var/www/habari/ ]
AllowOverride All

where ‘habari’ is the subfolder where you want the mod_rewrite magic to work. I guess there are still a lot of Apache I need to know.

Another domain name is going

September 30, 2007

I have emailed my first class classmates and received no response as to whether I should be keeping this domain name

I did get an email back asking me cost of keeping the name as he is considering using the name to polish his web authoring skill.

This name will be going in few weeks time. I really don’t have time in the near future to upkeep so many sites. I have reduced mine to basically this site and another one solely about programming.

3rd attempt works

September 27, 2007

In the last few days I had to do 3rd installation of ubuntu.    It was too greedy of me attempting to change screen resolution again.   It was simply not possible because if the VIA/S3 display couldn’t display 1440×900 in Windows it won’t do it in ubuntu.

Anyway it was good to have another practice of installing LAMP stack.   The only new experience was the installation of phpmyadmin who took me a while.

I checked that mod_rewrite and PDO driver for mysql were there before I attempted installation of Habari.    It didn’t work to my surprise.    Later found that it was a broken revision, I updated mine to r940 then it was OK.    I also installed the latest svn r6173 of WordPress.   This is pretty new for WordPress.

Install subversion

September 25, 2007

In order to check out source code I need to install subversion, this is done by

apt-get install subversion

Follow instruction in here to check out the latest revision.