View Full Version : Changing root to become a sub folder
03-07-2006, 01:17 AM
Currently I have a folder inside my main website that acts as the root for my addon domain, it all works and is fine.
However, the site for the addon domain is a ruby app and therefore requires the
route to be the sub folder public.
I tried setting this up in the addon domain section in the control
panel but I believe it errored on it's attempt at creating the
subdomain because it has a forward slash in it.
Any ideas on how I can solve this?
03-08-2006, 05:46 AM
I don't understand why you need a /public in the subdomain portion of a url.
03-08-2006, 05:48 AM
i don't. and that's the problem. i want the route of my addon domain to be a subfolder of a subfolder (i.e. public_html/addondomain/public ). the automated control panel process is attempting to use that path as a subdomain, which i don't even want!
03-09-2006, 03:24 PM
so my ticket was upgraded to critical.
"Your ticket has been escalated to an admin who will be able to tell you if the root for the site can be changed. You should get an answer this morning. The ticket has been set to critical priority so you should get an answer back today."
unfortunately that was the morning of the 8th and i still have no answer. my ticket was opened last sunday.
03-10-2006, 12:47 PM
this is getting beyond the joke now.
my response after all the waiting was as follows...
" Please make sure you have followed these instructions found in our Knowledgebase;"
and then he pasted in the ruby on rails page info from the knowledge base!!!
03-10-2006, 01:16 PM
I've basically stopped trying for now. I want to learn RoR, not waste my time learning how to instal fgci and fidget w/bluehost issues.
Have you called them to explain the problem?
03-11-2006, 06:36 AM
ok i've finally got some real help from support (from Stephen) and he's been great and has done the initial creation of the ruby app for me.
What I didn' realise was that the application needs to sit in the directory below public_html. You then create a symbolic link to your site root folder.
There are still two problems though. :-(
To get to my application I have to type domain.com/app/ when all i want to type is domain.com
and secondly i am getting an application error saying rails application failed to start properly.
i ran ./dispatch.cgi in the shell and i get an error saying production database is not configured. so i am guessing my database.yml file is not set up correctly.
it looks like this:
are those correct?
i have looked at the logs and they are empty. so i have ensured the permissions allow for them to be written to. but no luck.
i read somewhere that clearing your cookies is necessary when switching to fast cgi. but that didn't work.
changing the htaccess file to use plain old cgi brings a different error. it says it can't find public/index.html which isn't surprising because i've deleted it. my routes.rb file points to a different page so it shouldn't be looking there.
03-13-2006, 04:14 AM
ok so i solved problem #1 i deleted my addon domain folder and created the symbolic link straight to that, as oppose to the /app symbolic link that was set up.
but still i'm getting the application error saying rails has failed to start.
03-17-2006, 10:09 AM
I figured it out!
When I was uploading my public folder it wasn't granting execute permissions on dispatch.cgi, dispatch.fcgi and dispatch.rb - as soon as I changed those it worked perfectly!!!!
03-17-2006, 10:14 AM
Nice job! The site looks nice, too. I also really like the link to the 30 AJAX tutorials.
03-21-2006, 03:24 AM
cheers, glad you like it! :-)
02-22-2007, 02:52 PM
and I have set up other sites using lighttpd... but I am experiencing the same problem how the hell do you actually get to see your log files to work out what the problem is... or how do you poke the server to restart, or even setup the server in the first place. I picked bluehosts because I understood they were geared up for ruby but I am getting frustrated for what should be simple...
how do i get my rails app started? or restarted? or find the logs?:mad:
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.