Changes between Version 2 and Version 3 of UoL LAMP HowTo Install Python Flask Applications
- Timestamp:
- 10/07/15 13:26:26 (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
UoL LAMP HowTo Install Python Flask Applications
v2 v3 73 73 74 74 {{{ 75 <Directory /local/ telomere>76 WSGIProcessGroup telomere75 <Directory /local/{application directory}> 76 WSGIProcessGroup {application name} 77 77 WSGIApplicationGroup %{GLOBAL} 78 78 Order deny,allow … … 80 80 </Directory> 81 81 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.wsgi82 WSGIDaemonProcess {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}/ 83 WSGIScriptAlias / /local/{application directory}/{path to *.wsgi} 84 84 }}} 85 85 … … 94 94 9. Pray. 95 95 96 == Other Possible Stuff 96 == Other Possible Stuff (**Not required last time used!**) 97 97 98 1. You may need to give `wwwrun` extra permissions to the `/local/ telomere` directory.98 1. You may need to give `wwwrun` extra permissions to the `/local/{application directory}` directory. 99 99 2. You might need to pray a bit more. 100 100 101 == Permission to Upload Directory102 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 107 101 {{{ 108 setfacl -m u:wwwrun:rwx /local/ telomere/uploads/109 setfacl -m d:u:wwwrun:rwx /local/telomere/ uploads/102 setfacl -m u:wwwrun:rwx /local/{application directory} 103 setfacl -m d:u:wwwrun:rwx /local/telomere/{application directory} 110 104 }}} 111 105