• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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: 14
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