Tag: Web Server

How to redirect subdomains to a new domain with the same subdomains

Contents Task: redirect requests coming to subdomains to a new domain with the same subdomains using mod_rewrite in the .htaccess file settings. In this case, you need to save the request and query parameters (the requested page, etc.). Quick solution How to redirect requests coming to subdomains to a new domain with the same subdomains using mod_rewrite in the .htaccess...

How to cache MySQL / MariaDB query results

Contents 0. In MySQL, query caching has been completely removed in recent versions, while in MariaDB, on the contrary, it has become enabled by default. 1. How MySQL / MariaDB query caching works 2. When to use MySQL / MariaDB query caching 3. How to enable and configure MySQL / MariaDB query result caching 4. How to check MySQL /...

How to redirect from JPG, JPEG, PNG and WebP to AVIF using .htaccess and mod_rewrite

In the previous article, we learned how to convert JPG and other formats to AVIF (which is supported by modern web browsers). This can reduce the space occupied by images on the hosting by up to 8+ times! See also: How to convert images to AVIF using PHP But converting images to a new format is just the beginning –...

Should I close MySQL connections with $mysqli->close() in PHP scripts. Should I use $result->free()

Contents What are $mysqli->close() and $result->free() used for in PHP Is it necessary to close connections to MySQL / MariaDB and clear the result of the SQL query? When using $mysqli->close() and $result->free() will NOT give tangible results When to use $mysqli->close() and $result->free() Is it possible to close the MySQL database connection before completing the processing of query results...

Error “PHP Startup: session.sid_length INI setting is deprecated” (SOLVED)

After upgrading to PHP 8.4, you may have encountered the following error: PHP Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0 Deprecated: PHP Startup: session.sid_length INI setting is deprecated in Unknown on line 0 PHP Deprecated: PHP Startup: session.sid_bits_per_character INI setting is deprecated in Unknown on line 0 Deprecated: PHP Startup: session.sid_bits_per_character INI setting is...

How to install and use pikaur and makepkg on a server

How to run pikaur as root For more information on pikaur, see the article: Automatic installation and update of AUR packages The makepkg utility and (sometimes) pikaur do not work when run as root. This is not usually a problem for most users, but I have encountered a situation where on a headless server where there is only one user...

ERR_SSL_PROTOCOL_ERROR (SOLVED)

Contents 1. Why does the ERR_SSL_PROTOCOL_ERROR occur 2. How to fix the ERR_SSL_PROTOCOL_ERROR 3. How to fix “ERR_SSL_PROTOCOL_ERROR” on a local web server 4. How to configure HTTPS on Apache in Linux 4.1 How to install Apache and OpenSSL on Debian, Ubuntu, Linux Mint, Kali Linux 4.2 How to enable the SSL module for Apache 4.3 How to make a local...

Error code: SSL_ERROR_RX_RECORD_TOO_LONG (SOLVED)

Contents 1. Why does the SSL_ERROR_RX_RECORD_TOO_LONG error occur 2. How to fix the SSL_ERROR_RX_RECORD_TOO_LONG error 3. How to fix “Error code: SSL_ERROR_RX_RECORD_TOO_LONG” on a local web server 4. How to configure HTTPS on Apache in Linux 4.1 How to install Apache and OpenSSL on Debian, Ubuntu, Linux Mint, Kali Linux 4.2 How to enable the SSL module for Apache 4.3 How...

How to set up HTTPS on Apache in Debian, Ubuntu, Linux Mint, Kali Linux

Contents How to enable HTTPS on Apache in Debian, Ubuntu, Linux Mint, Kali Linux How to install Apache and OpenSSL on Debian, Ubuntu, Linux Mint, Kali Linux How to enable the SSL module for Apache How to make a local server open by hostname (setting up hostname to IP address resolution) How to create a Certification Authority (CA) How to...

How to install Apache web server with PHP, MySQL and phpMyAdmin on Windows [updated: September 2024]

Table of contents 1. Windows web server 2. How to install Apache on Windows 3. How to install PHP on Windows 4. PHP 8 setup 5. How to install MySQL on Windows 6. How to install phpMyAdmin on Windows Conclusion Windows web server A web server is a program that is designed to process requests for websites and send website pages to users. The most...
Loading...
X