Primary instructions to get you going are at: http://code.google.com/p/modwsgi/wiki/WhereToGetHelp?tm=6#Hello_World_Program
This presumes mod_wsgi was installed beforehand. This mounts a specific WSGI application at a particular URL using WSGIScriptAlias. If you want to be able to sprinkle .wsgi files containing valid WSGI applications in them where ever you want, then is a bit more complicated. Some details are at: http://code.google.com/p/modwsgi/wiki/ConfigurationGuidelines#The_Apache_Alias_Directive When you have encountered a specific problem, then describe what it is. BTW, for best response keep using this mailing list. StackOverflow/ServerFault is not a very good forum for detail discussion of problems. Graham On 17 June 2011 20:59, Jason Garber <[email protected]> wrote: > Hello There, > > I would encourage you to spend some more time in the wiki and follow a basic > example first... > > ... Then come ask specific questions. > > Thanks! > JG > > On Jun 17, 2011 7:46 AM, "keano" <[email protected]> wrote: >> I am trying to run python script in apache. But i just couldn't make >> it. I have installed mod_wsgi , python and apache in RHEL6. I even >> configured the httpd.conf file to include these lines >> >> <Directory "/var/www/html"> >> >> AddHandler cgi-script .cgi >> AddHandler wsgi-script .wsgi >> >> Restarted the apache and when i run my python script the python script >> just gets printed in the browser as plain text. Please somebody help >> >> -- >> You received this message because you are subscribed to the Google Groups >> "modwsgi" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/modwsgi?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
