Answer:
Installing PHP extensions in CyberPanel is a simple and straightforward process. You can do it either directly from the CyberPanel Dashboard or manually via SSH (terminal access).
Below are the two methods explained in detail:
Method 1: Installing via CyberPanel Dashboard (Recommended)
CyberPanel offers a built-in interface to easily install any required PHP extension.
Steps:
- Go to:
https://your-server-ip:8090
- Log in with your admin username and password
- From the left sidebar, navigate to:
4.PHP → Install Extensions* - Select your installed PHP version (e.g., PHP 8.0)
- Search for the extension you need (e.g.,
intl
,pdo_mysql
,mbstring
, etc.) - Click the Install button next to the extension
Once installed, the extension will be enabled and ready to use.
Method 2: Installing via SSH (for Advanced Users)
If you prefer the command line or the extension is not available through the dashboard, you can install it using SSH.
On Ubuntu/Debian:
bash
CopyEdit
apt install php-intl php-bcmath php-gd php-curl php-mbstring php-zip php-pdo php-mysql php-json php-openssl -y
On CentOS/AlmaLinux:
bash
CopyEdit
yum install php-intl php-bcmath php-gd php-curl php-mbstring php-zip php-pdo php-mysqlnd php-json php-openssl -y
Replace
php-
with the appropriate prefix for your PHP version if needed (e.g.,php8.0-intl
).
Restart Web Server
After installing extensions, restart your web server to apply changes:
bash
CopyEdit
systemctl restart lsws
Or go to LiteSpeed → Restart in the CyberPanel dashboard.
- PHP 8.0 or Higher
- Ghost Script and Imagic Package (required)
- JSON (must be enabled)
- exec (must be enabled)
- pdo
- pdo_mysql
- mbstring
- openssl
- intl
- curl
- dom
- fileinfo
- zip
- json
- gd (for image handling)
- bcmath (sometimes required)
Link: ePaper CMS Script - ePaper Pro CMS Install Hosting Server Required PHP Extensions