From: Allan Gottlieb <gottlieb@nyu.edu>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] USERDIR problem with apache on new install (SOLVED)
Date: Sat, 29 Sep 2012 17:59:48 -0400 [thread overview]
Message-ID: <yu9a9w8o5gr.fsf@nyu.edu> (raw)
In-Reply-To: <yu97grcuarq.fsf@nyu.edu> (Allan Gottlieb's message of "Sat, 29 Sep 2012 11:08:41 -0400")
On Sat, Sep 29 2012, Allan Gottlieb wrote:
> On my new install USERDIR is not working.
>
> When I try http://localhost/~gottlieb, firefox says
> "you don't have permission to access /~gottlieb"
> and the apache error log says
> "client denied by server configuration: /local/allan/gottlieb/public_html"
>
> The file permissions are ok since both
> file:///home/gottlieb/public_html/index.html and
> file:///home/gottlieb/public_html
> work fine.
>
> So I guess I screwed up the apache install, in particular USERDIR.
>
> eix shows userdir (see below)
>
> /etc/conf.d/apache2 has it (see below, diffs = with my working install)
>
> I have restarted apache, shutdown the machine overnight, reinstalled
> apache, but still no go.
>
> What step did I foolishly miss?
>
> thanks,
> allan
Finally! I have a filesystem mounted on /local for my local files
including my home directory /local/allan/gottlieb.
I put in a symlink /home -> /local/allan/gottlieb
so that programs looking in /home would be happy.
I had /etc/passwd say /local/allan/gottlieb since it is the real
directory.
apache doesn't like this. There is probably an option to let it do this
since it has several options on symlinks
However I simply changed /etc/passwd to say /home/gottlieb and apache
is happy.
allan
next prev parent reply other threads:[~2012-09-29 22:02 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-29 15:08 [gentoo-user] USERDIR problem with apache on new install Allan Gottlieb
2012-09-29 16:31 ` Michael Hampicke
2012-09-29 17:27 ` Allan Gottlieb
2012-09-29 17:52 ` Neil Bothwick
2012-09-29 18:14 ` Michael Hampicke
2012-09-29 18:57 ` Allan Gottlieb
2012-09-29 21:59 ` Allan Gottlieb [this message]
2012-09-29 22:14 ` [gentoo-user] USERDIR problem with apache on new install (SOLVED) Michael Hampicke
2012-09-30 1:39 ` Allan Gottlieb
2012-09-30 6:42 ` Andrea Conti
2012-09-30 16:36 ` Allan Gottlieb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yu9a9w8o5gr.fsf@nyu.edu \
--to=gottlieb@nyu.edu \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox