এজেন্ট পরিবর্তন
আসসালামু আলাইকুম! আমি হীরক, লাইভ চ্যাট এজেন্ট থেকে। কিভাবে সাহায্য করতে পারি?
$ USD

Install all recommended PHP extensions on a WHM/cPanel server using EasyApache Print

  • 289

????️ Step-by-Step via WHM UI

  1. Log in to WHM.

  2. Go to EasyApache 4 (Search in the top left).

  3. Click Customize next to the currently installed profile.

  4. Navigate through the following sections:

    • Apache Modules

    • PHP Versions → Click your PHP version (e.g., PHP 8.1).

    • PHP Extensions

  5. In PHP Extensions, check the boxes next to all recommended/common extensions you need. Here's a list of commonly recommended ones:


Commonly Recommended PHP Extensions (General Purpose)

These are suitable for most applications including WordPress, Laravel, WHMCS, etc.:

Extension EasyApache 4 Package Name
bcmath phpXX-php-bcmath
ctype (Usually bundled)
curl phpXX-php-curl
dom phpXX-php-xml
fileinfo phpXX-php-fileinfo
gd phpXX-php-gd
iconv phpXX-php-iconv
intl phpXX-php-intl
json (Usually bundled)
mbstring phpXX-php-mbstring
mysqli phpXX-php-mysqli
mysqlnd (Usually bundled)
openssl phpXX-php-openssl
pdo (Usually bundled)
pdo_mysql phpXX-php-mysqlnd
soap phpXX-php-soap
sockets phpXX-php-sockets
xml phpXX-php-xml
zip phpXX-php-zip
zlib (Usually bundled)
exif phpXX-php-exif
opcache phpXX-php-opcache

Replace phpXX with your PHP version, e.g., php81 for PHP 8.1.

 

???? Alternative: Install via Terminal

You can also install extensions directly from the command line:

yum install ea-php81-php-{bcmath,gd,mbstring,mysqlnd,xml,curl,intl,zip,soap,sockets,opcache,fileinfo,exif}
 
Replace ea-php81 with your PHP version.
 

Final Step: Rebuild and Restart Apache

After saving your EasyApache 4 profile:

  1. WHM will rebuild the Apache/PHP configuration.

  2. Apache and PHP will restart automatically.


Would you like me to generate a full terminal command for a specific PHP version you’re using (like 8.1, 8.2, etc.)?


Was this answer helpful?

« Back