Category: PHP

How to Install PHP 7.4 on FreeBSD 14.0

PHP

Install FreeBSD Ports The FreeBSD Ports Collection is a package management framework used to compile and install third-party applications from source. To install legacy versions like PHP 7.4, you must use the older 2022Q4 branch of the Ports Collection. Update the server’s package information index. console $ sudo pkg update Install git on your…

Secure PHP Resource with HTTP Authentication

PHP

Introduction HTTP authentication is the process of identifying and verifying users’ credentials to make sure they are permitted to access a web resource. To prevent unauthorized access to your PHP web application, you can protect sensitive files or endpoints using a username and a password. One common way of achieving…

How to Install PHP and PHP-FPM on Rocky Linux 9

PHP

Introduction PHP (Hypertext Preprocessor) is an open-source server-side scripting language that enables the development of dynamic web applications.PHP-FPM (FastCGI Process Manager) is an implementation of PHP FastCGI that enables processing of PHP requests using pools configurations with optimized performance and faster response times. This article explains how to install PHP…

How to Install PHP and PHP-FPM on Ubuntu 24.04

PHP

Introduction PHP (Hypertext Preprocessor) is a popular server-side scripting language that enables the development of dynamic web applications. PHP-FPM (FastCGI Process Manager) provides additional features and improved performance over traditional CGI-based methods to enable PHP connections with other applications such as web servers to process dynamic web application requests. This…

Cache MySQL Data with Redis® and PHP on Ubuntu 20.04

PHP

Introduction Redis® (Remote Dictionary Server) is a fast open-source in-memory key-value database that supports rich data-types including strings, hashes, lists, and sets, making it an ideal choice for creating a performance-oriented system. Because Redis® stores data in Random Access Memory (RAM), it minimizes the seek-time in accessing data from disks. This feature…

How to Page PostgreSQL Data with PHP

PHP

Introduction Paging is a method of retrieving small, defined chunks from a larger set of data. For example, if you’re running an online store with thousands of products, you can display 50 items at a time and give customers navigation buttons to move between the pages. In PostgreSQL, you can…

Load More