• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue PHP extensions disappeared

Martin73

Basic Pleskian
Today I realized that the PHP extensions have disappeared. It should look like this. Looks like something is disabled in my server setting. How can I activate the PHP extensions?
 

Attachments

  • PHP_Plesk.PNG
    PHP_Plesk.PNG
    21.8 KB · Views: 15
Can you see loaded modules with command

# /opt/plesk/php/7.1/bin/php -m

?
 
This is the output:
Code:
/root$ /opt/plesk/php/7.1/bin/php -m
[PHP Modules]
bcmath
bz2
calendar
Core
ctype
curl
date
dba
dom
enchant
exif
fileinfo
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
imap
intl
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
memcached
mysqli
mysqlnd
odbc
openssl
pcntl
pcre
PDO
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
posix
pspell
readline
redis
Reflection
session
SimpleXML
soap
sockets
sodium
SPL
sqlite3
standard
sysvmsg
sysvsem
sysvshm
tidy
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
xsl
Zend OPcache
zip
zlib

[Zend Modules]
Zend OPcache
the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured)
 
I did what he said.
0- php -v

PHP 7.4.4 (cli) (built: Mar 20 2020 15:04:26) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.4, Copyright (c), by Zend Technologies

1 - yum install epel-release
2 - yum install gcc plesk-php74-devel zlib-devel
3 - /opt/plesk/php/7.4/bin/pecl install gmp
Failed :(
Notice: Trying to access array offset on value of type bool in PEAR/REST.php on line 187
PHP Notice: Trying to access array offset on value of type bool in /opt/plesk/php/7.4/share/pear/PEAR/REST.php on line 187
No releases available for package "pecl.php.net/gmp"
install failed
 
Same issue with ubuntu instance.
I can see the gmp module through
/opt/plesk/php/7.3/bin/php -m
Ran following commands
sudo apt install autoconf automake gcc libhashkit-dev pkg-config plesk-php73-dev zlib1g-dev - worked fine
then ran /opt/plesk/php/7.3/bin/pecl install gmp
this gave following error

Code:
No releases available for package "pecl.php.net/gmp"
install failed
 
I cannot see is it under settings
If you look at phpinfo() > Configure Command you will see '--with-gmp' there, which means that this is a statically compiled php module. Obviously, such modules can't be managed through Plesk interface because they are always enabled.
 
Back
Top