How to set up HTTPS (SSL) for self-hosted domain names

Recently (I'm writing this in September, 2016) I learned about a free, recognized certificate authority. Being an absolute miser myself, I never got around to paying for a certificate. Making your own certificate--which would be very doable--looks like absolute hell as all browsers stigmatize your un-trusted certificate like it's leprosy. Suddenly, there's a free certificate authority we can all use and get on with our lives.

Drupal update and backup

Found at: https://www.drupal.org/documentation/backup

"Always back up the entire site before updating or upgrading"

Tags: 

Added email ability to my cheap-hp so Drupal could notify me of stuff.

I was getting mail piling up in my logs, flooding the entire filesystem. Yikes. It was trying to send a single piece of mail every second, so, if a bunch of emails needed to be sent (I had over 20,000 in the queue) that was over 20,000 messages to various log files being generated every second.

Apache: train it to listen to port 8080 (VirtualHost)

I do this so rarely it always bights me when I need it.

Found this: https://httpd.apache.org/docs/current/vhosts/examples.html

....that official Apache site doesn't even tell you where the goddamed conf file is to edit. It tells you how to edit it, but not where the fuck it is. Shit.

I found this in the comments there:
Default location for ports.conf file is:
``` /etc/apache2/ports.conf ```

Making a cron job

This is how I did my first cron job (pasted in from this web site: http://www.unixgeeks.org/security/newbie/unix/cron-1.html )

Found a better one here: http://www.sitepoint.com/a-comprehensive-crash-course-into-cronjobs/
...which is entirely pasted as a comment below this article.

FTP / PHPStorm's update via FTP stopped working -- and other FTP issues

Note added later: when I changed the router to route FTP differently, I forgot to tell the "2111" server that I'd done that, so it was receiving port 21 from the router, but vsftpd.conf was listening for port 2111. I changed it back. (Will have to do that to the other server since the router now routes port 2111 for FTP to that one instead). SEE BELOW FOR SOME TRICKS AND INFO ABOUT THIS ISSUE.

Suddenly, PHPStorm's update via FTP stopped working. Maddening. I still cannot account for why. Sometimes, you just have to fix it however you can and get on with your life.

All the Vi I'll ever need (possibly)

I found this at:

https://cseweb.ucsd.edu/classes/fa97/cse9a/vi.html

vi TUTORIAL - Scott Jennings
--------------------------------------------------------------
START VI AND EDIT FILE "FILENAME" vi filename

INSERT TYPING (TEXT) IN FRONT OF
CURRENT LOCATION POINTER (CURSOR) i
INSERT TEXT AT BEGINNING OF CURRENT LINE I
INSERT TEXT AFTER CURSOR (APPEND) a
INSERT TEXT AT END OF CURRENT LINE A

Basic MongoDB commands

Create a user in a certain database named 'test':
====================================
db.createUser(
{
user: "PHP",
pwd: "Chenango",
roles: [{role: "readWrite", db: "test" }]
}
)

Tags: 

Transitioning between development environments

I've realized that when I transition between projects of disparate types of languages, I waste a lot of time and anguish remembering what my work-flow was, what the directory structure was, where I left off in the development of the architecture and code, and so on.

Permissions on your web server directory

here's an excellent lesson on basic permissions for your web directories.
(You can find a more detailed discussion here (where I found this): http://serverfault.com/questions/357108/what-permissions-should-my-websi... )
=======================================================

Pages