Installing WordPress on a FreeNAS Jail

After creating a basic jail do this:
Step 1 Configue the the Jail to Use SSH
https://www.ixsystems.com/documentation/freenas/11.2-U6/jails.html#accessing-a-jail-using-ssh
Step 2 – Setup Apache, MySQL and PHP – NOTE: Make changes for your version of PHP
https://www.digitalocean.com/community/tutorials/how-to-install-an-apache-mysql-and-php-famp-stack-on-freebsd-10-1
with minor changes from
https://www.howtoforge.com/install-apache-php-mysql-on-freebsd-12/
Step 3 – install workpress
https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-apache-on-freebsd-10-1

Remapping the delete key on MacOS High Sierra

To change the Delete key actually delete rather than backspace, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000004C,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000004C}]}'
to change it back again, run this command:
$ hidutil property --set '{"UserKeyMapping":[{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A},{"HIDKeyboardModifierMappingSrc":0x70000002A,"HIDKeyboardModifierMappingDst":0x70000002A}]}'
Source : https://developer.apple.com/library/archive/technotes/tn2450/_index.html

My notes on how to use git

1) create a local git repo
$ git init
1.5) Save username and password for github
$ git config credential.helper store
$ git push http://example.com/repo.git
Username: <type your username>
Password: <type your password>

2) Add all the files in the currect folder
$ git add *
3) Commit the files/changes
$ git commit -m "first commit"
4) Add the remote repo
$ git remote add github https://github-url
5) Push the local repo to the remote repo
$ git push --set-upstream github master
After adding files for making changes
6) add newfile.txt to local git repo
$ git add newfile.txt
7) commit the changes (adding the new file / or if you’ve updated files)
$ git commit -m "added update script"
8) push the changes to github
$ git push --set-upstream github master
 
— How to undo chanages BEFORE A COMMIT —-
Use this command to see which files have changed
$ git diff
Then use the checkout command to replace the file with the changes you want to undo
$ git checkout <filename>
NOTE : this needs to happen BEFORE you do a commit.