thoughts, ideas, code and other things...

Saturday, March 07, 2009

Lessons @ Failed Mooshak attempt

Whats in an attempt? A lesson of course. By now wandering over .edu sites you must've been through urls that look like
I always wondered who sets these folders? Do they make a separate directory for everyone in /var/www/ or is it script that they run time to time ?
Well, it turned out to be another mod for Apache, suitably named userdir. Here's how to enable that -
# a2enmod userdir
Now in Ubuntu, don't confuse the 'Public' folder under your home to work. You can solve it using two ways -
1. You create a folder called "public_html" and place your stuff there.
2. You modify the /etc/apache2/mods-enabled/userdir.conf file to suit the 'Public' folder -
<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root

<Directory /home/*/Public>
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
Allow from all
Order deny,allow
Deny from all
and there you got... hit it -<username>
Maybe now installing Mooshak would make some sense.

... after 20 minutes ...

Mooshak seems to be installed but page shows the whole TCL script instead of executing it. Now thats too much for the night... I guess something went wrong with file permissions

... after 10 minutes ...

Hit me with a pan on head... I was trying to make the latest unstable version work >:#
One must be careful with alpha, betas and nightlie's in the world of Tux. -- a new food for thought.

... after 5 minutes ...

Mooshak-1.4.3 installed cleanly but only after a small patch in the 'install' script -
For Ubuntu 8.10 you should try changing like 148 into -
set fd [ open "| /usr/bin/lsof" ]
Well this does install successfully, but you still keep getting the code view of instead of getting the script run in background. Chaning permissions doesn't help, tried 777, 755 everything possible.
... too much for today !


Labels: ,


Post a Comment

Subscribe to Post Comments [Atom]

<< Home