Re: server error: "OSError: [Errno 13] Permission denied: '../entries'"
will <[email protected]> Sun, 13 Jan 2008 12:46:17 -0500
| Newsgroups | gmane.comp.web.pyblosxom.user |
|---|---|
| Message-ID | <[email protected]> |
It's definitely a permissions problem. Running pyblosxom.cgi from the
command line won't tell you if you have permission problems.
Figure out what user and group account your lighttpd webserver runs as
and make sure that that user or group has rx permissions on the entry
directories and r permissions on the entry files.
/will
Colin Brace wrote:
> Hi all,
>
> I've just installed v1.4.2 on my server running lighttpd v1.4.18 under
> FreeBSD 7-BETA4. My configuration seems to be OK; I can run
> pyblosxom.cgi in the cgi-bin directory without problem. However, when
> I try to evoke it from within my browser, lighttpd returns:
>
> "A server error occurred. Please contact the administrator."
>
> If I look in lighttpd.error.log, I see the following
>
> Traceback (most recent call last):
> File "/usr/local/lib/python2.5/wsgiref/handlers.py", line 92, in run
> self.result = application(self.environ, self.start_response)
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py",
> line 485, in __call__
> p.run()
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py",
> line 203, in run
> blosxom_handler(self._request)
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/pyblosxom.py",
> line 1039, in blosxom_handler
> renderer.render()
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py",
> line 313, in render
> self.flavour = self._getflavour(data.get("flavour", "html"))
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py",
> line 168, in _getflavour
> new_files = get_flavour_from_dir(flavourdir, taste)
> File "/usr/local/lib/python2.5/site-packages/Pyblosxom/renderers/blosxom.py",
> line 92, in get_flavour_from_dir
> template_files = os.listdir(path)
> OSError: [Errno 13] Permission denied: '/usr/home/colin/blog/entries'
>
> My data dir is valid and permissions are OK (+xwr). What could be going wrong?
>
> Thanks.
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace