Instatalation requirements

I am installing invoiceplane 1.6.1 on ubuntu server 22.04 and I trying to install all the required packages according to:

Requirements - InvoicePlane Wiki.


sudo apt install php-hash php-mcrypt php-mysql php-openssl php-recode php-xmlrpc php-zlib
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package php-mcrypt is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

Package php-recode is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Unable to locate package php-hash
E: Package 'php-mcrypt' has no installation candidate
E: Unable to locate package php-openssl
E: Package 'php-recode' has no installation candidate
E: Unable to locate package php-zlib

So it appears that:

Unavailable Extensions:

php-hash: This package seems to be entirely missing from the default repositories. It might not be a commonly used extension or might have been replaced by alternatives.
php-mcrypt: This extension has been deprecated due to security vulnerabilities. It's strongly recommended to find secure alternatives for any functionality it provided.
php-recode: Similar to php-mcrypt, php-recode might not be available due to security risks or lack of active development. Look for alternative libraries or functions for character encoding/conversion.

So are there alternative packages I can use?

Check out the Dockerfile in the repository.
I think i used PECL to install those libraries.
mcrypt was needed for sure

Skip those other 2 and report if you run into anything.
If you run into anything, then update this issue: