Web Applications

Nginx default user changed in RedHat/CentOS package nginx-1.16.1-1.el7

The latest Nginx rpm (nginx-1.16.1-1.el7) from EPEL for CentOS/Redhat is a fairly major update, from version 1.12 to 1.16, and includes some very important fixes to address multiple CVEs. There is another small but critical change in the latest RPM that isn’t mentioned in the bug report. RedHat had configured nginx to run as user “apache” …

Nginx default user changed in RedHat/CentOS package nginx-1.16.1-1.el7 Read More »

Another Reason to Enable Private IP Addresses on Google Cloud SQL

Google Cloud SQL recently introduced the capability for an instance to have an IP address within the private address space of your VPC network. Previously, all Cloud SQL instances had IP addresses within the address space of the public Internet. Obviously, the public IP was a security and privacy concern, as well as a potential …

Another Reason to Enable Private IP Addresses on Google Cloud SQL Read More »

Updating to WordPress 5 on a Linux Host: Requesting FTP Credentials

WordPress 5 didn’t install automatically on sites hosted on my CentOS 7 WordPress hosting server. That’s by design, because I’m selfish and I’d rather wait for a few bug-fix releases before making a major upgrade. When I chose to upgrade manually on a test site, WordPress asked for my FTP credentials: If you’re hosting WordPress …

Updating to WordPress 5 on a Linux Host: Requesting FTP Credentials Read More »

New Relic APM on Fedora/CentOS/RedHat with SELinux Enforcing: Solved

I found the solution for getting the New Relic APM Agent to run on a CentOS 7 system with SELinux Enforcing. The only SELinux modification you have to make is to change the context of the log file directory /var/log/newrelic. You can temporarily make these changes with the chcon command: Kill any running instances of …

New Relic APM on Fedora/CentOS/RedHat with SELinux Enforcing: Solved Read More »

Configuring Laravel/Lumen applications to connect to SQL database sockets

The Laravel/Lumen framework documentation does not explain how to connect an application to a database using UNIX sockets instead of a TCP-based network connection. I recently had to configure the Polr URL shortener (built on the Lumen microframework by Laravel) to connect to Google Cloud SQL with a UNIX socket. Since all of Polr’s configuration takes place …

Configuring Laravel/Lumen applications to connect to SQL database sockets Read More »