Yii2 commonly requires these PHP extensions:
Instructions
Ghost Script, Imagic Package, and exec must be enabled; otherwise, you cannot upload PDF files.
Make sure put database connection.
📝 If you don’t see this option, your hosting provider might restrict it. In that case, contact their support.
✅ Step-by-Step: Install Required PHP Extensions in WHM
📌 Step 1: Log in to WHM
- Go to your WHM URL (usually
https://yourserverip:2087
)- Log in with root or reseller credentials
📌 Step 2: Use EasyApache 4 to Manage Extensions
In the WHM sidebar, search for:
🔍 "EasyApache 4"Click "Customize" next to your current profile.
Go to the PHP Extensions section.
In the search bar, type and enable the following extensions by clicking the toggle:
Common Yii Required Extensions:
- PHP 8.0 or Higher
- Ghost Script and Imagic Package (required)
- JSON (must be enabled)
- exec (must be enabled)
phpXX-mbstring
phpXX-pdo
phpXX-pdo_mysql
phpXX-intl
phpXX-curl
phpXX-dom
phpXX-json
phpXX-gd
phpXX-bcmath
phpXX-zip
phpXX-fileinfo
(ReplacephpXX
with your PHP version, likephp81
for PHP 8.1)After selecting, click "Review", then "Provision" to install.
Optional: Use MultiPHP INI Editor To ensure proper configuration: In WHM, search "MultiPHP INI Editor" Select your domain Ensure settings like memory_limit , upload_max_filesize , etc., meet Yii2 needs
Subscribe here to receive any of our special offers and we will notify you via email.