I'm focusing on setting up apache2.2 and mod_fcgid for python running around the home windows platform. I am getting difficulty, like me unable to trace any reason behind the designs to fail.
Here's my httpd.conf after my modifications:
LoadModule fcgid_module modules/mod_fcgid.so <IfModule alias_module> Alias /www_fcgi "C:/apache2/www_fcgi/" ScriptAlias /cgi-bin/ "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/cgi/" ScriptAlias /www_fcgi/ "C:/apache2/www_fcgi/" </IfModule> <IfModule mod_fcgid.c> FcgidIOTimeout 40 FcgidConnectTimeout 10 FcgidMaxProcesses 8 FcgidOutputBufferSize 64 FcgidProcessLifeTime 60 FcgidMaxRequestsPerProcess 500 FcgidMinProcessesPerClass 0 </IfModule> <Directory "C:/apache2/www_fcgi"> SetHandler fcgid-script Options +Indexes FollowSymLinks +ExecCGI AllowOverride All Order allow,deny Allow from all </Directory> <Location /www_fcgi/> AddHandler fcgid-script .py Options +ExecCGI FcgidWrapper "C:/Python27/python.exe -u" .py AllowOverride All Order allow,deny Allow from all </Location>
Here is an example program that we am looking to get working:
#!C:/Python27/python -u from flup.server.fcgi import WSGIServer def app(environ, start_response): start_response('200 OK', [('Content-Type', 'text/html')]) print 'Hello world!\\n' if __name__ == '__main__': WSGIServer(app).run()
When I stated, I don't know the configurations aren't working and that i could not find any trace by mistake.record
This the output on client finish:
Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, firstname.lastname@example.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log.
It might be really useful if somebody who has understanding relating to this could shed some light on where I'm going wrong.