TwistMyArm

Members
  • Posts

    9
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by TwistMyArm

  1. Thanks Brian. I actually needed to go to 2.3.5, with Rack 1.0.1. According to the installed gems page, Rack 1.0.1 was already there. As far as the version of Rails is concerned, I couldn't see it on the search page (I'm assuming the list is limited in length somehow, and there's so many things with the word 'Rails' in it that the list was finished before getting to Rails itself). I tried to get my hands dirty with gem on the CLI, but couldn't install the required version there, either. Instead, I'm just going to assume the difference between the required version (2.3.5) and the one I currently have (2.3.3) is not that important Thanks for your help, nonetheless.
  2. Hi all, According to I should be able to update the version of Rails that my account is using. However, I have looked at the Rails page and can't see how to do this. I have no Ruby experience... I just throw my stuff together until it sticks. If anyone can tell me how to do this upgrade, I'd really appreciate it. Thanks.
  3. Hi Tony / Darren, So I've only just around to looking at this myself and so I have a really stupid question... I'm looking at the RVSkin, 'Ruby on Rails' and I can't for the life of me work out how to actually update Rails. Any hints on that please? Thanks
  4. OK, so for anyone else that is trying to follow this, I just wanted to write down all of the steps that I took to get Redmine working. It may be possible to cut it down somewhat, but it works. One last time: thanks to everyone for the help. ---------------------------------------- At the moment, 0.8.5 is the latest version: that is the one that I will refer to. The following assumes that you will be installing Redmine such that it runs from a subdomain (without a subdirectory)... 1) Get SSH access for your account 2) Open your cPanel interface 3) Create a database (I named my 'redmine', which resulted in a database actually called myusername_redmine) 4) Create a database user (I named my 'redmine', which resulted in a user actually named myusername_redmine) 5) Give the new user full rights to the new database 6) Create a subdomain (I used code.mydomain.com, which resulted in a directory being created at ~/public_html/code) 7) Create a Rails application named 'redmine' 8) Stop the newly created application (if it's running) 9) Download the file redmine-0.8.5.tar.gz from http://rubyforge.org/frs/?group_id=1850 10) Upload the redmine-0.8.5.tar.gz file to your home directory on the Hawkhost server 11) Open your SSH interface 12) Switch to the ~/etc/rails_apps/redmine directory 13) Delete everything in the directory: rm -rf * 14) Copy redmine-0.8.5.tar.gz from your home directory to ~/etc/rails_apps/redmine 15) Extract the file: tar -zxvf redmine-0.8.5.tar.gz 16) Switch into the redmine-0.8.5 directory and move everything to the parent directory: mv * .. 17) Switch back to the parent directory and remove the now empty redmine-0.8.5 directory: rmdir redmine-0.8.5 18) Copy the example database YML file: cp config/database.yml.example config/database.yml 19) Open config/database.yml in your editor of choice 20) Find the section that looks like: production: adapter: mysql database: redmine host: localhost username: redmine password: my_password and set the correct value for the 'database' line, the 'username' line and the 'password' line. 21) Save the file and exit back to the command line. 22) Create the database structure: rake db:migrate RAILS_ENV="production" 23) Add the default configuration data: rake redmine:load_default_data RAILS_ENV="production" 24) Switch to cPanel 25) Add a rewrite for the Redmine application: on the Rails application page, click 'Create a Rewrite' for the Redmine application. On the next page, change the dropdown so that it has the correct subdomain selected. Leave the text box empty and click 'Save'. 26) Start the Redmine application 26) Switch to SSH 27) Edit the .htaccess file in the directory that was originally created for your subdomain. In my case, this is the ~/public_html/code/.htaccess file. 28) After the line: RewriteRule ^/?$ "http://127.0.0.1:12012%{REQUEST_URI}" [P,QSA,L] add the line: RewriteRule ^(.*)$ "http://127.0.0.1:12012%{REQUEST_URI}" [P,QSA,L] 29) Save the file and exit back to the command line. 30) Send your browser to the subdomain you created and see your Redmine application running. Default username is 'admin', default password is 'admin'.
  5. Well I've found a solution Firstly, I just want to say that: a) this may not be the right way to do it; and it may only apply to my situation (that is the one where I had the subdomain being redirected to the appropriate port) Remembering that the subdomain was already pointing into a subdirectory on the main site, I had a look in that directory to see if anything popped out. In that directory was a .htaccess file, with the following rewrite rule: RewriteRule ^/?$ "http://127.0.0.1:12012%{REQUEST_URI}" [P,QSA,L] That kind of looked suspicious: why was it only redirecting the call to the root? So I added: RewriteRule ^(.*)$ "http://127.0.0.1:12012%{REQUEST_URI}" [P,QSA,L] straight after it and voila, it seems to work. I'm going to essentially delete everything tonight and try it all again, though, and document it all correctly. Before I do that, though, does anyone see any problems with what I did? Thanks to all for your tips and comments! Lincoln.
  6. Tony: as per usual, that makes a lot of sense I'm guessing this is the problem that I saw this evening: I created a redirect as a subdirectory under my main domain (that is to say, http://mydomainname/redmine ) but hitting that subdirectory, I got a 404. After that, I tried defining a subdomain (code.mydomainname) and then set the rewrite for the application to the root of that subdomain. That worked, for the basic front page... unfortunately all of the links, the stylesheets and all that still return a 404. I really appreciate your help, guys, but I'm wondering if I'm just a little in over my head trying to sort this out
  7. Thanks for the links etc. I was able to get fairly far myself last night, but I too started butting heads against port 12xxx timing out. I've pulled together a heap of 'stuff' from around the web so I'm just about to start trying again tonight. Suffice to say if I find anything I will let all know. Just to be clear where I experienced my issue: in the "Available Ruby on Rails Applications" table I had an entry for Redmine and there was a link there ("URL") in the "Rails Server" column to http://myservername:12012 . Following that link, though, the page timed out. I'm assuming the rewrite wouldn't help that, right? Like I say, I'm going to check a few more things tonight and see if I can crack this egg. As always, thanks to all for the help!
  8. Cool, well thanks for the notes guys. I guess I'll start out with getting SSH / shell access and go from there, then @Cody: I'll definitely try and keep some notes and write up some documentation here, too, unless mistermartin75 beats me to it. Just out of curiosity: as I'm going along, if I have any problems is it better to ask in the forums, or as support tickets? Unfortunately I think I'm one of those guys that knows just enough to get into trouble!
  9. Hi all, I'm looking to install Redmine on my shared hosting account. It's a Ruby application quite similar to Trac but support for multiple projects etc. Firstly, I guess, the question is: has anyone here installed Redmine before? If so, can you give me some pointers on how to go about doing it? If not, I can always muddle through things myself If that is to be the case, though, do I need to organise shell access to install the application, or is there some way to do it through cPanel? Any hints, tips, pointers or suggestions for a better place to ask here are more than welcome. Thanks!