Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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.

Posted
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.

Posted
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!

Posted

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?

Posted (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 by Russ
Posted

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

Posted
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?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...