durusmail: quixote-users: scgi problems
scgi problems
2004-07-07
2004-07-07
2004-07-09
PTL editor (was Re: [Quixote-users] scgi problems)
2004-07-09
Re: PTL editor (was Re: scgi problems)
2004-07-09
Re: PTL editor (was Re: scgi problems)
2004-07-09
Re: PTL editor (was Re: scgi problems)
2004-07-09
scgi problems
jbdunsmo@utmb.edu
2004-07-07
i'm trying to switch from fastcgi to scgi, but scgi is giving me
problems.  i have the following in my apache2.conf:

LoadModule mod_scgi extramodules/mod_scgi.so

    SCGIServer localhost:3001
    SCGIHandler On


when i start the scgi server with the following command:
../server-scgi.py -p 3001 -l tmp.log

server-scgi.py:
#!/usr/bin/python
from scgi.quixote_handler import QuixoteHandler, main
from quixote.publish import Publisher
from quixote import enable_ptl
enable_ptl()
class MyAppHandler(QuixoteHandler):
    publisher_class = Publisher
    root_namespace = "deltastat"
    prefix = ""
if __name__ == '__main__':
    main(MyAppHandler)

the following two processes are created:
11137 pts/0    S      0:00 /usr/bin/python ./server-scgi.py
11138 pts/0    Z      0:01 [server-scgi.py] 

then when i visit http://localhost:3001, the page doesn't load, the
processor gets pegged out, and the log file gets filled with these
messages:

[2004-07-07 14:30:06] MyAppHandler created
Error in setwd(dir) : cannot change working directory
Execution halted
[2004-07-07 14:31:57] MyAppHandler created
Error in setwd(dir) : cannot change working directory
Execution halted
[2004-07-07 14:33:43] MyAppHandler created
Error in setwd(dir) : cannot change working directory
Execution halted

any idea what the problem is?

thanks,
jason

reply