redmine with apache on default port (80)
Added by Gulab Pasha about 14 years ago
Hi,
I have redmine installed successfully and it is working fine with port 3000. I want to configure redmine with apache using port 80.
I tried using passenger but not succeed.
I'm using ubuntu 10.04 server. Please help.
Thanks,
Gulab Pasha
Replies (4)
RE: redmine with apache on default port (80) - Added by Felix Schäfer about 14 years ago
Gulab Pasha wrote:
I tried using passenger but not succeed.
What have you tried, what did not work?
RE: redmine with apache on default port (80) - Added by Gulab Pasha about 14 years ago
Thanks for your reply, I have tried the installation method given by redmine forum,
Please find it below
Configuring the Passenger Apache module
Passenger is a module for apache2 that allow apache to run ruby on rails applications. Install it thus:
$ sudo gem install passenger
Then go to the passenger apache2 module installation directory and run passenger-install-apache2-module
$ cd /var/lib/gems/1.X/gems/passenger-X.X.X/
$ sudo bin/passenger-install-apache2-module
Next, configure Apache:
In /etc/apache2/mods-available/passenger.load we will add next line
LoadModule passenger_module /var/lib/gems/1.X/gems/passenger-X.X.X/ext/apache2/mod_passenger.so
We have to edit the conf of the passenger apache2 module in /etc/apache2/mods-available/passenger.conf
PassengerRoot /var/lib/gems/1.X/gems/passenger-X.X.X PassengerRuby /usr/bin/ruby1.X
And now we active the module
$ sudo a2enmod passenger
Apache virtualhost for redmine web app
<VirtualHost *:80>
ServerName redmine.sfdlabs.com
DocumentRoot /var/www/redmine/public
LogLevel warn
ErrorLog /var/log/apache2/redmine_error
CustomLog /var/log/apache2/redmine_access combined
<Directory /var/www/redmine/public>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
</VirtualHost>
Note:
I'm unable to find the location of the passenger module (LoadModule passenger_module /var/lib/gems/1.X/gems/passenger-X.X.X/ext/apache2/mod_passenger.so)
And I'm unable to find the passenger root location (PassengerRoot /var/lib/gems/1.X/gems/passenger-X.X.X PassengerRuby /usr/bin/ruby1.X)
Looking forward to your support.
Thanks,
RE: redmine with apache on default port (80) - Added by Felix Schäfer about 14 years ago
Please look for a passenger install guide for your specific distribution, Ubuntu/Debian has the bad habit of doing a lot of stuff a little different than everyone else, and I'm not sure I would be able to help much. Alternatively, you could also follow the official install guide from passenger.
RE: redmine with apache on default port (80) - Added by Glenn Gould about 14 years ago
I'm unable to find the location of the passenger module (LoadModule passenger_module /var/lib/gems/1.X/gems/passenger-X.X.X/ext/apache2/mod_passenger.so)
Try using locate mod_passenger.so to find it on your machine (maybe you'll need to install "locate" first and do updatedb)
And I'm unable to find the passenger root location (PassengerRoot /var/lib/gems/1.X/gems/passenger-X.X.X PassengerRuby /usr/bin/ruby1.X)
When successfull with finding the mod_passenger.so, you also have the PassengerRoot Path (on my system /var/Lib/gems/1.8/passenger-2.2.9)
PassengerRuby is the path to your local ruby installation, on my system for example /usr/bin/ruby1.8
Looking forward to your support.
For further help, try to visit the passenger install guide like Felix has already advised.