Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unable to change anything after moving the cms directory
#20
No, I will try and clarify...

If your website is running fine and you want to move it, NEVER DOWNLOAD IT to a computer and then upload it to a new folder. The files have permissions that were setup by Get Simple. When you download a file and upload it to a new folder, the server has no clue that your just moving an already existing file to another directory. So, when you upload a NEW file, the server gives that filetype extension a default CHMOD value. Most files and folders are 755, but many need 666 or 777 to allow full write access.

That is CHMOD. CHMOD = File Permissions ONLY, it has nothing to do with who controls the file (Owner).

Next...

CHOWN = File OWNERSHIP. Typically all files in a directory and it's sub directories are owned by the same person. You cannot change the ownership of a file unless you have SSH access. This is something that the majority of webmasters will never need to deal with.

So, there was NEVER a change in ownership. When chromis uploaded the files via FTP, the server CHOWNED the files as him being the owner. What messed up is the Read, Write, and Execute permissions on the files he uploaded as they were reset to default.

Chromis, SSH is the best, yet hardest way to work with files on a server. You must know command line or else it's nothing but confusing. Also, one wrong character in the command can cause data deletion. I've seen this happen many times. The EASIEST way to move files for most people is by using Filezilla. Don't download the files, but instead highlight all the files and folders you want moved and drag your highlighted items to the " .. " that appears above files and folders. Then click on the " .. " and you will see your files in that lower directory. Then just keep moving if necessary.
Clients always want to be able to change the content of their pages, but they are unwilling to do so.

Have you ever coded in your underwear before?
Reply


Messages In This Thread
Unable to change anything after moving the cms directory - by internet54 - 2009-12-05, 07:29:23



Users browsing this thread: 1 Guest(s)