Changes between Version 2 and Version 3 of UoL LAMP HowTo Install Python Flask Applications


Ignore:
Timestamp:
10/07/15 13:26:26 (9 years ago)
Author:
Richard Bramley
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UoL LAMP HowTo Install Python Flask Applications

    v2 v3  
    7373
    7474{{{
    75 <Directory /local/telomere>
    76     WSGIProcessGroup telomere
     75<Directory /local/{application directory}>
     76    WSGIProcessGroup {application name}
    7777    WSGIApplicationGroup %{GLOBAL}
    7878    Order deny,allow
     
    8080</Directory>
    8181
    82 WSGIDaemonProcess telomere user=wwwrun threads=5 python-path=/local/telomere/BASELINE/lib/python2.6/site-packages:/local/python:/usr/lib64/python2.6/site-packages:/usr/share/doc/packages/ home=/local/telomere/
    83 WSGIScriptAlias / /local/telomere/app/telomere.wsgi
     82WSGIDaemonProcess {application name} user=wwwrun threads=5 python-path=/local/{application directory}/BASELINE/lib/python2.6/site-packages:/local/python:/usr/lib64/python2.6/site-packages:/usr/share/doc/packages/ home=/local/{application directory}/
     83WSGIScriptAlias / /local/{application directory}/{path to *.wsgi}
    8484}}}
    8585
     
    94949. Pray.
    9595
    96 == Other Possible Stuff
     96== Other Possible Stuff (**Not required last time used!**)
    9797
    98 1. You may need to give `wwwrun` extra permissions to the `/local/telomere` directory.
     981. You may need to give `wwwrun` extra permissions to the `/local/{application directory}` directory.
    99992. You might need to pray a bit more.
    100100
    101 == Permission to Upload Directory
    102 
    103 1. In order to upload spreadsheets, you need to create an upload directory, for example `/local/telomere/uploads`.
    104 2. You then need to point to this in the settings.py file `SPREADSHEET_UPLOAD_DIRECTORY = '/local/telomere/uploads'`
    105 3. Finally, you need to give `wwwrun` permission to read and write to the directory.
    106 
    107101{{{
    108 setfacl -m u:wwwrun:rwx /local/telomere/uploads/
    109 setfacl -m d:u:wwwrun:rwx /local/telomere/uploads/
     102setfacl -m u:wwwrun:rwx /local/{application directory}
     103setfacl -m d:u:wwwrun:rwx /local/telomere/{application directory}
    110104}}}
    111105