Cara install PHP dan Extension melalui command line pada cPanel/WHM

Panduan cara install PHP dan extension melalui command line pada cPanel/WHM Easy Apache4.

Update cPanel

/scripts/upcp

Install PHP dan Extensions

Sebagai contoh, ini perintah install php73 dan modul yg umum dipakai web hosting.

yum install -y ea-php73 ea-php73-php-common ea-php73-php-bcmath ea-php73-php-bz2 ea-php73-php-fpm ea-php73-php-cli ea-php73-php-mysqlnd ea-php73-php-gd ea-php73-php-ldap ea-php73-php-odbc ea-php73-php-pdo ea-php73-php-pear ea-php73-php-mbstring ea-php73-php-xml ea-php73-php-xmlrpc ea-php73-php-xsl ea-php73-php-mbstring ea-php73-php-mcrypt ea-php73-php-snmp ea-php73-php-soap ea-php73-php-opcache ea-php73-php-zip ea-php73-php-ioncube-loader ea-php73-php-pecl-memcached ea-php73-php-pecl-mcrypt

Cara cek extension PHP yang terinstall

Misalnya cek php71 mysqlnd

scl enable ea-php71 'php -i' | grep 'mysqlnd'

Selesai, semoga bermanfaat.

Leave a Reply

Your email address will not be published. Required fields are marked *