I just updated the demo server to 1.2, and then updated one of the apps. I when through the steps outlined
Installing Apps in Production docs including running
python setup.py install, and running chown -R apache:apache /var/www/tethys/. However, after installing the app I would get an internal server error. After digging around a bit I realized that most of the other apps where only linked rather than copied into the src code, so I ran through the installation steps again but this time ran python setup.py develop and it worked.
This is what I think is happening:
- When running python setup.py install as root, the app source files are copied from /var/www/tethys/apps/ to /usr/lib/tethys/src/tethys_apps/tethysapp/ and are owned by root
- Running chown -R apache:apache /var/www/tethys/ therefore has no effect on the copied files
- However, if the source files are linked then changing the ownership of /var/www/tethys/ would give the apache user access to those files, and that's why it worked for me
If I'm understanding correctly then I think that step 7 of the the docs need to be updated to:
chown -R www-data:www-data /var/www/tethys/apps/ to /usr/lib/tethys/src/tethys_apps/tethysapp/
I'm happy to put in an issue and make the change, but I just wanted to be sure I was understanding things correctly first.