Skip to main content

PHP Installation

Tadreeb LMS supports PHP 8.3 only. Other PHP versions are not recommended and may lead to unexpected issues.


Supported PHP Version​

Note

Before installing PHP, ensure that your system meets the
System Requirements.

  • PHP 8.3 – Required and officially supported

PHP must be installed for:

  • The web server (Apache)
  • The command-line interface (CLI)

⚠️ Both Apache and CLI must use the same PHP version (8.3).


Required PHP Extensions​

The following PHP extensions must be installed and enabled for Tadreeb LMS to function correctly:

  • php8.3 – Core PHP 8.3 package
  • php8.3-cli – Command-line interface for PHP
  • php8.3-common – Common PHP files
  • php8.3-mbstring – Multibyte string support
  • php8.3-xml – XML support (DOM, SimpleXML, XMLReader/Writer)
  • php8.3-curl – cURL support for HTTP requests
  • php8.3-zip – ZIP archive support
  • php8.3-mysql – MySQL/MariaDB drivers (MySQLi & PDO)
  • php8.3-bcmath – Arbitrary precision mathematics
  • php8.3-gd – Image processing (GD library)
  • php8.3-ldap – LDAP / Active Directory support (required only if LDAP authentication is enabled)

These extensions are installed through standard OS packages, for example:

  • php8.3-mysql
  • php8.3-xml
  • php8.3-mbstring
  • php8.3-ldap (only if LDAP authentication is used)

✅ No additional database connector configuration is required beyond installing the PHP MySQL extension.


Verifying Installed Extensions​

To confirm that a PHP extension is enabled, run:

php -m | grep -i <extension_name>