Score:0

PHP mbstring, xml and curl setup

id flag

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

in flag
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 ...
Superb Resource avatar
id flag
Version Ubuntu 20.04
in flag
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
Score:0
in flag

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.

Superb Resource avatar
id flag
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.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.