PDA

View Full Version : Failing to Set up Rails (Gloriously)


Groat
05-30-2007, 06:05 PM
Hello,

I've been trying today without much success to get a rails application up and running; I've set up a folder in /var/www/madnesslabs/ as my install (/var/www/>rails madnesslabs) and took my old /var/www/html/ folder and renamed it to replace that with:
/var/www/>ln -s /var/www/madnesslabs/public/ html
(creating a link to html from there).
I've configured the .htaccess file with everything referred to on the wiki:
http://guide.apisnetworks.com/index.php/Rails
I've set the permissions for everything to be 755, yet this just refuses despite all efforts to resolve http://www.madnesslabs.com/ to be anything but an error 403.

According to all the instructions seen everywhere, I'm doing the right thing, so any idea where I might have gone horribly wrong? When I flip it back to the prior folder (just mv-ing my link to html.lk and my html.old back to html) I can display the prior content that I had up just fine, so I know that I can hit the content at least; it just seems really unhappy with attempting to display anything deployed by my rails setup.

I just configured Rails on the account today through the control panel and the install went through fine and it is perfectly competent at generating files at least. I'm at a bit of a loss on what to try next to get it to function.

Thanks!

Groat
05-30-2007, 06:13 PM
Hmmm, either it has been adjusted or this literally just takes waiting about twenty minutes to turn active. At least it is displaying now.

Matt
05-30-2007, 06:14 PM
/\ - Or I corrected it :P

Your html/ link needs to be relative, not absolute. html should point to madnesslabs/public/ and not /var/www/madnesslabs/public/. Changed that around and you should be fine now.

Groat
05-30-2007, 06:16 PM
Excellent - yep, that's all it was, and makes sense; from a security standpoint it wouldn't have access to the full path, so it would have to be relative. Much appreciated!