Package 'php8.3-mcrypt' has no installation candidate for php 8.3
ValentinNikolaev opened this issue · 2 comments
ValentinNikolaev commented
The mcrypt extension has been deprecated as of PHP 7.1.0 and it was removed in PHP 7.2.0.
Therefore, it's not available for PHP 8.3. If you need mcrypt, you should consider refactoring the code to use a more modern and maintained encryption method, such as OpenSSL or Sodium. However, if still need to use mcrypt for some reason, you can use pecl to install it. Here's how you can modify your Dockerfile:
# Install mcrypt extension via pecl
RUN apt-get update && apt-get install -y libmcrypt-dev \
&& pecl install mcrypt-1.0.7 \
&& docker-php-ext-enable mcrypt