I followed the instructions to compile python from source and then mod_wsgi 
and both of those succeeded.  And I read over the troubleshooting in 
http://modwsgi.readthedocs.io/en/develop/user-guides/installation-issues.html 
and the QuickConfiguration Guide here: 
 https://code.google.com/archive/p/modwsgi/wikis/QuickConfigurationGuide.wiki. 
However, I still get mod_wsgi to work.  Below, are the things that I have 
done to configure the module after compiling it:  

On the WHM, I added mod_wsgi to my pre virtualhost include.  Using the 
following lines:

LoadModule wsgi_module /usr/lib64/apache2/modules/mod_wsgi.so
AddHandler wsgi-script .wsgi
LogLevel info wsgi_module:info

The process succeeded and then I restarted the server.  When I type 
apachectl -t -D DUMP_MODULES, I can see that wsgi_module (shared) appears.

I added the following lines to my httpd.conf file following the process for 
userdata includes and it passed without any errors:


WSGIScriptAlias /myapp /home/chris/public_html/wsgi-scripts/myapp.wsgi


<Directory /home/chris/public_html/wsgi-scripts>

Require all granted

</Directory>


I added the following into the myapp.wsgi file and placed it in: 
 /home/chris/public_html/wsgi-scripts/myapp.wsgi:


def application(environ, start_response):

        status = '200 OK'

        output = 'Hello World!'

        response_headers = [('Content-type', 'text/plan'), 
('Content-Length', str(len(output)))]

        start_response(status, response_headers)

        return [output]

When I go to http://roventure.com/myapp, I get a:  This Site Can't Be 
Reached error.  roventure.com’s server DNS address could not be found.

However, this is not an issue of the DNS settings.  I put an index.html 
test file at /home/chris/public_html/ so that if you go to: 
 http://roventure.com/ you will see:  Happy 4th of July.

I can't figure out why this is not working.  Any help would be greatly 
appreciated!

Best,

Chris

The following are the versions that I am running:
OS:  CentOS 6.8

Apache Version:  2.4.20 (cPanel)

mod_wsgi:  4.5.3

Python:  3.5.2

WHM: 56.0 (Build 24)

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/modwsgi.
For more options, visit https://groups.google.com/d/optout.

Reply via email to