ericpaulbishop / redmine_git_hosting

A ChiliProject/Redmine plugin which makes configuring your own git hosting easy.
186 stars 37 forks source link

Install Guide Additions #146

Open tjasond opened 12 years ago

tjasond commented 12 years ago

Hello,

First of all, thanks for developing this plugin and taking the time to write such a thorough installation guide. I decided to pass along a couple of suggestions based on a recent Ubuntu 11.10 installation:

sudoers

Changes made to this file must be made at the very end of the file in Ubuntu; otherwise the line starting with "admin ..." negates the earlier changes.

www-data user

We found out that in our case, the user that was being used to invoke the Redmine process was actually our main user account that was used to install the Passenger mod. This can be determined by running:

ps -Af | grep redmine

after Apache has been started. The user listed as owning the Redmine process is the one that needs to be used in place of all occurrences of "www-data" in the guide.

Also, no edits to the PATH were needed.

For reference, our base setup consisted of the following packages: lamp-server, ruby, passenger, and redmine 1.3 (manually, not synaptic).

three18ti commented 12 years ago

This is actually a functionality of Passenger, specifically UserSwitching,

http://www.modrails.com/documentation/Users%20guide%20Apache.html#user_switching

The correct way to solve this problem is to set the ownership of redmine/chiliproject_root/config/enviornment.rb to that of the user you wish to run the application (in this case www-data).

EDIT: Unless you want redmine to run as the redmine user. In which case, you are correct, replace all instances of www-data with redmine.