Prerequisites - Ubuntu

Published on: 06-01-22 12:34pm

Himani Gupta

Published on - 06-01-22 12:34pm

Composer Installation:

Instruction Link -


PHP Installation:

Run the below Command:

sudo add-apt-repository ppa:ondrej/php

sudo apt-get update 


After that, pick and run below structured command related to the PHP version of your system/server.


For php7.2

apt-get -y install php7.2 php7.2-curl php7.2-intl php7.2-gd php7.2-dom php7.2-iconv php7.2-xsl php7.2-mbstring php7.2-ctype php7.2-zip php7.2-pdo php7.2-xml php7.2-bz2 php7.2-calendar php7.2-exif php7.2-fileinfo php7.2-json php7.2-mysqli php7.2-mysql php7.2-posix php7.2-tokenizer php7.2-xmlwriter php7.2-xmlreader php7.2-phar php7.2-soap php7.2-mysql php7.2-fpm libapache2-mod-php7.2 php7.2-gmp php7.2-bcmath php7.2-apcu php7.2-redis php7.2-imagick php7.2-imap php7.2-xdebug


For php7.3 

apt-get -y install php7.3 php7.3-curl php7.3-intl php7.3-gd php7.3-dom php7.3-iconv php7.3-xsl php7.3-mbstring php7.3-ctype php7.3-zip php7.3-pdo php7.3-xml php7.3-bz2 php7.3-calendar php7.3-exif php7.3-fileinfo php7.3-json php7.3-mysqli php7.3-mysql php7.3-posix php7.3-tokenizer php7.3-xmlwriter php7.3-xmlreader php7.3-phar php7.3-soap php7.3-mysql php7.3-fpm libapache2-mod-php7.3 php7.3-gmp php7.3-bcmath php7.3-apcu php7.3-redis php7.3-imagick php7.3-imap php7.3-xdebug


IMAP and Mailparse Installation:


1. Mailparse Extension

Run the below Command:

For php7.2 - apt-get install php7.2-mailparse


For php7.3apt-get install php7.3-mailparse


pecl install mailparse


Note: Add "" in php.ini file(/etc/php/7.2 or 7.3/apache2/php.ini) of the php version you are using.

When you are finished editing your php.ini, you will need to restart your Apache server.

Run the following command:

sudo service apache2 restart


2. IMAP Extension

Run the below Command:

For php7.2 - apt-get install php7.2-imap


For php7.3 - apt-get install php7.3-imap


 In case of any doubt or concern do mail us at

Unable to find an answer?

Looking for anything specific article which resides in general queries? Just browse the various relevant folders and categories and then you will find the desired article.

Contact Us

Confirm Action

Are you sure? You want to perform this action.