CFM Marketplace - Stripe Gateway depends on the PHP extension
If you are running into "Stripe Gateway depends on the PHP extension. Please enable it, or ask your hosting provider to enable it." error message, then it very likely is because your server is missing Multibyte PHP extension which is required for Stripe integration in your application to work.
Here are some tips on how to install mbstring extension with PHP7.3 on an Ubuntu server running Apache.
$ sudo add-apt-repository ppa:ondrej/php
$ sudo apt-get update
$ sudo apt install php7.3
$ sudo apt-get install php7.3-mbstring
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libtidy-0.99-0
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
php7.3-mbstring
0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.
Need to get 516 kB of archives.
After this operation, 1,626 kB of additional disk space will be used.
Get:1 http://ppa.launchpad.net/ondrej/php/ubuntu xenial/main amd64 php7.3-mbstring amd64 7.3.19-1+ubuntu16.04.1+deb.sury.org+1 [516 kB]
Fetched 516 kB in 0s (963 kB/s)
Selecting previously unselected package php7.3-mbstring.
(Reading database ... 94659 files and directories currently installed.)
Preparing to unpack .../php7.3-mbstring_7.3.19-1+ubuntu16.04.1+deb.sury.org+1_amd64.deb ...
Unpacking php7.3-mbstring (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for libapache2-mod-php7.3 (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for php7.3-fpm (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Setting up php7.3-mbstring (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
Creating config file /etc/php/7.3/mods-available/mbstring.ini with new version
Processing triggers for libapache2-mod-php7.3 (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
Processing triggers for php7.3-fpm (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
NOTICE: Not enabling PHP 7.3 FPM by default.
NOTICE: To enable PHP 7.3 FPM in Apache2 do:
NOTICE: a2enmod proxy_fcgi setenvif
NOTICE: a2enconf php7.3-fpm
NOTICE: You are seeing this message because you have apache2 package installed.
Processing triggers for php7.3-cli (7.3.19-1+ubuntu16.04.1+deb.sury.org+1) ...
$
Unload old PHP and load the new module
$ sudo a2dismod php7.0
Module php7.0 disabled.
To activate the new configuration, you need to run:
service apache2 restart
$ sudo service apache2 restart
$ sudo a2enmod proxy_fcgi setenvif
Considering dependency proxy for proxy_fcgi:
Enabling module proxy.
Enabling module proxy_fcgi.
Module setenvif already enabled
To activate the new configuration, you need to run:
service apache2 restart
$ sudo service apache2 restart
$ sudo a2enconf php7.3-fpm
Enabling conf php7.3-fpm.
To activate the new configuration, you need to run:
service apache2 reload
$ sudo service apache2 reload
Need to install other non-standard extensions? Easy peasy.
$ sudo apt-get install php7.3-fpm php7.3-cli php7.3-mysql php7.3-gd php7.3-imagick php7.3-recode php7.3-tidy php7.3-xmlrpc