Plesk

Unable to update Plesk: Package php-mysql is obsoleted by php-mysqlnd

Symptoms

Cause

psa-php5-configurator requires php-mysql, but php-mysqlnd is installed instead.

Resolution

  1. Log in to the server via SSH;

    Note: if direct SSH access to the server is not possible, contact server administrator for further assistance.

  2. Install rpm-build package using the following command:

    # yum install rpm-build

  3. Create a file php-mysql.spec:

    # touch php-mysql.spec

  4. Edit php-mysql.spec file and paste the following content in it:

    Summary: The empty php-mysql package
    Name: php-mysql
    Version: 8.0.0
    Release: 1
    License: Public
    Group: Applications/System
    %description
    The empty php-mysql package
    %files

  5. Build the package with the following command:

    # rpmbuild -bb php-mysql.spec

  6. Install the created package with the following command:

    # rpm -Uvh /root/rpmbuild/RPMS/x86_64/php-mysql-8.0.0-1.x86_64.rpm

  7. Run Plesk upgrade one more time.
Exit mobile version