What is the difference between public html and www




















If you're using absolute path in the code, bad news, you need to refactor it to use relative paths in the code, at least in a shared host. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Asked 8 years, 6 months ago.

Active 2 years, 3 months ago. Viewed k times. Improve this question. Eric Leschinski k 86 86 gold badges silver badges bronze badges. Jason Sherman Jason Sherman 1 1 gold badge 4 4 silver badges 6 6 bronze badges. This is the default path that the more popular web servers use as the default. You should use the folder path your host says to use. For now I think it would be simpler to just have me as owner of all files except ones that need to be written by apache, and then perhaps give the other developer ftp access to some files and keep track of his activity with the ftp log.

Versioning just seems like way past my skill level at this point. I'll give you the check mark for actually giving explanation "no difference because Our new server does not have Cpanel though. I don't know why you are getting upvotes when the source you quote is referring to installable programs, not using the directory as a virtual host webroot. Your bolded text, "no program should rely on this location" looks very authoritative, but a quick read of the document shows that it's just wrong.

I think everyone else here is correct in saying it doesn't really matter. Your answer is incorrect. But the document you link to is great and gave me more confidence in the correct answer. Thank you! FHS is wrong? I don't understand what you are saying, and frankly, neither do you. Carry on. Show 1 more comment. I'm intrigued. If you have pointed your DR elsewhere, you will forever need to correct those assumptions.

As stated it is a "slight" advantage. See the answer I posted. One of the reasons my web files are in different locations is in fact because that's where various packages put them, which goes against what you're saying. Also "slight" means "little, not very important" and "default location" means "unless overridden".

Bottom line, you can put your files where you well please, but changing the default on a pristine CentOS machine takes more work a little bit more, to be precise. John Gardeniers John Gardeniers 27k 12 12 gold badges 52 52 silver badges bronze badges.

Good point. On the cPanel home page, click File Manager. Take a look at all the directories and files on your domain. Click around and get familiar with the types of files you already have on your domain. Each folder has specific information: Name: The name of the folder or file. On your server, files and folders are case-sensitive. So, Mywebsite. Size: How much space the folder or file is taking up.

Last Modified: The last time a file was modified on your server. Type: This shows the different types of directories on your server. Permissions: Who can access and edit your files? Your server uses a system called octal permissions to decide how files are accessed and changed.

If you want a file to be shown on your website, you upload it here. Inside, you should see a directory called cgi-bin. This directory is only for scripts and putting files in this folder is an advanced technique.



0コメント

  • 1000 / 1000