Hi,
I'm new to Pyblosxom but have some Python experience.
I managed to get Pyblosxom 1.4.3 up and running by following
<http://pyblosxom.sourceforge.net/1.4/manual/install_cgi.html> but
putting config.py and pyblosxom.cgi in my base dir. It worked fine
until I tried to click on the permalink to my first test entry. The
permalink went to "http://domain.com/first-post.html" and not
surprisingly it 404ed.
So I thought OK, maybe I was trying to be too clever, and I should put
my config.py and pyblosxom.cgi in a cgi-bin dir after all. (I have no
idea what difference it makes, CGI is one thing I know nothing about.
I use Dreamhost shared hosting and I was just taking a punt that it
would work at all. :))
So I created the cgi-bin directory and moved config.py and
pyblosxom.cgi there, and made my nice relative paths in config.py into
absolute paths.
Running ./pyblosxom.cgi in the command line works without
show-stopping complaint, but the website produces a 500 error thanks
to not being able to import the right script.
http://laugher.id.au/cgi-bin/pyblosxom.cgi
I have the codebase parameter set. I tried running python from the
cgi-bin dir, doing this:
>>> py = {}
>>> py["codebase"] = "/path/to/pyblosxom-1.4.3/"
>>> import os, sys
>>> sys.path.insert(0,py['codebase'])
>>> sys.path
['/path/to/pyblosxom-1.4.3/', '', '/usr/lib/python23.zip',
'/usr/lib/python2.3', '/usr/lib/python2.3/plat-linux2',
'/usr/lib/python2.3/lib-tk', '/usr/lib/python2.3/lib-dynload',
'/usr/local/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages',
'/usr/lib/python2.3/site-packages/Numeric',
'/usr/lib/python2.3/site-packages/PIL']
>>> from Pyblosxom.pyblosxom import PyBlosxom
>>>
(/path/to/ changed for posting here, obviously)
OK, so that works!
Command-line pyblosxom.cgi works, why wouldn't the web one?
Is there some kind of CGI reset thing I can try?
Any theories would be welcome :)
thanks,
Brianna
--
They've just been waiting in a mountain for the right moment:
http://modernthings.org/
|