I've installed Redmine but it won't show up properly on browser
Added by Network Database almost 14 years ago
Hi all. I've installed Redmine using the tutorial on this site but without installing subversion.
This tutorial is pretty similar to the Redmine's Installation guide here. However, after installing Redmine, I point my browser to http://202.x.x.x/redmine/ but it shows up like this:
!error redmine apache.PNG!
This is my virtualhost configuration: /etc/apache2/sites-available/default:
<VirtualHost *:80> bla bla bla </VirtualHost> <VirtualHost *:80> DocumentRoot /var/www/redmine/public PassengerPoolIdleTime 0 <Directory "/var/www/redmine/public"> PassengerEnabled on AllowOverride Options -MultiViews </Directory> LogLevel warn ErrorLog /var/log/apache2/redmine_error CustomLog /var/log/apache2/redmine_access combined </VirtualHost>
error_redmine_apache.PNG (35.1 KB) error_redmine_apache.PNG | Redmine Apache problem |
Replies (3)
RE: I've installed Redmine but it won't show up properly on browser
-
Added by Network Database almost 14 years ago
I forgot to tell that:
- it does show up properly in the browser when i test it using Webrick webserver
- I don't put in the line ServerName in the virtualhost configuration because my company doesn't yet purchase a domain name for this IP address (maybe my boss prefer this site to be semi-private)
Any help will be appreciated. Thanks in advance.
RE: I've installed Redmine but it won't show up properly on browser
-
Added by Felix Schäfer almost 14 years ago
I haven't had a look at the tutorial you've posted, but I see 2 things here:
- I think having 2 virtualhosts pointing to
*:80
won't work, i.e. only the first one you have defined will be picked up, which brings us to the second point - Don't put redmine into your www-root, you don't want people seeing the files of a webapp, and currently navigating to
/redmine/config/database.yml
should show you your DB connection details.
Ok, you seeing the contents of the redmine directory when navigating to /redmine
is because your first virtualhost is picked up, the second not. You will probably see redmine correctly if you go to /redmine/public
, but you should not let it configured like that. You should put your whole redmine directory (what you seem to have in /var/www/redmine
now) somewhere else than /var/www
, to /opt
for example, and make a symlink from /your/redmine/public
to /var/www/redmine
(so something like ln -s /your/redmine/public /var/www/redmine
. That may well already be enough for you to see redmine under /redmine
, come back here if not and I'll try to help your further.
RE: I've installed Redmine but it won't show up properly on browser
-
Added by Network Database almost 14 years ago
Thank you so much! I didn't know that the second VirtualHost *:80 would be ignored! (noob mistake, i'm just an intern) And yeah, i also move the redmine folder to /usr/share/redmine and created symlink in /var/www .
Following some codes here & there on this page . This is my latest virtualhost configuration /etc/apache2/sites-available/default:
<VirtualHost *:80> DocumentRoot /var/www . . . PassengerPoolIdleTime 0 <Directory "/var/www/redmine"> RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory> LogLevel warn ErrorLog /var/log/apache2/redmine_error CustomLog /var/log/apache2/redmine_access combined </VirtualHost>
Right now, i can browse through the "proper" view of Redmine by pointing the browser to http://202.x.x.x/redmine .
Thanks again.