djp1988 Posted September 26, 2010 Share Posted September 26, 2010 Hello all.I am working on a project at the moment which has to be hosted on a plesk hosting system, so with this system I've been having problems, because when I create a new domain, I get an allocation of part of the server with a httpdocs directory set up to be the root directory, other directories which are not web accessible include a config directory and some other familiar folders.My problem is, when I work on projects on my localhost, I have a root directory which contains a php classes directory for all my php stuff, some other folders for configuration assets, and a www folder which acts as the root directory.When I use plesk I can't seem to modify the server to either allow me to add content to he non web accessible part of the server (due to permissions), or make my httpdocs dir root but a www dir inside of this the web root of the domain.How would you suggest I keep my php classes non web accessible ?Thanks,Daniel Link to comment Share on other sites More sharing options...
boen_robot Posted September 26, 2010 Share Posted September 26, 2010 It's best to create your PHP scripts without the current assumption you have about having a folder above the document root. Having appropriate .htaccess/web.config configuration is enoguh to ensure that the files in certain folders won't be seen. Since you already have config and other non accessible folders, you could use them. But if you want your app to be portable (read: easy to migrate to another host), it would be best to create your own folder with the appropriate settings. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.