parkourmumbai
New Member
- Messages
- 34
- Reaction score
- 0
- Points
- 0
Hi, I am a beginner, and am putting up a website for the first time. I have quite a few questions, some of which might seem too childish to you guys, and I'll be adressing them one by one. Please bear with my foolish questions, and I would really appreciate any help.
First, I would like to know what the 'execute' permission setting exactly does. I mean, you've got read and write permissions, so what does 'execute' do? Is it similar to the 'read' permission? Is it related to executing php/perl scripts, and if so, does that mean I have to enable it for visitors who are visiting those webpages that need to run php scripts? And what is the difference between 'user', 'group', and 'world'? Am I right in assuming that 'user' is the admin who runs/puts up the website, and 'world' is the regular web visitor who visits the webpage? If so, then who is 'group'?
Second, what is the difference between the folders 'public_html' and 'www'?
Any file/folder that I seem to create in one is automatically copied to the other, and they reflect the changes made to the other in real time. If they are the same thing, what is the sense of having two different folders for the same thing?
Third, I am not familiar with Linux file systems, and file paths, they seem to be a bit different from the windows file paths. I created a folder called 'media' in the public_html folder, for storing my pictures. Now, in my webpage, I gave the appropriate path to the image files, in the format -
I logged out of cpanel and all x10hosting accounts, and then opened the webpage in my browser (IE7). All the images showed up fine. But the same images never showed up for any of my visitors, using any browser. I tried to get them to use different browsers but they got the same result each time - only the image placeholders were loading, but the images didn't come up, they got a red 'x' mark in place of the images. I tried opening the page from my end again, but like before, I could load the page perfectly, without having logged into cpanel. Now I think this might have been a permissions issue, but I checked the permissions for both, the media\ folder, and all the images in it, they all were set to '644'. I shifted all the images to the public_html folder, and then they began showing up fine for everyone.
What could have been the problem here?
Also, when storing my files in different folders, what permissions should I set to the folders and the files so that web visitors cannot access my folders themselves, but can access the files in them? Also, what file paths should I use in the html code? I assume the file paths here would be different from what are used in windows.
Fourth, I have an ad-free account, which gives my 300 MB of storage space.
Yet, when I go to the upload file page in file manager, it says that the space I have available for uploads is 50 MB only. Is there some error on the site, or do I infact have only 50 MB of webspace on this hosting account instead of 300 MB, or does what is written on the page mean that I can only upload 50 MB of data at a time, through that page?
I have more questions, but I'll post them later, in the same thread. For now, I would really appreciate if some knowledgable person helps me out in my above doubts.
First, I would like to know what the 'execute' permission setting exactly does. I mean, you've got read and write permissions, so what does 'execute' do? Is it similar to the 'read' permission? Is it related to executing php/perl scripts, and if so, does that mean I have to enable it for visitors who are visiting those webpages that need to run php scripts? And what is the difference between 'user', 'group', and 'world'? Am I right in assuming that 'user' is the admin who runs/puts up the website, and 'world' is the regular web visitor who visits the webpage? If so, then who is 'group'?
Second, what is the difference between the folders 'public_html' and 'www'?
Any file/folder that I seem to create in one is automatically copied to the other, and they reflect the changes made to the other in real time. If they are the same thing, what is the sense of having two different folders for the same thing?
Third, I am not familiar with Linux file systems, and file paths, they seem to be a bit different from the windows file paths. I created a folder called 'media' in the public_html folder, for storing my pictures. Now, in my webpage, I gave the appropriate path to the image files, in the format -
Code:
<img src=media\image.jpg style=" width: 320; height: 213">
What could have been the problem here?
Also, when storing my files in different folders, what permissions should I set to the folders and the files so that web visitors cannot access my folders themselves, but can access the files in them? Also, what file paths should I use in the html code? I assume the file paths here would be different from what are used in windows.
Fourth, I have an ad-free account, which gives my 300 MB of storage space.
Yet, when I go to the upload file page in file manager, it says that the space I have available for uploads is 50 MB only. Is there some error on the site, or do I infact have only 50 MB of webspace on this hosting account instead of 300 MB, or does what is written on the page mean that I can only upload 50 MB of data at a time, through that page?
I have more questions, but I'll post them later, in the same thread. For now, I would really appreciate if some knowledgable person helps me out in my above doubts.