PHP 7, Pre-installation Setup (intl, mbstring modules/extensions)

Silverstripe Version: N/A (yet)

Question:

I’m trying to prepare my server for a SilverStrip 4 install.
Have installed PHP 7.2.11.
OS is Oracle Linux 7.4.

From these instructions it says that my server must have (amongst) others, the following PHP modules:

  • intl
  • mbstring

Trying to install them via pear gives

$ pear install intl
No releases available for package "pear.php.net/intl"
install failed
$ pear install intl
No releases available for package "pear.php.net/mbstring"
install failed

So, I have 2 questions please?

  1. Do I need those modules for PHP 7?
  2. If I do need them, can anyone suggest how I can install them.

Thanks in advance.

They might already be installed. You could run phpinfo() to check. You could also just proceed to installing SilverStripe, and the installer should warn you if you are missing anything important.

Thanks for the quick reply.
|
Sorry, I realized not long after I’d posted that those extensions are already part of the PHP 7.2.11 source tarball. But, have to be manually built.
|
So, built and installed them, and those two extensions seem to be okay now.
|
Also, the mysqli extension was bit of fun and games. Someone should probably amend the INSTALL documentation with regards to the --with-mysql configure option.
|
Now, the only extension I’m a little perplexed about is the Image Library one.
The requirements mention gd2 (or imagick). But, I cannot find a gd2 extension in the 7.2.11 source, and it doesn’t appear to be documented on php-dot-net.
However, there is a gd extension (which I’ve installed), that is also documented on php-dot-net.
imagick is not part of the 7.2.11 distribution (although, like gd, it too is documented on php-dot-net).
|
I think I have enough to continue with the actual SilverStripe install now.
|
Will see how that goes.