Installation troubleshooting on ubuntu 16 and apache
Added by Jean-Michel Bain over 7 years ago
Trying to install on a fresh ubuntu server on OVH, I fail to start redmine.
I don't get any error message in logs, just a 404 not found when trying to access to http://vps446621.ovh.net/redmine
If somebody can give me ideas, even if it's just an indication about how to get what's the f**k is going on, it would be appreciable...
- /var/log/apache2/error.log (the only trace I have of whatever occurs relating to my problem)
[ 2017-08-21 11:58:17.1973 10268/7f50f1306780 age/Ust/UstRouterMain.cpp:537 ]: Starting Passenger UstRouter...
[ 2017-08-21 11:58:17.1980 10268/7f50f1306780 age/Ust/UstRouterMain.cpp:350 ]: Passenger UstRouter online, PID 10268
[Mon Aug 21 11:58:17.198924 2017] [mpm_event:notice] [pid 10256:tid 140432021657472] AH00489: Apache/2.4.18 (Ubuntu) Phusion_Passenger/5.1.7 configured -- resuming normal operations
What I tried :
- apt-get install redmine
- wikis and forums found with google and providing step-by-step guides and wiki pages, included redmine wiki
This is probably due to a problem in apache/ruby/passenger configuration, but I can't figure out from where.
Ubuntu is ok (xenial 16.04) Mysql (5.7.19-0ubuntu0.16.04.1) runs normally, apache (2.4.18-2ubuntu3.4) also.
The configuration files :
- /etc/apache2/sites-available/redmine.conf :
<VirtualHost *:80>
ServerName vps446621.ovh.net
DocumentRoot /var/www/redmine
<Directory /var/www/redmine>
AllowOverride all
Order allow,deny
allow from all
Options -MultiViews
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error_redmine.log
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access_redmine.log combined
</VirtualHost>
- /etc/apache2/mods-enabled/passenger.conf :
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /var/lib/gems/2.3.0/gems/passenger-5.1.7
PassengerDefaultRuby /usr/bin/ruby2.3
</IfModule>
- /etc/apache2/mods-enabled/passenger.load :
LoadModule passenger_module /var/lib/gems/2.3.0/gems/passenger-5.1.7/buildout/apache2/mod_passenger.so
Replies (1)
RE: Installation troubleshooting on ubuntu 16 and apache - Added by Jean-Michel Bain over 7 years ago
After reinstalling the server from scratch, it works with the following sequence of instructions.
apt-get upgrade
apt-get update
apt-get install mysql-server
apt-get install apache2 libapache2-mod-passenger
apt-get install mysql-client
apt-get install redmine redmine-mysql
gem update
gem install bundler
vi /etc/apache2/mods-available/passenger.conf
<IfModule mod_passenger.c>
PassengerDefaultUser www-data
PassengerRoot /usr/lib/ruby/vendor_ruby/phusion_passenger/locations.ini
PassengerDefaultRuby /usr/bin/ruby
</IfModule>
ln -s /usr/share/redmine/public /var/www/html/redmine
vi /etc/apache2/sites-available/000-default.conf
<Directory /var/www/html/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory>
touch /usr/share/redmine/Gemfile.lock
chown www-data:www-data /usr/share/redmine/Gemfile.lock
service apache2 restart