Wordpress install has multiple failures for PHP and imagick but everything seems ok

SYSTEM INFORMATION
OS type and version REQUIRED
Virtualmin version REQUIRED

During Wordpress install I get these errors but Wordpress seems fine, are these duplicate and normal? Thank you:

PHP module pecl-ssh2 is recommended … fails
Installing package php7.4-pecl-ssh2 … fails
Installing package php8.0-pecl-ssh2 … fails
Installing package php8.1-pecl-ssh2 … fails
PHP module pecl-imagick is recommended … fails
Installing package php7.4-pecl-imagick … fails
Installing package php8.0-pecl-imagick … fails
Installing package php8.1-pecl-imagick … fails

here is the full log…
Found http://wordpress.org:80/wordpress-5.9.zip in cache …

PHP module pecl-ssh2 is recommended …

Enabling module in PHP configuration ..
.. done
Installing package php-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-ssh2

.. install failed!

Installing package php-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-ssh2

.. install failed!

Installing package php-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-ssh2

.. install failed!

Installing package php7.4-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php7.4-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.4-pecl-ssh2
E: Couldn't find any package by glob 'php7.4-pecl-ssh2'
E: Couldn't find any package by regex 'php7.4-pecl-ssh2'

.. install failed!

Installing package php8.0-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php8.0-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php8.0-pecl-ssh2
E: Couldn't find any package by glob 'php8.0-pecl-ssh2'
E: Couldn't find any package by regex 'php8.0-pecl-ssh2'

.. install failed!

Installing package php8.1-pecl-ssh2 ..
Installing package(s) with command apt-get -y -f install php8.1-pecl-ssh2 ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php8.1-pecl-ssh2
E: Couldn't find any package by glob 'php8.1-pecl-ssh2'
E: Couldn't find any package by regex 'php8.1-pecl-ssh2'

.. install failed!

.. failed to install!

PHP module pecl-imagick is recommended …

Enabling module in PHP configuration ..
.. done
Installing package php-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-imagick

.. install failed!

Installing package php-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-imagick

.. install failed!

Installing package php-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php-pecl-imagick

.. install failed!

Installing package php7.4-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php7.4-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.4-pecl-imagick
E: Couldn't find any package by glob 'php7.4-pecl-imagick'
E: Couldn't find any package by regex 'php7.4-pecl-imagick'

.. install failed!

Installing package php8.0-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php8.0-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php8.0-pecl-imagick
E: Couldn't find any package by glob 'php8.0-pecl-imagick'
E: Couldn't find any package by regex 'php8.0-pecl-imagick'

.. install failed!

Installing package php8.1-pecl-imagick ..
Installing package(s) with command apt-get -y -f install php8.1-pecl-imagick ..

Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php8.1-pecl-imagick
E: Couldn't find any package by glob 'php8.1-pecl-imagick'
E: Couldn't find any package by regex 'php8.1-pecl-imagick'

.. install failed!

.. failed to install!

Configuring webserver PHP settings …
… already done.

Applying web server configuration …
… done

Now installing WordPress version 5.9 …

WordPress initial installation finished. It can be completed at https://

More information on using this script can be found at http://wordpress.org/.

… done

Applying web server configuration …
… done

hi @vic , slow down tiger… what os version you are on? what virtualmin version you are on? what php version you are on?

…thanks.

edit: you installing php in wrong way…

edit 2: I think you are on ubuntu… and using php 7.4… try install this like that: (its one liner and I am using debian however I believe ubutnu should be same as apt…)

apt install php7.4 libapache2-mod-fcgid php-memcache php-memcached imagemagick php7.4-{cli,common,pdo,fpm,zip,gd,xml,mysql,cgi,mbstring,intl,apcu,curl,amqp,json,opcache,readline,xmlrpc,xsl,tidy,sqlite3,snmp,recode,pspell,odbc,mcrypt,ldap,imap,imagick,dev} -y

…and after that follow terminal screen… you should be fine after that point.

edit 3: let us know - thanks.

edit 4: removed from my script suggestion the libapache2-mod-php as guys unhappy with it… perhaps for people who do not use it or not know how to, I should not suggest it at all. thanks. Also @joe - got your message about ban. I just suggested this option as its there for advanced users, without realising that sometimes I should grasp other knowledge about this… wont suggest again anything like it…

Are you up to date? I thought we’d hidden those failures in the current version. Virtualmin tries to find the necessary modules on a bunch of different names (because the package names vary wildly across distros). They are not indicative of a problem.

Please do not suggest installing mod_php (with libapache2-mod-php package).

2 Likes

Suggesting installation of mod_php is a way to get banned. :wink:

Never install mod_php.

Please don’t hijack topics for your own problems. Open a new topic for new issues.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.