Category Archives: Uncategorized

Getting PHP 7.2 to work with NGINX (UBUNTU)

This took a while. I’m much, much more familiar with running apache. I really like how fast and light nginx is, though, and was going to start using it, no matter what.

In the end, it was a combination of all of these things:

  • When I upgrade to nginx 1.17, there is a new “include” line in the nginx.conf file, and suddenly nginx was looking for site config files in this directory (/etc/nginx/conf.d/) instead of the usual one (/etc/nginx/sites-enabled). Had to change that first thing.
  • The nginx process was trying to run under the “nginx” user, instead of “www-data”. Basically, the “user” config in both your php conf files and your nginx conf files must match, or the php-fpm process ignores the requests from nginx.
  • Most tutorials I’ve found on the internet want you to insert specific php-related config into your nginx site config that points php to a certain port, like this:
    • "fastcgi_pass;:".
  • However, my php-fpm was configured to run under a unix socket only (you find this via the “listen” param in your php config). So, I had to add the following line to my nginx site config instead in the php section:
    • "fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;"
  • I had to include the following line in my php-specific config in my site conf file for nginx. Even the nginx example conf file is not explicit about this:
    • include snippets/fastcgi-php.conf;

Unified Internal Storage for Android 6.0+

Thinking about using Unified Internal Storage on Android 6.0+ to expand your phone’s measly internal storage?  Don’t even think about using it with anything other than a UHS-II SD card — even if your phone will let you use a slower card, don’t do it — your performance will be terrible.

It seems like it has to be UHS-II, for some reason (maybe it’s random r/w speeds?). I tried with even a very, very fast UHS-I, that benchmarked nearly the same, but Android wasn’t satisfied with it, giving the “This SD card is slow” warning.

The best priced one I could find out there (that you’d want to use) was a 32GB one:

Fixed Code Blocks

The wonderful JavaScript library I’ve been using courtesy of to display inline code here on my blog, responsible for blocks of code like this:

function () {
alert("Hello world!");

Hasn’t been working on my blog for the past few weeks (or longer, maybe), but it’s fixed now. All code examples now show up correctly.

Interested in using it for your own blog? Go here: (There’s even a hosted version for users of

White House Confronts Cookies – Tech Insider

White House Confronts Cookies – Tech Insider

The White House may lift its policy barring federal Web sites from tracking users’ online behavior. A Federal Register notice published on Monday seeks public comment on revisions to an existing ban on persistent cookies — common software programs that commercial sites deposit on a visitor’s computer to collect usage information.

Seriously — who cares. Let the US government use cookies.

Honestly, your privacy isn’t being affected — they’re the government. The bloody NSA is already logging everything and everywhere you go on the Internet, anyway.

The Legacy of Firefox

Slashdot Comments | Firefox 3.5 Reviewed; Draws Praise For HTML5, Speed:

“Am I the only one who doesn’t see the multiplicity of real competition as a threat, but rather as the greatest success of the Mozilla Foundation? Had it not been for Firefox, Opera would still cost money, Google Chrome wouldn’t exist, a few people who paid way too much for their computers would be running Safari, and most (l)users would be stuck with the latest version of IE — IE6. Thank you, Firefox, for reigniting the browser wars, and here’s hoping that this time around the wars will be fought with functionality, stability, security, and speed, rather than with a new incompatible extension to JavaScript every week.”

That pretty much sums up how I feel about it, too.

Abandoned Firefox Extensions for May

I don’t dislike these extensions — don’t get the wrong idea. However, every now and then I go through my extension list on Firefox to see what extensions have now had their functionality duplicated by Firefox’s native features, what extensions I simply don’t use anymore, or what extensions haven’t been updated in a long time.

I list them here to remember them by, for some of them have been with me for a long time. (Excuse me, I have a tear in my eye.)

“Blue Ice” Firefox Theme
Hasn’t been updated in a long time (since Firefox 2).

MR Tech’s “Splash” Extension
An extension that loads a Firefox splash image whilst Firefox is loading. Pretty cool — just turned it off since it’s only eye candy. But a neat extension, nonetheless — reminds me of the old Mozilla 1.7 days (back when Firefox was only a glimmer in our eyes).

Scribefire: Fire up your blogging
An extension that sought to centralize all blogging from within your browser. I soon grew tired of the bugs. :( A neat idea, though.

Lazarus: Restore lost forms with a single click
While this extension seems like a godsend (how many times have you submitted a web form, only to get an error or a crash or something, and then go back to find all your carefully typed text gone?), it was conflicting with a few of my other extensions, if I remember correctly. Might revist it one day.

Pirates of the Amazon
The infamous extension that provided a shortcut to torrent pages when you viewed things on Probably the most over-hyped extension of all time — it did nothing that you couldn’t do yourself in two mouse clicks, but to hear the mainstream news talk about, you’d think it designed by Satan himself.

Personas for Firefox :: Firefox Add-ons
An official Mozilla extension that would allow you to quickly skin and change the appearance of your browser with far more intense and in-depth themes that normal. Just eye candy, but I may revisit.

Adblock Plus: Save your time and traffic
The famous Adblock Plus — I just don’t use it anymore, but it’s still great. My method of blocking ads has changed from a blacklist based approach (like Adblock, blocking things explicitly) to a more whitelist based approach (like NoScript, blocking everything automatically, unblocking as you go). I find the whitelist-based approach to be much faster and easier to adapt to new ads over time.

Nine Browsers of Today and Tomorrow Compared

Browser Battle: Nine Browsers of Today and Tomorrow Compared – Maximum PC:

ie8 window example

Also notice that only appears in black in the address bar, while the rest of the URL is grayed out. This is by design and intended to make it easier to identify what domain you’re visiting. This also serves to help end users from being fleeced by spoof sites.

Okay, I’ve got to admit that’s very nice. As long as users start to notice, this tiny little thing could go a long way towards helping users avoid phishing attempts. Microsoft gets something right!

Make sure and check out the rest of that article too — it’s a halfway decent comparison of major browsers today.