Hello, I am not yet a WebFaction customer and would like to make some pre-sale questions about how to manage custom php applications. Reading the documentation, I see that once created the application and mapped to a website, its content is available on the web. What about if I want the application core to be not reachable from the web root? If I create two applications (an unmapped private_app and a mapped public_app) will I be able to include inside php files of the public_app the core files from the private_app or the application are totally independent from each other? Is there a physical full path for inclusion starting from server root or we need to use the variable $HOME also inside our PHP scripts? Thank you in advance and kind regards Roberto EDIT: I have just read this in the documentation: Symbolic link to static/cgi/php: If the software you want to use needs only a subset of its files exposed to the web, use a Symbolic link to static/cgi/php application. In the control panel installer, enter the absolute path to the directory you want to expose to the web in the extra_info field. Otherwise, it works just like a Static/CGI/PHP application. I think this answers to my question, even if it is not clear if I have to upload all the files or create the directory structure before creating the symbolic link. asked 26 Feb '12, 04:35 robertotra |
Hi, Yes, this is possible if you create a Statc/CGI/PHP app for the whole app(including the core) and then creating a separate symlink to statc/cgi/php app for the public subdirectory. You could also accomplish by setting the document root: http://docs.webfaction.com/software/php.html#id8 answered 26 Feb '12, 04:44 neeravk Now it is clear: before I create a normal PHP application and after uploading all files and structure then I create a symbolic link. Your link replies also to my second question: most recent servers have the full path to "/home/username/webapps/application/". Thanks
(26 Feb '12, 04:49)
robertotra
|