Redmine + MySQL + Apache2 in Ubuntu

    技术2022-05-18  9

     

    Preparation

    sudo aptitude install apache2

    sudo aptitude install libapache2-mod-passenger

    sudo aptitude install mysql

    sudo aptitude install redmine

     

     

    Configuration

    $ sudo ln -s /usr/share/redmine/public /var/www/redmine

    By default, passenger runs as 'nobody', so you'll need to fix that. In /etc/apache2/mods-available/passenger.conf, add:

    PassengerDefaultUser www-data

    You'll also need to configure the /var/www/redmine location in /etc/apache2/sites-available/default by adding:

    <Directory /var/www/redmine> RailsBaseURI /redmine PassengerResolveSymlinksInDocumentRoot on </Directory>

    Enable passenger:

    $ sudo a2enmod passenger

    Restart apache2 and you should be able to access Redmine at: http://redmine.server.ip.address/redmine

    If you receive a "403: Forbidden" error after setting up Redmine, the Redmine 'public' folder may have incorrect permissions set. The executable bit on the public folder must be enabled or you will receive a "403: Forbidden" error when attempting to access Redmine.

     


    最新回复(0)