Skip to content

Server and PHP Requirements

Please make sure your server has already installed the following packages and php extensions, before you start the installation.

System Packages Required

Install these packages on your server (Ubuntu/Debian example):

bash
sudo apt-get update
sudo apt-get install -y software-properties-common \
    apt-utils \
    libpq-dev \
    libpng-dev \
    openssl \
    libjpeg-dev \
    libfreetype6-dev \
    libwebp-dev \
    libxpm-dev \
    libgd-dev \
    libzip-dev \
    libicu-dev \
    zip \
    unzip \
    git \
    libonig-dev \
    libxml2-dev \
    libsqlite3-dev \
    libssl-dev \
    curl

PHP Extensions Required

Core Extensions to Install

  • gd - Image processing library (with freetype, jpeg, and webp support)
  • intl - Internationalization functions
  • mbstring - Multi-byte string handling
  • pdo_mysql - MySQL database connectivity via PDO
  • mysqli - MySQL improved extension
  • bcmath - Arbitrary precision mathematics
  • pcntl - Process control functions
  • zip - ZIP archive handling
  • opcache - PHP opcode caching

PECL Extensions

  • redis (version 5.3.7 or compatible) - Redis client extension

Installation Commands

For Ubuntu/Debian with PHP 8.x:

bash
# Install PHP and basic extensions
sudo apt-get install php php-cli php-fpm php-mysql php-gd php-intl \
    php-mbstring php-zip php-bcmath php-opcache php-curl php-xml

# Install Redis extension via PECL
sudo pecl install redis

# Or install via package manager (easier option)
sudo apt-get install php-redis

PHP Configuration Notes

Ensure these extensions are enabled in your php.ini file:

ini
extension=gd
extension=intl
extension=mbstring
extension=pdo_mysql
extension=mysqli
extension=bcmath
extension=pcntl
extension=zip
extension=opcache
extension=redis

Verification

After installation, verify the extensions are loaded:

bash
php -m | grep -E "(gd|intl|mbstring|pdo_mysql|mysqli|bcmath|pcntl|zip|opcache|redis)"

This should list all the required extensions if properly installed.

Developed by Mansur Terla. www.terla.me