If someone like me Googles this and finds this thread here's how to sort 
out the static issues:

You want to have run "mayan-edms.py collectstatic" like it says in the 
guide then you want to do this:

$ ln -s 
> /opt/mayan/venv/local/lib/python2.7/site-packages/mayan/media/static 
> /var/www/django/mayan-edms/static


and then adding this to my apache vhost file:

       Alias /static /var/www/django/mayan-edms/static
>         <Location "/static">
>                 SetHandler None
>         </Location>


You could probably get away with not having to do a symlink like that but 
it's up to you.

Thanks for the guide btw.

On Saturday, 13 September 2014 16:54:08 UTC+1, Mathias Behrle wrote:
>
> * Gary D Walborn: " Re: [Mayan EDMS: 815] Mayan-EDMS on Ubuntu 14.04 with 
>   apache2" (Wed, 3 Sep 2014 11:09:36 -0700 (PDT)): 
>
> Hi Gary, 
>
> > UPDATE:  After much experimentation, I got this set up under apache. 
>  When 
> > searching for results, I found may inconsistencies that seem to arise 
> from 
> > differences in platform, differences in versions, and differences in the 
> > desired result.  Nonetheless, I was able to get the mod_wsgi setup to 
> work 
> > and it now launches Mayan-EDMS sessions from apache.  I have just one 
> small 
> > remaining problem.  When I first got things working, I would get the 
> text 
> > of the web pages, but none of the icons and images.  I finally managed 
> to 
> > get the static items to be served and the web pages look great EXCEPT 
> for 
> > the original login page which doesn't seem to get any static files 
> served.   
> > Once the user logs in, everything looks beautiful.  ONLY the login 
> screen 
> > seems to be affected.  Can anyone explain this strange behavior?   
>
> Finally deployed mayan 1.0 in production on my own site and now can answer 
> to 
> your question just in case you didn't find the solution yourself so far. 
>
> The solution is to add the directive for static files to your apache 
> configuration. I see from your pdf, that you defined an alias 
>     Alias /media /var/www/django/mayan-edms/media 
>
> Since mayan is requesting those static files 
> like /static/packages/animate-custom.css you should define an alias like 
>     Alias /static /var/www/django/mayan-edms/media/static/ 
>
> (not absolutely sure about the final /static, because I am no more using 
> apache, 
> but AFAIR this should be correct for apache). 
>
> HTH, 
> Mathias 
>
>
>
> -- 
>
>     Mathias Behrle 
>     PGP/GnuPG key availabable from any keyserver, ID: 0x8405BBF6 
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Mayan EDMS" 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