Thanks for the support, guys!
Let me try to explain a few things. I have a working setup
on my FreeBSD box. I can access my public directory with
"http://testcode.local/~user/". I don't have special permissions
on the public directory just the user permissions. I can read and write
my code stuff as a user.
My configuration under FreeBSD:
1) I have a "127.0.0.1 testcode.local" entry in /etc/hosts.
2) In hiawatha.conf I have
Binding {
Port = 80
}
CGIhandler = /usr/local/bin/php-cgi:php
CGIextension = cgi
ExecuteCGI = yes
Hostname = 127.0.0.1
WebsiteRoot = /usr/local/www/hiawatha
StartFile = index.html
AccessLogfile = /var/log/hiawatha/access.log
ErrorLogfile = /var/log/hiawatha/error.log
#ErrorHandler = 404:/error.cgi
UserDirectory = public
UserWebsites = yes
VirtualHost {
Hostname = localhost
WebsiteRoot = /usr/home/user/public
StartFile = index.php
AccessLogfile = /var/log/hiawatha/user_access.log
ErrorLogfile = /var/log/hiawatha/user_error.log
TimeForCGI = 5
UserWebsites = yes
}
Now I am trying this setup under Ubuntu and with "http://testcode.local/" I can
view the welcome page. So far its working but when I add "~user/" at the end of
the url I am denied file access according to my logfile.
Cheers