Mysql error : Can’t create new tempfile: *.TMD file
Got the following error while trying to repair a crashed DB: [crayon-5b2cdeef83b8f065340565/] You need to…
We started experimenting with Varnish in a bid to tackle load instead of adding full blown replicated web server nodes. Once we were done with testing we ran into trouble implementing the set up on Plesk. There isn’t a whole lot of documentation on this matter so we ended up banging our heads on a lot of walls before we figured it out. Thankfully, though, Plesk is a lot easier and friendlier to hack than WHM/cPanel.
So, below we’ll show you how to move NGINX to a non-standard port, meaning away from port 80.
If you enter the following at shell you’ll see NGINX listening to port 80(http) and 443(https)
Start by heading over to the following path, create a directory called custom.
Copy over the following files from:
Once copied, look for the following lines in all the 6 files:
Edit the lines to look like this:
Repeat this for all 6 files.
Run the following to regenerate config files for all domains
Note: If you have made any changes in files under /etc/php-fpm.d or /etc/nginx, they most probably will be reset. So make sure you back those up to restore them later.
Issue the following again to verify that nothing is listening to either port 80 or 443
That’s it, you’re done.
We’ll be going over the installation and setup of Varnish in the following post.