Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Apr 1999 18:57:33 +0100
From:      Ben Smithurst <ben@scientia.demon.co.uk>
To:        Ho Seng Yip <hsengyip@singnet.com.sg>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Perl and Apache
Message-ID:  <19990406185733.A58937@scientia.demon.co.uk>
In-Reply-To: <000e01be802c$747e4060$c3a015a5@oasis>
References:  <000e01be802c$747e4060$c3a015a5@oasis>

next in thread | previous in thread | raw e-mail | index | archive | help
Ho Seng Yip wrote:

> I am quite a newbie at Unix and am currently running FreeBSD 3.1, so I hope
> someone can help me over here. I have just downloaded 'Perl 5.002' from the
> FreeBSD website and it comes in this form 'perl5.tar'. May I know how I will
> be able to un-archive the file and install Perl onto my system ?

You shouldn't need to download anything, FreeBSD 3.1 has Perl 5.00502
installed by default, I beleive. Try ``perl -v'', see what it says,

> I have also installed Apache 1.3.4 from the Cd-Rom, everything works fine,
> but I will like to enable user directories. For example, if I have a user
> directory, '/home/dan/public_html' and will like a request,
> 'http://www.domain.com/~dan' to be able to load the 'index.html' file from
> the user's 'public_html' directory. How will I be able to do that ? I have
> looked into the 'httpd.conf' file and have uncommented the chunk of lines
> that  starts with something like '<Directory /home/*/public_html>' but it
> still does not work as my web browsers tells me that access is forbidden. Do
> I have to edit some more things ?

Look in the error log. You should have a line like

	UserDir public_html

in one of Apache's configuration files. As long as dan has a directory
public_html in his home dir, and it has world execute permission, and
contains an index.html file, things should work fine. (To make sure it
has world execute permission, do ``chmod a+x ~dan/public_html'' as dan
or root.)

-- 
Ben Smithurst
ben@scientia.demon.co.uk

send a blank message to ben+pgp@scientia.demon.co.uk for PGP key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990406185733.A58937>