If we have Drupal installed in a Linux development environment, it runs wonderfully even in a virtual machine with 1 GB of RAM and 1 CPU core. When we switch to Windows things change drastically, even with 16 GB of RAM and 6 CPU cores everything seems to go slow, with waiting times on average of 5 seconds, at least for a development environment
Web development
Add SVG images support and compression in Nginx
With the arrival of the SVG format (vector images) many years ago, it is necessary to configure our servers correctly to serve it in the best way. Although this is only supported in modern web browsers, using it properly will give us good benefits such as the possibility of using only one scalable version of an image instead of several depending on
How to disable Strict Mode of MySQL and MariaDB
The strict mode in MySQL or MariaDB is a mode that limits us and does not allow us to carry out bad practices, such as inserting many characters when the limit is low in a certain field. Doing this can have two consequences depending on the version we use, for example it can cut our data and show a warning, or the declaration will not be executed
Increase size limit when uploading files PHP, Nginx and Apache
When we upload files through PHP, there are usually restrictions on the simultaneous number of them, and more than anything on the maximum size per file that we are allowed to upload. A very common default maximum size value is around 2 MB per file, and in most scenarios this is too low a value. Either using Apache or Nginx together with PHP, you
Types of comments that we can use in PHP
PHP is a widely used language to create web pages, and it is due to its ease of use, and how easy it is to put it to the test by running it. Regarding the syntax, there are different ways of commenting on the code that, unlike other languages, in PHP there are several ways, and we can use the one that seems simpler, or being guided by a different