PHP mbstring, xml and curl setup

My script installation rquires the following setup:

sudo apt update,
sudo apt install php-curl,
sudo apt install php-mbstring,
sudo apt install php-xml,
sudo service apache2 restart

After running the setup, the site is not working. Still as asking for setup. Please how can i fixed this.

mbstring, xml and curl setup

3

1 Answer

Try instead:

sudo apt install php8.0-curl
sudo apt install php8.0-mbstring
sudo apt install php8.0-xml

php-curl that you installed:

This package is a dependency package, which depends on Debian's default PHP version (currently 8.1).

So php-curl usually "links" to the latest php version installed, in my case 8.1. (Meaning it only installed php8.1-curl)

If this does not enable the above modules automatically, try:

sudo phpenmod -v 8.0 curl
Syntax
phpenmod -v <PHP VERSION> <MODULE NAME>

Alternatively, if this does not work, you could try to look at "/etc/php/8.0/apache2/conf.d" and symlink the modules ini files there to enable them.

1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like