0

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
  • Which version of Ubuntu are you running? PHP 8.0.14 does not ship with 21.10 or 22.04 (pre-release), which makes it difficult to say this is an Ubuntu issue ... 🤔
    – matigo
    Jan 30, 2022 at 12:53
  • Version Ubuntu 20.04 Jan 30, 2022 at 13:22
  • 20.04 ships with PHP 7.x, so you are likely using ondrej or another PPA for your PHP packages. However, as there’s nothing in your question saying where you’re getting PHP 8 from, it’s difficult to offer an answer that is sure to be correct 🤐
    – matigo
    Jan 30, 2022 at 14:23

1 Answer 1

2

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
  • sudo apt install php8.0-curl sudo apt install php8.0-mbstring sudo apt install php8.0-xml. The above set-up works. I truly appreciate. Thanks a lot. Jan 30, 2022 at 16:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .