Graham,

As an update, I was finally able to get the Hello World test script to run. 
 The issue was mutli-fold and including it here in case someone else has 
this issue.  I was able to look at the detailed log file at 
/usr/local/apache/logs/error_log and saw an error that indicated that I had 
to display my output as bytes rather than str.  I simply changed this line 
in my wsgi.py script:  output = 'Hello World!' to output = b'Hello World!' 
and it worked like a charm.

Now, I am working on step 2 of actually getting Django to work with a 
damoen process.  I had almost the exact same issue as this person: 
 https://groups.google.com/forum/#!topic/modwsgi/CYW0YotOAN4.

I am now having trouble with sass compiling and giving me an error Invalid 
US-ASCII character "\xE2" but that is probably outside the scope of this 
support thread. I am hoping that after I fix the SASS error, everything 
will work great. 

Thanks again,

Chris

On Tuesday, July 5, 2016 at 8:10:39 PM UTC-7, Chris Reedy wrote:
>
> Thanks Graham.  That did give me some more information but it still is not 
> clear why the wsgi script is failing.  Does this mean anything to you?  I 
> tried a number of things with the script but can't get it to output what 
> type of Exception occurred so that I can figure out how to resolve it or 
> what line resulted in the Exception:
>
> [Tue Jul 05 20:07:29.760429 2016] [core:info] [pid 22095] [client 
> 198.89.121.156:38166] AH00128: File does not exist: 
> /home/chris/public_html/500.shtml
> [Tue Jul 05 20:07:29.760173 2016] [wsgi:error] [pid 22095] [client 
> 198.89.121.156:38166] mod_wsgi (pid=22095): Exception occurred processing 
> WSGI script '/home/chris/public_html/wsgi-scripts/myapp.wsgi'.
> [Tue Jul 05 20:07:29.759813 2016] [wsgi:info] [pid 22095] [client 
> 198.89.121.156:38166] mod_wsgi (pid=22095, process='', application='
> roventure.com|/myapp'): Loading WSGI script 
> '/home/chris/public_html/wsgi-scripts/myapp.wsgi'
>
> Thanks again for all of your help,
>
> Chris
>
> On Tuesday, July 5, 2016 at 5:19:54 PM UTC-7, Graham Dumpleton wrote:
>>
>> Try:
>>
>> www.roventure.com
>>
>> It is uncommon, especially on hosted service, for roventure.com to 
>> resolve.
>>
>> $ nslookup roventure.com
>> Server: 192.168.0.1
>> Address: 192.168.0.1#53
>>
>> Non-authoritative answer:
>> *** Can't find roventure.com: No answer
>>
>> $ nslookup www.roventure.com
>> Server: 192.168.0.1
>> Address: 192.168.0.1#53
>>
>> Non-authoritative answer:
>> Name: www.roventure.com
>> Address: 104.31.83.7
>> Name: www.roventure.com
>> Address: 104.31.82.7
>>
>> When using correct host and URL:
>>
>>     http://www.roventure.com/myapp
>>
>> I see a 500 error.
>>
>> Try that and then see Apache error logs as to reason.
>>
>> Graham
>>
>> On 6 Jul 2016, at 6:11 AM, Chris Reedy <[email protected]> wrote:
>>
>> 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.
>>
>>
>>

-- 
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