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
- Ghost Script and Imagic Packageย (required)
- JSONย (must be enabled)
- execย (must be enabled)
phpXX-mbstringphpXX-pdophpXX-pdo_mysqlphpXX-intlphpXX-curlphpXX-domphpXX-jsonphpXX-gdphpXX-bcmathphpXX-zipphpXX-fileinfo
(ReplacephpXXwith your PHP version, likephp81for 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.