Results 1 to 2 of 2
Sep 17, 2007, 07:13 #1
How do you organize files on shared hosting?
I don't know how exactly to organize files and folders on a shared hosting where only in one directory (htdocs, www, etc) I have write permissions.
What is the best way to organize in this folder in order to be the most secure?
I know on vps/dedicated servers where you have access to the whole system you place your classes and other sensitive data out from the public access folder (www, htdocs, etc.)...
Sep 17, 2007, 07:23 #2
But most shared hosts still give you a directory above wwwroot, it usally contains ftp logs, that should be accessible, but I've never tried it...
Also, if you use htaccess, you can set a new wwwroot, so mysite.com/myfile.php is really in /wwwroot/fakeroot/myfile.php, and secrets are in /wwwroot/secrets/. CakePHP uses that, and it works well!