Hello,
Its been a while....
I'm emailing to get a clarification on the relationship of 4 different
parts of python as it relates to apache:
myapp folder ;myapp.wsgi ; env_py3 and .python-eggs

A) We have default-ssl.conf in /etc/apache/sites-available/
B) Our program : /usr/local/pyramid/myapp
C) environment: /usr/local/pyramid/env_py3
D) myapp.wsgi to be placed in which folder?
E) .python-eggs placement? And if still needed for python3 as it uses
.cache?

Inside default-ssl.conf we add below code. I'm going to be asking about the
bold items.

        WSGIApplicationGroup %{GLOBAL}
        WSGIPassAuthorization On
        WSGIDaemonProcess pyramid threads=10
python-path=*/usr/local/pyramid/env_py3/lib/python3.4/site-packages/
*maximum-requests=10000        WSGIScriptAlias / /usr/local/pyramid/myapp
*/env_py3/myapp.wsgi*

        <*Directory /usr/local/pyramid/env_py3*>
          WSGIProcessGroup *pyramid*
          Require all granted
        </Directory>


myapp.wsgi says:

import os
os.environ['PYTHON_EGG_CACHE'] = '/usr/local/*pyramid/env_py3/.python-eggs'*

from pyramid.paster import get_app, setup_logging
ini_path = '/usr/local/pyramid/myapp/myapp/production.ini'
setup_logging(ini_path)
application = get_app(ini_path, 'main')



1. Directory. From apache 2.2 to apache 2.4, we now use Require all granted
to give access of apache to X folder.
*Which folder is that?*
Do I need to give apache access to :

*aa) /usr/local/pyramid/env_py3 (environment)*

*or*


*bb) /usr/local/pyramid/myapp (project folder)*
*2. Does the myapp.wsgi should be placed inside aa, or bb from above since *

*WSGIScriptAlias will be calling it?*


*3. Where does the .python-eggs file should be placed? aa, or bb? or is
this no longer required for python3 or should be replaced by something
else?*


*4. If I wanted to create a user on linux to run the files, what command
and options would I use to create that user in debian? adduser? useradd? I
would then use My configuration and add user=  "myapp_user" which is
running the whole show? Does that mean I should change permission for both
cc an dd?*
WSGIDaemonProcess pyramid threads=10
python-path=*/usr/local/pyramid/env_py3/lib/python3.4/site-packages/
*maximum-requests=10000 user=myapp_user

*cc)  chown -R myapp_user:*
*myapp_user /usr/local/pyramid/myapp*
*dd)  **chown -R **myapp_user:*
*myapp_user /usr/local/pyramid/env_py3*


*or only the env_py3? or ?*

*5. If I'm not using the user attribute, then the permissions for the app
should be www-data, not root correct?*
*ee)  chown -R www-data:**www-data*
* /usr/local/pyramid/myapp*
*ff)  **chown -R **www-data:*
*www-data /usr/local/pyramid/env_py3*



*Thank you*

*Lucas*



*--http://lucasmanual.com/ <http://lucasmanual.com/>*

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