Hi Dale,

The static settings you mention actually have to do with js/css/image files
that are part of the code base, for example background images on the
homescreen, or logos. The file uploads you are talking about are handled
with the MEDIA settings. I think that the default settings should be ok,
but adding another line to your Apache config file should help.

First, look on the server and make sure that the jpg files themselves have
actually been uploaded. I'm guessing they are in
/opt/Projects/mehs/mehs/uploadedfiles.

Assuming they are there, add this line to your apache config file and then
restart apache:

Alias /files/ /opt/Projects/mehs/mehs/uploadedfiles/

If that doesn't work, try tail /var/log/apache2/error.log to see if apache
is recording any errors. It's possible that you may have to add another
block to the config file that explicitly give apache access to that
uploadedfiles directory just like you have already done for the static
directory.

Adam

On Thu, Feb 21, 2019 at 4:34 AM Dale Lloyd <[email protected]> wrote:

> Images for resource reports (under Information Carrier) have stopped
> working on our Arches site.
>
>
> http://maldivesheritagedata.oxcis.ac.uk/report/c40118dc-bfeb-11e8-a7ea-005056ad8063
>
> I have installed Arches on Ubuntu 16.04 using the setup script
> <https://github.com/archesproject/arches/blob/master/arches/install/ubuntu_setup.sh>
> and set up Apache using the instructions here
> <https://arches.readthedocs.io/en/stable/serving-arches-with-apache/>.
>
>
> http://maldivesheritagedata.oxcis.ac.uk/files/uploadedfiles/Isdhoo_Lomaafaanu_2.JPG
> is stored in /opt/Projects/mehs/mehs/uploadedfiles/Isdhoo_Lomaafaanu_2.JPG
>
> /etc/apache2/sites-enabled/000-default.conf contains the following:
>
> WSGIDaemonProcess arches python-path=/opt/Projects/mehs/mehs:/opt/Projects
> /ENV/lib/python2.7/site-packages
> WSGIScriptAlias / /opt/Projects/mehs/mehs/wsgi.py process-group=arches
>
>
> <Directory /opt/Projects/mehs>
>         Options Indexes FollowSymLinks
>         AllowOverride None
>         Require all granted
> </Directory>
>
>
> Alias /static/ /opt/Projects/mehs/mehs/static/
> <Directory /opt/Projects/mehs/mehs/static>
>         Options Indexes FollowSymLinks
>         AllowOverride None
>         Require all granted
> </Directory>
>
>
> settings.py contains:
>
> STATIC_ROOT = "/opt/Projects/mehs/mehs/static"
> STATIC_URL = "/static/"
>
>
> STATIC_ROOT = os.path.join(PACKAGE_ROOT, 'static') does not work
>
>
> Hope that somebody can help.
>
> --
> -- To post, send email to [email protected]. To unsubscribe,
> send email to [email protected]. For more
> information, visit https://groups.google.com/d/forum/archesproject?hl=en
> ---
> You received this message because you are subscribed to the Google Groups
> "Arches Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
-- To post, send email to [email protected]. To unsubscribe, send 
email to [email protected]. For more information, 
visit https://groups.google.com/d/forum/archesproject?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Arches Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to