Project

General

Profile

No CSS or Javascript on redmine under ubuntu

Added by Sylvain Lefebvre over 13 years ago

Hello everybody,
I am currently trying to set up a redmine installation on an ubuntu 10.10 box with apache and Passenger (with this procedure: http://www.redmine.org/projects/redmine/wiki/HowTo_Install_Redmine_in_Ubuntu).
The site is fully functionnal but CSS styling seems to be disabled.
I have seen several posts on this topic, but the different workarounds don't in my case:
- i have passenger so there is no .htaccess file with rewriting rules.
- seems like i have the right rails version (2.3.5)

here is my RAILS_ENV=production script/about

./script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:119:Warning: Gem::Dependency#version_requirements is deprecated and will be removed on or after August 2010. Use #requirement
About your application's environment
Ruby version 1.8.7 (x86_64-linux)
RubyGems version 1.3.7
Rack version 1.1
Rails version 2.3.5
Active Record version 2.3.5
Active Resource version 2.3.5
Action Mailer version 2.3.5
Active Support version 2.3.5
Edge Rails revision unknown
Application root /usr/share/redmine
Environment production
Database adapter mysql
Database schema version 20100705164950

Moreover, adding
Redmine::Utils::relative_url_root = "/redmine"
in additionnal_environment.rb makes the site crash,
and enabling or desabling mod_rewrite in apache does not change anything.

Here my /etc/apache2/sites-available/default file:

<VirtualHost *:80>
ServerAdmin mcube@localhost
ServerName localhost

DocumentRoot /var/www/
PassengerAppRoot /usr/share/redmine
&lt;Directory /var/www&gt;
Allow from all
&lt;/Directory&gt;
&lt;Directory /var/www/redmine&gt;
RailsBaseURI /redmine
RailsEnv production
Options -MultiViews
AllowOverride None
Order deny,allow
Allow from all
&lt;/Directory&gt;
ErrorLog /var/log/apache2/error.log
LogLevel warn
CustomLog /var/log/apache2/access.log combined
&lt;/VirtualHost&gt;

Thanks in advance for your help.


Replies (1)

RE: No CSS or Javascript on redmine under ubuntu [SOLVED] - Added by Sylvain Lefebvre over 13 years ago

hello

Finally adding this line:

Alias /redmine /var/www/redmine/public

in /etc/apache2/sites-available/default file solved this issue.
Sorry for the inconvenince of this post. Great software by the way.

    (1-1/1)