[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Starting, installing Redmine



On 08/19/2015 10:17 PM, tomas@tuxteam.de wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Aug 19, 2015 at 06:55:46PM -0700, Gary Roach wrote:
On 08/19/2015 12:52 PM, Alex Mestiashvili wrote:
[...]

8. cp /usr/share/doc/redmine/examples/apache2-passenger-alias.conf
/etc/apache2/sites-available/
AND WHERE DOES IT SAY TO DO THIS. Fixed
This might be a bug in the documentation. OTOH, if you could do steps
9-10, /etc/apache2/sites-available/apache2-passenger-alias.conf
must have been present, because basically:
When I got to step 8, I actually fixed the problem by doing the cp that you suggested.
After that I could do the rest of the steps without errors.
9. a2ensite apache2-passenger-alias
   just symlinks /etc/apache2/sites-available/apache2-passenger-alias.conf
   to /etc/apache2/sites-enabled. The command would have probably complained
   about the missing file in sites-available.

10. edit
/etc/apache2/sites-available/apache2-passenger-alias.conf, set
servername to localhost
You couldn't have done this unless the file in (8) already had been
present.

OK -- to help debug that, could you please try the following:

- - list the directory /etc/apache2/sites-enabled and make sure that
   there is an entry apache2-passenger-alias.conf there (and that
   this entry is a simlink to the file of the same name in
   /etc/apache2/sites-available)?

- - show us the content of this file?

I'm sorry that I haven't access to a Jessie system at the moment,
otherwise I'd try out myself

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlXVYtkACgkQBcgs9XrR2kYq2ACfdPgAJM8AedNlGc7tWMlgX8L0
AfAAn3qVPtiYrepu3fIQ9YTAeepD/FA3
=FLrC
-----END PGP SIGNATURE-----

content of /etc/apache2/sites-enabled
root@supercrunch:/etc/apache2/sites-enabled# ll
total 0
lrwxrwxrwx 1 root root 35 Apr 28 00:22 000-default.conf -> ../sites-available/000-default.conf lrwxrwxrwx 1 root root 47 Aug 19 18:42 apache2-passenger-alias.conf -> ../sites-available/apache2-passenger-alias.conf lrwxrwxrwx 1 root root 31 Aug 17 19:37 redmine.conf -> ../sites-available/redmine.conf

And content of /etc/apache2/sites-available
root@supercrunch:/etc/apache2/sites-available# ll
total 20
-rw-r--r-- 1 root root 1472 Aug 19 12:33 000-default.conf
-rw-r--r-- 1 root root  739 Aug 19 18:43 apache2-passenger-alias.conf
-rw-r--r-- 1 root root 6437 Feb  1  2015 default-ssl.conf
-rw-r--r-- 1 root root  529 Aug 19 12:53 redmine.conf

And the content of apache2-passenger-alias.conf
# The passenger module (from the libapache2-mod-passenger package) must be
# enabled
<VirtualHost *:80>
    # ServerName localhost
    # this is the passenger config
    RailsEnv production
    SetEnv X_DEBIAN_SITEID "default"
    SetEnv RAILS_RELATIVE_URL_ROOT "/redmine"
    PassengerDefaultUser www-data
    # apache2 serves public files
Alias "/redmine/plugin_assets/" /var/cache/redmine/default/plugin_assets/
    Alias "/redmine" /usr/share/redmine/public
    <Location /redmine>
        PassengerBaseURI /redmine
        PassengerAppRoot /usr/share/redmine
    </Location>
    <Directory "/usr/share/redmine/public">
        Allow from all
        Options -MultiViews
        Require all granted
    </Directory>
</VirtualHost>

I hope this helps

Gary R,


Reply to: