Russ Posted November 9, 2007 Posted November 9, 2007 I am installing a file on my site...the installation instructions state that "...for security reasons we suggest that you do not put it in the web root." On cPanel, if my domain is "www.****" what is my web root, and where would I install the subject file? Quote
stevesh Posted November 9, 2007 Posted November 9, 2007 Looking at your site with an FTP client, or CPanel File Manager, your site's root would be www.****.com/public_html From a web browser, it would be www.****.com We'll need to know what you're installing to suggest where it should go. Quote
TCH-Carl Posted November 9, 2007 Posted November 9, 2007 webroot is /home//public_html/ I guess they are asking you to put it below public_html, ie, /home// Yup, it would be helpful if you can mention the application you are trying to install. Quote
Russ Posted November 9, 2007 Author Posted November 9, 2007 webroot is /home/<username>/public_html/I guess they are asking you to put it below public_html, ie, /home/<username>/ Yup, it would be helpful if you can mention the application you are trying to install. Thanks. I am installing Gallery 2. The install instructions (Gallery 2 Install Documentation) state in part as follows: 2. Storage - Create a directory for gallery to store photos. This must be writeable by the web server, but for security reasons we suggest that you do not put it in the web root. If you put it in the web root, then anybody can get directly to your images with their web browser which circumvents Gallery 2’s security. Note - I tried installing thru fantastico, and fantastico puts the directory to store photos in the web root. Quote
TCH-Bruce Posted November 9, 2007 Posted November 9, 2007 Yes, you want to create the g2data directory at the same level as the public_html folder. So that would be /home/username/g2data Quote
Russ Posted November 10, 2007 Author Posted November 10, 2007 Yes, you want to create the g2data directory at the same level as the public_html folder. So that would be /home/username/g2data Thanks! Quote
Russ Posted November 10, 2007 Author Posted November 10, 2007 Another follow up question, if I may....With respect to this directory, the Gallery2 documentation (linked above) says: In the Unix example, you may note that modes of 777 on your g2data directory are not all that secure. However, making it more secure depends on how your system is configured. Talk with your system administrator about ways to change the permissions on that directory to make it so that Gallery can still write to the files but that others can’t. How do I do this? Quote
Russ Posted November 10, 2007 Author Posted November 10, 2007 (edited) Yes, you want to create the g2data directory at the same level as the public_html folder. So that would be /home/username/g2data Bruce - When I attempt to create the directory /home/username/g2data in cPanel file manager, nothing happens...it isn't created? EDIT: Well now it is showing up! But, how do I set permissions...see post #7? Thank you. Edited November 10, 2007 by Russ Quote
TCH-Thomas Posted November 10, 2007 Posted November 10, 2007 In cpanel... Open file manager then highlight the folder in question then click the icon on top of the page (the key icon) mark all checkboxes for permission 777 and save it all. In an ftp program you usually right click the folder select properties and check all boxes or enter 777 in a field there Quote
Russ Posted November 10, 2007 Author Posted November 10, 2007 In cpanel... Open file manager then highlight the folder in question then click the icon on top of the page (the key icon) mark all checkboxes for permission 777 and save it all. In an ftp program you usually right click the folder select properties and check all boxes or enter 777 in a field there Thanks...but what permissions would make it so that Gallery can write to the files but that others cannot? Quote
TCH-Bruce Posted November 10, 2007 Posted November 10, 2007 I used to use Gallery and I set the permissions to 777 and never had a problem. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.