Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-24 Thread Rajeev Jain
s (arg didn’t open firewall ports and others). —Rajeev >> On 24 Jun 2018, at 3:00 pm, Rajeev Jain > <mailto:jainr...@gmail.com>> wrote: >> >> This is the final part of the puzzle for me. If I wanted to run things from >> a virtualenv, what would be the requir

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
> On Jun 23, 2018, at 10:02 PM, Graham Dumpleton > wrote: > > See: > > http://modwsgi.readthedocs.io/en/develop/user-guides/virtual-environments.html > > > > Graham Perfect. -- You received this message

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
This is the final part of the puzzle for me. If I wanted to run things from a virtualenv, what would be the required changes? Location of desired virtualenv: /home/user/.virtualenvs/myenv —Rajeev > On Jun 23, 2018, at 9:52 PM, Rajeev Jain wrote: > > On Jun 23, 2018, at 9:36 P

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
ers!! Thank-you so much. You are awesome. —Rajeev > Graham > >> On 24 Jun 2018, at 2:35 pm, Rajeev Jain > <mailto:jainr...@gmail.com>> wrote: >> >>> >>> On Jun 23, 2018, at 4:42 PM, Graham Dumpleton >> <mailto:graham.dumple

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
WSGIScriptAlias / /var/www/FlaskApp/flaskapp.wsgi Require all granted LogLevel info Whats’s next…it seems we are close. —Rajeev > Graham > >> On 24 Jun 2018, at 8:55 am, Rajeev Jain > <mailto:jainr...@gmail.com>> wr

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
sorry. typo: my email: jainr...@yahoo.com On Jun 23, 2018, at 3:55 PM, Rajeev Jain wrote: good question. yes that has been added: ccat /etc/apache2/ports.conf # If you just change the port or add more ports here, you will likely also # have to change the VirtualHost statement in # /etc

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
Jun 2018, at 8:52 am, Rajeev Jain <mailto:jainr...@gmail.com>> wrote: > > I fixed the items in you email. See my comments inline and below for details: > > > > I rebooted. > > and unfortunately curl command is not working: > curl http://192.168.1.14:83 <h

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
I fixed the items in you email. See my comments inline and below for details: I rebooted. and unfortunately curl command is not working: curl http://192.168.1.14:83 curl: (7) Failed to connect to 192.168.1.14 port 83: Operation timed out Here is error.log tail -f /var/log/apache2/error.log

Re: [modwsgi] mod_wsgi + apache2 + python3.6 + Flask on ubuntu 16.04 lts

2018-06-23 Thread Rajeev Jain
able directory and was it enabled so that it is linked into the sites-enabled directory and would be found. Graham > On 24 Jun 2018, at 7:55 am, 'Rajeev Jain' via modwsgi > mailto:modwsgi@googlegroups.com>> wrote: > > background: my system is Ubuntu16.04 LTS running on a home ne

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-14 Thread Rajeev Jain
in system Python 3.6. Check that mods-enabled is symlink to it and not copy with wrong value. The error indicates module wasn't loaded. > On 14 Jun 2018, at 5:09 pm, 'Rajeev Jain' via modwsgi > mailto:modwsgi@googlegroups.com>> wrote: > > did that and tried to restart the server

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-14 Thread Rajeev Jain
here is updated flask.wsgi here is error.log [Wed Jun 13 23:23:03.445837 2018] [wsgi:error] [pid 4758] ModuleNotFoundError: No module named 'math' [Wed Jun 13 23:23:15.854525 2018] [wsgi:error] [pid 4758] VERSION 3.6.5 |Anaconda, Inc.| (default, Apr 29 2018, 16:17:00) [Wed Jun 13

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-14 Thread Rajeev Jain
; cat flaskapp.wsgi #!/usr/local/python import sys import logging logging.basicConfig(stream=sys.stderr) sys.path.insert(0,"/var/www/FlaskApp/") from FlaskApp import app as application application.secret_key = 'Add your secret key' > On 14 Jun 2018, at 3:56 pm, Rajeev Jain <ma

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
root is not enabled. but i guess i can enable it for testing purposes. On Jun 13, 2018, at 10:55 PM, Graham Dumpleton wrote: >From root, can you su to the user for Apache and try the same thing. Graham > On 14 Jun 2018, at 3:54 pm, Rajeev Jain <mailto:jainr...@gmail.com>>

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
2018, at 10:52 PM, Graham Dumpleton wrote: Odd. If you run python3.6 and enter in the interpreter: import datetime it works? Graham > On 14 Jun 2018, at 3:50 pm, 'Rajeev Jain' via modwsgi > mailto:modwsgi@googlegroups.com>> wrote: > > > On Jun 13, 2018, at 10:42

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
> > Latest update: >> > No virtual environment. Python3.6 is now installed into the system folder: python location: */etc/apache2/sites-available*$ python --version Python 3.6.5 python Python 3.6.5 (default, May 3 2018, 10:08:28) [GCC 5.4.0 20160609] on linux Type "help", "copyright",

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
intend to still use > Anaconda Python. You will still have the issue with the SSL libraries. > > Are you thinking that a virtual environment will somehow solve the problem? > > On 14 Jun 2018, at 11:34 am, Rajeev Jain > > wrote: > > I want to thank you for the time you

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
: > > > > On 14 Jun 2018, at 11:04 am, Rajeev Jain > > wrote: > > Here is a more complete error log: > > [Wed Jun 13 17:55:33.173679 2018] [mpm_prefork:notice] [pid 2174] AH00169: > caught SIGTERM, shutting down > [Wed Jun 13 17:55:34.421101 2018] [mpm_prefork:notice]

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
php7.0.conf proxy_http.load session_dbd.load substitute.load On Wednesday, June 13, 2018 at 6:04:33 PM UTC-7, Rajeev Jain wrote: > > Here is a more complete error log: > > [Wed Jun 13 17:55:33.173679 2018] [mpm_prefork:notice] [pid 2174] AH00169: > caught SIGTERM

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
Here is a more complete error log: [Wed Jun 13 17:55:33.173679 2018] [mpm_prefork:notice] [pid 2174] AH00169: caught SIGTERM, shutting down [Wed Jun 13 17:55:34.421101 2018] [mpm_prefork:notice] [pid 2501] AH00163: Apache/2.4.18 (Ubuntu) mod_wsgi/4.6.4 Python/3.6 configured -- resuming normal

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
> > It is probably better to have run: > > mod_wsgi-express module-config > > That should give you a LoadModule line for loading the mod_wsgi.so file > from the place it is installed, as well as a LoadFile which loads the > correct Python shared library for Anaconda, so the system Python

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
> > So you know for future. In a multi part email chain it can be difficult to > go back and extract what configuration may have been used that you might be > referring to. So when you ask questions you should always repeat what is > occurring in your case. It is even better not to reply on a

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
gt; see, any configuration etc. One cannot assume it is the same problem. So do > that and can then help. > > Graham > > On 13 Jun 2018, at 6:24 pm, Rajeev Jain > > wrote: > > HI, Did yu have any luck? I'm having the same exact issue. > best, > -R > > > O

Re: [modwsgi] how to use python 3.6.1 in an anaconda3 env w/ Apache + mod_wsgi + flask on aws ubuntu ec2 instance

2018-06-13 Thread Rajeev Jain
HI, Did yu have any luck? I'm having the same exact issue. best, -R On Thursday, May 11, 2017 at 1:34:33 PM UTC-7, Brian wrote: > > Graham, > > Thank you so much. I plan to use Anaconda for this project and so maybe > using another tool is best? I don't want to give up on this direction if >