Tag: Web Server

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...

PHP regular expressions don't work with very long strings (SOLVED)

preg_replace, preg_match_all, and preg_match functions don't work with long strings When trying to search in PHP using regular expressions using preg_replace, preg_match_all, and preg_match (or other regular expression search functions), the following problem may occur: the string being searched for exactly contains a substring that matches the search pattern; but instead of outputting the matched strings, the function finds nothing....

How to archive a folder in parts

How to archive a directory in parts in Linux Let's consider a situation: there is a very large folder (directory) on the server and it needs to be downloaded or moved to another server. In this case, you need to split this directory into several separate archives. Archiving the folder in parts is required, among other reasons, because there is...

How to download a file from a URL and save it on my server (how to avoid running out of RAM when downloading large files)

In PHP, you can download a file via a link (URL) and save it on your server in several ways. Some of them have important differences that can be key when choosing a way to download and save a file in PHP. 1. file_get_contents and file_put_contents The first very obvious option is to use file_get_contents and file_put_contents: file_put_contents("Tmpfile.zip", file_get_contents("http://someurl/file.zip")); Real...

PHP Fatal error: Uncaught mysqli_sql_exception: No database selected (SOLVED)

Let's look at a small PHP code that tries to connect to a MySQL or MariaDB DBMS and execute a query with a “SELECT” statement: <?php $db_user = "root"; $db_password = ""; $mysqli = new mysqli("localhost", $db_user, $db_password); if ($mysqli->connect_errno) { printf("Somehow we failed: %s\n", $mysqli->connect_error); exit(); } $query = "SELECT * FROM TestTABLE;"; $result = $mysqli->query($query); while ($row =...
Loading...
X