Chown and Chgrp

Today’s been dedicated to moving my Websites from Siteground to my two VPSs.  I’m in need of letting go of the hefty annual subscription.  I do like Siteground and the quality of the hosting was supurb, but probably a little too expensive for someone who is unemployed.

Everything went perfect with the migration of my WordPress sites. All I had to do was change the name servers at the domain registrars, make my Duplicator backups and once the DNS had fully propagated, created add on domains and databases with Vesta Panel, use SFTP to upload the Installer and Backup migration folders, and the rest was effortless.  The migration was a complete success.

However, today was my first experience with moving a very old antiquated static Website and this didn’t go as easy.  Two major constraints:  although I’m familiar with the chown command and changing all files and folders from root to a different owner, I haven’t worked with changing the group ownership yet.  So after a few tutorials and checking various commands the following two worked for me:

cd /home/admin/web/domain.tld/public_html/
chown admin -R *

chgrp admin * -R

This didn’t solve my problem however, as the next major constraint with the static Website was the antiquated dot.htm index file. I probably need to rework some of the old Website files, but will leave that for another day. For now I took the cowardly way out and moved the domain and Website contents to an easy cPanel shared hosting account.  I’m waiting for the name servers to fully propagate and hopefully the static Website will be up and running soon.  cPanel was as fast as lightning of course.  Just a little matter of creating an add on domain and using the File Manager to upload the zipped backup folder, and to unzip them in File Manager.  Feel almost guilty with how easy it was.

Nice opportunity today for getting to grips with change of ownership of owner and group. I worked through a few YouTube Tutorials and found a new KnowledgeBase of Tutorials for simple and easy to read command instructions.

https://www.pair.com/support/kb/paircloud-changing-file-ownership-using-chown-and-chgrp/

Before I forget – this is an important command for listing the files so one can see what the ownership of both owner and group is:

ls -l

Note later:  During another attempt to upload the old static Website to my VPS 9 I wondered whether the problem with the 403 was not one of permissions, but the actual index.htm file.  The file was capitalized – Index.htm.  It had been capitalized from the beginning of time when it was first created in 2005 and up to Siteground recently had done quite OK, however with the current upload of the Website, the cap was rejected.  It turned out to be the reason for the problem.  After all of the above needless struggles, the real reason for the page 403 was that the name of the index file was capitalized. Was happy to solve the problem without needing to redo the page.  The index page has “frames” and the convention of “frames” is deprecated.  I was relieved to see my frames surviving this time’s installation.  Guess this may be the last time I publish this static Website.