Blog
-
Backup with CRON
Below is the code added to 192.168.254.246 to back up all the files in the /var/www/marketing/ directory,. It is set to run every day at 1am and saves a zip file with the current date into the /backup directory: This command has been added using crontab -e (vim commands needed here). After making changes, be sure to run this to restart cron: The command below can show you what jobs are currently running: The command below will delete all cron jobs: [read more]
-
SELinux (Security-Enhanced Linux)
After a bit of trouble-shooting, I discovered that, while Apache may have permission to read/write according to the file permissions above, an additional set of commands need to be run to have Linux verify that Apache really does have those permissions: if the above doesn’t work, you may need to specify certain files/dirs. Health Check plugin can come in handy for identifying those. Sample for a file: sudo chcon -t httpd_sys_rw_content_t /var/www/marketing/wp-config.php [read more]
-
MySQL
Since SHA-256 password hashing is used by default since version 8 of MySQL, we run into a problem if users created with this encryption are attempted with a WordPress install. Below are the commands for creating a user with the native password setup (1 create user, 2 create database, 3 give user access to database, 4 flush privileges to make changes available): If you wish to change the password authentication type on the root user, you can do so with the following commands: [read more]
-
SSL using LetsEncrypt
Letsencrypt is what we use to generate our SSL certificates (allows for HTTPS usage). Below are instructions using certbot to generate your certificates. Generating Certificates Each domain has a line as -d domain.com within the command. You can add more domains by simply adding a listing in that format and executing the command all at once. Running this command will get a certificate for you and have Certbot edit your Apache (specified with the option “–apache”) configuration automatically to serve it. The option “–redirect” will set the domain to redirect HTTP to HTTPS. To generate certificates, execute the commands below:… [read more]
-
File Permissions
Occasionally, WP will have a conniption over file permissions and user/group assignments. The commands below will fix those permissions. For Centos: For Ubuntu: For Mac: or: [read more]
-
My 2018
My 2018… wasn’t so great. I didn’t talk about it very much on social media, so apologies if this is surprising to some of you. I lost my sight, barely avoided a diagnosis of MS or brain tumor and instead was told I have atypical optic neuritis. On top of that, kiddo was in the hospital for nearly a month. It was a very rough year. They’ve recovered and are doing absolutely wonderful. They are the absolute light of our lives. As for me, I’m grateful for what happened. It sounds ridiculous to feel positive about something so scary, but… [read more]