Some of the libraries that ship with cPanel's PHP 7.4 aren't as up-to-date as we would like and in rare cases dependency issues are encountered.
One example is meeting the pdo_sqlite library dependency for sellacious. See dependency req's: https://www.sellacious.com/documentation-v2#/learn/basics/system-requirements
(The version of pdo_sqlite that currently ships with ea-php74
is 3.7.17)
In this case we have a few options. The most up-to-date rpm's available are from the remi repo: http://mirror.bebout.net/remi/enterprise/7/php74/x86_64/repoview/php.html
PHP 7.4 from remi repo#
We can provision the remi repo with:
yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
In this particular case we probably also need to enable the remi-php74
repo
with:
yum-config-manager --enable remi-php74
But if we try to install any of the php74 packages from that repo on a cPanel
server we'll encounter no package available errors. This is because cPanel
excludes php packages in the /etc/yum.conf
. We need to remove php*
from the
following string int the /ect/yum.conf
file:
exclude=bind-chroot courier* dovecot* exim* filesystem httpd* mod_ssl* mydns* mysql* nsd* perl* php* proftpd* pure-ftpd* ruby* spamassassin* squirrelmail*
At this point, we're as far as I've made it in provisioning an alternative PHP 7.4 rpm. I haven't had a chance to test this on a test VPS yet.
Build PHP 7.4 from source#
STUB
Resources and links to docs#
- https://www.sellacious.com/documentation-v2#/learn/basics/system-requirements
- https://red3surf.com/phpinfo.php
- https://www.php.net/manual/en/pdo.installation.php
- https://www.php.net/manual/en/ref.pdo-sqlite.php
- https://www.php.net/manual/en/install.unix.php
- https://www.php.net/downloads
- https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7
- https://docs.cpanel.net/knowledge-base/rpm-versions/how-to-override-the-rpm-versions-system/
- https://docs.cpanel.net/ea4/php/introduction-to-php/
- https://docs.cpanel.net/ea4/basics/package-manager-basics/
- https://www.softwarecollections.org/en/docs/
- https://docs.cpanel.net/knowledge-base/general-systems-administration/the-scl-utility/
- https://docs.cpanel.net/ea4/basics/introduction-to-easyapache-4/
- https://docs.cpanel.net/ea4/git-repositories/the-easyapache-4-git-repository-and-build-updates/
- http://mirror.bebout.net/remi/enterprise/7/php74/x86_64/repoview/php.html
- https://centos.pkgs.org/7/remi-x86_64/php74-php-7.4.27-1.el7.remi.x86_64.rpm.html
- https://support.cpanel.net/hc/en-us/articles/4403506784919-How-to-enable-the-webp-image-format-for-use-with-ImageMagick-on-cPanel
- https://docs.cpanel.net/knowledge-base/general-systems-administration/rpm-installation-failures/