-
Junior Member
CakePHP and Steadfast
Is anyone running any CakePHP applications on a shared hosting plan at Steadfast?
I'm looking into converting one of my homebrewed web sites into using a PHP Framework, and CakePHP seems like the best fit for me. However I've got a few questions about getting it installed...
1. For a production environment, CakePHP recomments that the DocumentRoot of the web site is rewritten from /blah/username/example.com to /blah/username/example.com/cakephp/app/webroot. Is there any way I can manually change the DocumentRoot for one or more of my websites? I tried looking around in the control panel, but I couldn't find an obvious way to do so.
2. CakePHP has a few php scripts for maintentance and auto-generation of code (or something like that) but it requires PHP CLI. Is this installed on shared web hosts, and if so, is shell access (which I assume is what's needed to use it) allowed?
Both of these "issues" can be overcome, although I'd prefer to have them both. Do I need to go with a VPS to be able to take advantage of these two things?
Thanks.
-
Absolutely!
Hi,
Yes; our shared servers offer shell access that will be able to use PHP at the command line.
There's no way to change the DocRoot inside shared hosting, however. I wonder why the recommendation, other than eliminating a few lines when linking things in...
BQ
-
Junior Member
Thanks
That's good news about shell access. I'm not sure if I'll need it, but it's there if I do. How would I go about requesting access, or if I already have access, how would I go about logging in? Mydomain.com and/or Steadfast.net on port 22?
They probably recommend it that way to move the code away from the publicly available website. The only thing you can get to is css files, images and javascripts. Everything else gets loaded from beneath the www folder structure... So eh... I guess for security reasons?
Apparently there's an advanced setup that allows you to muck around with this though, so I shouldn't have to edit the DocumentRoot. It just happens to be the "easy" way to do it.
Thanks for your help Brad.
Last edited by frodeaa; 12-09-2008 at 04:28 PM.
Reason: Addition to my first question...
-
Shell Access
Hi,
Within our HSphere control panel under your main control panel you can request shell access via "FTP and Shell Manager". We have a variety of shared servers, so you can contact it via webx.steadfast.net, or yes, your domain name.
You can always access files above your webroot (there's a parent folder that has logs and a few other folders). Feel free to contact us for support if you need it!
Brad
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
Bookmarks