Varnish is a flexible tool for speeding up a server. I’m not going to write a lot about it, you’ll find enough information about Varnish on the Internet.
In the article, I’ll describe its installation, problems that may occur, and solutions to them.
Although my previous article about Ubuntu server installation and configuration has become outdated, it's still very popular. So I've decided to share with you my experience of software installation on Ubuntu 16.04.
Some steps were taken from the previous article.
Once I decided to upgrade a working laptop (HP ProBook 4540s Intel i5 / 6gb / 750 Gb / Radeon 2gb). I bought a RAM card Kingston 8Gb and Intel SSD (120GB).
We've got a problem – the storage on one of the servers was full and this caused the overflow on another server. Since at first, a local archive is created and then it is moved to one of the backup servers.
The article will be useful for website owners who have their hosting on cloud servers like DigitalOcean, or those who configure servers to their own needs without using a panel like ispmanager, cpanel, Vesta, etc.
It's been a long time since I decided to write the script, but I had no time for this. However, the number of websites on their own VPS is increasing so browsing the directories and making backups has become dull (the base is backed up automatically on a daily basis bt the automysqlbackup script, but the files were archived and moved manually).
Once you need disable directory and file browsing on a website, it is enough either to place the following string Options All -Indexes in a root folder in a .htaccess file; or to create a .htaccess file if there is none. It looks pretty easy, but what if this option is not active in the ISPmanager on the server? And now you have some fifty accounts? Do you have to create .htaccess files for each domain and configure them?
Google released a new instrument that tests a web-site for mobile-friendly design. How useful can it be for us? Having taken the test, you'll know if the pages of your web-site are mobile-friendly. If they are not, read the recommendations on how to improve it.
I've decided to share with you a driver that we use to work with MySQL database. This class is a PDO extension and includes ready-to-use functions to perform CRUD. It uses the singleton pattern. The primary task is to reduce the number of mistakes in routine operations and reduce the amount of lines of code.