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 http://domain.edu/~username/
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 userdirNow 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>and there you got... hit it - http://127.0.0.1/~<username>
UserDir disabled root
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
<Limit GET POST OPTIONS>
Allow from all
<LimitExcept GET POST OPTIONS>
Deny from all
Maybe now installing Mooshak would make some sense.
... after 20 minutes ...
Mooshak seems to be installed but http://127.0.0.1/~mooshak/cgi-bin/execute 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. http://mooshak.dcc.fc.up.pt/download/mooshak-1.4.3.tgz -- 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 http://127.0.0.1/~mooshak/cgi-bin/execute instead of getting the script run in background. Chaning permissions doesn't help, tried 777, 755 everything possible.
... too much for today !