• 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
  • Please beaware of a breaking change in the REST API on the next Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Resolved php 7 and loss of mysql_ functions

tkalfaoglu

Silver Pleskian
After my recent update, I seem to have lost the use of mysql_ functions, which are apparently deleted from php 7. However, this causes errors:

# /usr/local/bin/php_management_tool move --to=plesk-php53-fastcgi --domains=xyz.com
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /usr/local/bin/php_management_tool:204
Stack trace:
#0 /usr/local/bin/php_management_tool(188): DomainsManager->init()
#1 /usr/local/bin/php_management_tool(306): DomainsManager->__construct()
#2 {main}
thrown in /usr/local/bin/php_management_tool on line 204

How can I fix this issue? Thanks!
 
Make sure that these packages are installed:

# rpm -qa | grep mysql | grep php7
plesk-php72-mysql-7.2.5-centos7.18042710.x86_64
plesk-php71-mysql-7.1.17-centos7.18042710.x86_64
plesk-php70-mysql-7.0.30-centos7.18042711.x86_64
 
Make sure that these packages are installed:

# rpm -qa | grep mysql | grep php7
plesk-php72-mysql-7.2.5-centos7.18042710.x86_64
plesk-php71-mysql-7.1.17-centos7.18042710.x86_64
plesk-php70-mysql-7.0.30-centos7.18042711.x86_64

Many thanks -- I was missing the 72 package.. Working on installing it now..
 
Back
Top