Setup HHVM as an alternative to PHP-FPM with Nginx

The HipHop Virtual Machine (HHVM) is a Jit compiler for the Hack and PHP languages developed by Facebook. It is reported in some situations to far outperform traditional PHP interpreters since it pre-compiles PHP code into bytecode and then into assembly right before execution. Setting up HHVM for use with…

read more

Configuring Nginx with brotli support

Brotli is a compression algorithm developed by Google, on a webserver platform it far outperforms the more common gzip compression algorithm. In order to add the brotli module Nginx must be compiled from source. If you haven’t already setup your development environment to compile Nginx you will need to install…

read more

Performance monitoring with Sysdig

The Sysdig software seems highly geared towards containers like Docker but it works just as well on bare metal. The software is scriptable much like dtrace is. In order to work with this utility we must first install it. Download the following playbook, set the correct IP address in the…

read more

New multi-rotor

My new jankily built quad copter. I plan on tidying up the wiring eventually now that I have all the parts I like but since Lorraine and I are moving to Huston, Texas next week that will have to wait. Specs: FC: Naze 32 afro RX: Spektrum AR6200 VTX: ImmersionRC…

read more

Memcached and WordPress

Increase your caching game with memcached on WordPress. We’ll be using the LEMP stack setup in https://blog.donthurt.us/2017/02/13/new-vps-setup/. Install the memcached service and PHP extension: yum install -y memcached php70u-pecl-memcached Enable and start the memcached service: systemctl enable memcached systemctl start memcached Reload the PHP-FPM and Nginx services: systemctl restart php-fpm…

read more

New VPS setup

Before a few hours ago this site was hosted on an OpenVZ container running a cPanel LAMP stack which was provided by the company I work for.  I found a $10 credit for DigitalOcean so I decided I would configure a LEMP stack and move this site over there since…

read more

CloudLinux mod_lsapi benchmarks

CentOS release 7.3 KVM guest: 1 CPU core (E5-2620) 4GB RAM (DDR4 2133MHz). Apache Config: StartServers 1 MinSpareServers 2 MaxSpareServers 4 ServerLimit 100 MaxRequestWorkers 80 MaxConnectionsPerChild 5000 KeepAlive On KeepAliveTimeout 2 MaxKeepAliveRequests 20 Timeout 100 PHP-FPM 5.6 Zend OpCache / Apache 2.4.23 / Nginx 1.11.6 root@openstack.donthurt.us:~ # siege –concurrent=80 –reps=100 http://blog.donthurt.us…

read more

Softaculous and CageFS

Sometimes when installing CloudLinux after Softaculous is installed Softaculous is unable to detect PHP versions outside of the server’s native PHP installation. The following steps need to be taken to configure the pre_install hooks for Softaculous to recognize multi-PHP from the command line: /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_install_cagefs{.txt,.php} /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_upgrade_cagefs{.txt,.php} /usr/local/cpanel/whostmgr/docroot/cgi/softaculous/enduser/hooks/pre_clone_cagefs{.txt,.php} After performing the above…

read more