Re: installation mac os x

Wari Wahab <[email protected]>
Newsgroups gmane.comp.web.pyblosxom.user
Message-ID <[email protected]>
On 11 Sep 2006, at 11:42 AM, [email protected] wrote:

> This is what I did:
> 1. downloaded: pyblosxom-1.3.2
> 2. cp ~/Desktop/pyblosxom-1.3.2/web/pyblosxom.cgi /Library/WebServer/
> CGI-Executables/
> 3. cp ~/Desktop/pyblosxom-1.3.2/web/config.py /Library/WebServer/CGI-
> Executables/
> 4. chmod a+x /Library/WebServer/CGI-Executables/pyblosxom.cgi
> 5. mkdir /Library/WebServer/Documents/PybEntries
> 6. mkdir /Library/WebServer/Documents/PybEntries/entries
> 7. mkdir /Library/WebServer/Documents/PybEntries/flavours
>
> 8. In "config.py" I changed the lines
> 	py["codebase"] = "/Library/Webserver/CGI-Executables"
> 	py['datadir'] = "/Library/Webserver/Documents/PybEntries/entries"

One question, did you put the Pyblosxom directory in /Library/ 
WebServer/CGI-Executables/? It could be the reason why the main  
script won't run. If you don't move any files from your original  
location, putting the following might even work:

py["codebase"] = "/Users/gertlist/Desktop/pyblosxom-1.3.2"

Another way is to run setup.py, and hopefully the main pyblosxom  
package gets installed properly. You can check this by running a  
python shell, and do the following:

from Pyblosxom import *

Another possible problem could be that you have multiple versions of  
python installed, and the python running from apache could be  
different from the python that gets called when you run from command  
line. You can fix that by ensuring the first line in pyblosxom.cgi  
calls the correct interpreter.

BTW, if you install pyblosxom in /Library/Webserver/CGI-Executables,  
ensure that you run pyblosxom.cgi once in the terminal as root, this  
will create the necessary .pyc files on the main pyblosxom library  
package.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.