Chris Moore
play
Finding the correct pm.max_children settings for PHP-FPM

…your server: ps -ef | grep ‘[f]’pm //Results on this machine : root 4073 1 Sep19 ? 00:02:02 php-fpm: master process (/etc/php/7.0/fpm/php-fpm.conf) www-data 24905 4073 1 18:14 ? 00:00:29 php-fpm:…


Install the latest version of Nginx on Ubuntu

…version can be found: sudo vi /etc/apt/sources.list.d/nginx.list Paste the following two lines into this new file (if using Ubuntu 16.04 change bionic to xenial): deb [arch=amd64] http://nginx.org/packages/mainline/ubuntu/ bionic nginx deb-src…


When the Flickr API Stopped Working

…changing all references to the API URL: from: http://api.flickr.com/services/rest/ to: https://api.flickr.com/services/rest/ I will put away my jump to conclusions mat for now but keep it handy for next time 🙂…


Rewrite the WordPress uploads url path in Nginx

…server_name example.com root /var/www/example.com; index index.php index.html index.htm; rewrite ^/wp-content/(.*)$ /app/$1 permanent; location / { try_files $uri $uri/ /index.php?$args; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php7.3-fpm.sock; } }…


MySQL Strict Mode

…MySQL 5.7, this same query will return an error as it is not within the valid date range of ‘1000-01-01 00:00:00’ to ‘9999-12-31 23:59:59’: INSERT INTO test3 VALUES (‘0000-00-00 00:00:00’);…


Getting started with Browsersync

…of index.html and also compile our css in a css/ directory, we just need to run the following command: browser-sync start –server –files “*.html, css/*.css” That will start a web…


Terms of Service

…title, and under this license you may not: i. modify or copy the materials; ii. use the materials for any commercial purpose, or for any public display (commercial or non-commercial);…