Installing Redmine on (bluehost) shared hosting
Hi, here a script to install readmine 0.8.4 (www.readmine.org) on a shared host that offers ruby on rails. enjoy
#automatic install of redmine 0.8.4 (http://www.redmine.org/) on a shared server (tested on bluehost) # #AUTHOR: Marco Bernasocchi (http://www.bernawebdesign.ch) #LICENSE: http://www.gnu.org/licenses/gpl-3.0.html # #BEFORE starting: # - create an empty DB (using cpanel) and a DB user with full permissions on the db # - create a mail user used to send out mails (quota can be set to 1Mb since you just need to send mails with it) # - cd into the dir you want to install to. (for example /home/username/railsApps/redmine) # #AFTER (not mandatory): # - create a subdomain (in cpanel) for redmine and link it to the public folder in redmine # example: # delete the default created folder # rm -rf /home/username/public_html/redmine/ # create symlink to the public folder # ln -s /home/username/railsApps/redmine/public /home/username/public_html/redmine # now redmine is located at http://yoursubdomain.example.com # login: admin # passw: admin #set this vars # MY_DB="dbName" MY_DB_USER="dbUser" MY_DB_PASSW="dbPassw" MY_DOMAIN="example.com" MY_MAIL_SUBDOMAIN="mail." MY_MAIL_PORT="26" MY_MAILER="user+example.com" MY_MAILER_PASSW="mailPassw" # #get redmine 0.8.4 wget http://rubyforge.org/frs/download.php/56909/redmine-0.8.4.tar.gz tar zxvf redmine-0.8.4.tar.gz rm redmine-0.8.4.tar.gz mv redmine-0.8.4/* . rmdir redmine-0.8.4 # #use fastCGI dispatcher mv public/dispatch.fcgi.example public/dispatch.fcgi # #set some permissions chmod 700 public/dispatch.fcgi chmod 700 tmp chmod 700 log # #force production environnement sed 's|# ENV\[|ENV\[|g' config/environment.rb > TMPFILE && mv TMPFILE config/environment.rb # #create config/database.yml echo 'production:' > config/database.yml echo ' adapter: mysql' >> config/database.yml echo ' database: '$MY_DB >> config/database.yml echo ' host: localhost' >> config/database.yml echo ' username: '$MY_DB_USER >> config/database.yml echo ' password: '$MY_DB_PASSW >> config/database.yml echo ' encoding: utf8' >> config/database.yml # #create config/email.yml echo '# Outgoing email settings' > config/email.yml echo 'production:' >> config/email.yml echo ' delivery_method: :smtp' >> config/email.yml echo ' smtp_settings:' >> config/email.yml echo ' address: '$MY_MAIL_SUBDOMAIN$MY_DOMAIN >> config/email.yml echo ' port: '$MY_MAIL_PORT >> config/email.yml echo ' domain: '$MY_DOMAIN >> config/email.yml echo ' authentication: :login' >> config/email.yml echo ' user_name: '$MY_MAILER >> config/email.yml echo ' password: '$MY_MAILER_PASSW >> config/email.yml # #create app rake db:migrate RAILS_ENV="production" rake redmine:load_default_data RAILS_ENV="production"
If you plan to integrate with a repository don’t forget to check the settings>repositories tab, where it says “Fixing keywords”, it is a very cool function that allows you to automatically change the issue status by using keywords in the commit message.
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
[...] to install redmine follow my previous post, disable the “autofetch commits” option in the administration page [...]
cool, thanks for the post, I was looking into it too, so you saved me some work
Hey there, thanks very much for this write-up. It helped a great deal. I’m new to Ruby and just got this bluehost account. The installation script is awesome..
: ) that is one of the ways to think about this
I believe that it will be slower. A lot of eye candy has been added since the 8.04 release. I would suggest upgrading to Xubuntu, which is more lightweight.
You saved my day, thanks!
After I ran the script and tried the application on the browser I got an HTTP 500 error, it disappeared after I commented this line(config/environment.rb:8) :
#RAILS_GEM_VERSION = '2.1.2' unless defined? RAILS_GEM_VERSION[...] installing redmine on a bluehost server, and thanks to scripts like this one, most of everything is covered (except the RAILS_ENV=production rake [...]
I’ve been struggling to get SMTP setup on an old Rails 1.2.6 site that I have to migrate to BlueHost (not my choice). However, no matter what combination of settings I try I still get the error “Net::SMTPFatalError (550 No Such User Here)” I’ve tried both port 25 and 26, I’ve tried using mail.mydomain.com, mydomain.com and local host for the address, I’ve tried using username@… and username +… for the username. BlueHost tech support is useless at helping me with this. So frustrated, I’d switch hosts if it weren’t the fact that the client already shelled out money for an SSL cert with BlueHost and a “Pro” hosting account, and that this is just a temp site until their new one is finished.
New version of the bluehost installation fails, preventing access,
please help me
[...] Knowledge Base Berna Web Design This entry was posted in Redmine, Web-based Software. Bookmark the permalink. ← Igniting [...]
[...] installing redmine on a bluehost server, and thanks to scripts like this one, most of everything is covered (except the RAILS_ENV=production rake [...]
I did above mentioned all the steps, all the steps commands executed without any error, then i tried to access the url its show folder structure. how can i access it. i strongly believe some thing is missed in the above steps/…