Update Docs re PHP and Centos


At this page https://docs.nextcloud.com/server/11/admin_manual/installation/php_55_installation.html you kindly explain how to get PHP5.5 on Centos 7. I’m bringing up a virgin installation of Nextcloud 11 (the current stable release) on Centos 7 1611 just installed.

It is a bit frustrating to go through your installation docs, get PHP5.5.x working at some difficulty (5.4.x being the ‘normal’ one) only to find upon trying to configure Nextcloud that PHP 5.6 is required!

Please update your docs for Nextcloud 11 to give help/instructions to install a version of PHP on Centos 7 which WILL ACTUALLY WORK! Or, if that is too difficult to advise in short order, then at least update that page of the docs to say you must not install the OS default PHP 5.4 but you must seek out a solution for yourself that yeilds PHP 5.6 +.

Thanks. I wasn’t expecting this frustration so early in the install process. First time with Nextcloud, as a former Owncloud user.

1 Like

Thanks for the feedback. You can report error in the documentation directly to the bugtracker, now I just copy&pasted it for you:

Hello Lamixer:

Can you share how did you get PHP 5.6 working on Centos 7 so Nextcloud 11 recognized?

Thank you

Hello, sure. I found some instructions here [ https://www.vultr.com/docs/how-to-install-nextcloud-on-centos-7 ] which basically says to enable the IUS community repo and then:

yum install php56u php56u-common php56u-xml php56u-gd php56u-mbstring php56u-process php56u-mysqlnd php56u-intl php56u-mcrypt php56u-imap php56u-cli

and also php56u-ldap php56u-pecl-apcu and perhaps others for one’s specific needs. So not so painful. The painful part was going through the process of installing PHP 5.5 first, then discovering that didn’t work, and removing it.


Thank you for the reply. This helped me a lot.

If someone else hits a brick wall during NC install on RHEL7. Here is what I used to install php:

subscription-manager repos --enable rhel-server-rhscl-7-eus-rpms
yum install rh-php56-php-common.x86_64 rh-php56-php-process.x86_64 rh-php56-php-pear.noarch rh-php56-php-mbstring.x86_64 rh-php56-php-mysqlnd.x86_64 rh-php56-php-xml.x86_64 rh-php56-php-pecl-jsonc.x86_64 rh-php56-php-gd.x86_64 rh-php56-php-ldap.x86_64 rh-php56-php-cli.x86_64 rh-php56-php.x86_64 rh-php56-runtime.x86_64 rh-php56.x86_64 rh-php56-php-pdo.x86_64 rh-php56-php-intl.x86_64 -y

cp /opt/rh/httpd24/root/etc/httpd/conf.d/rh-php56-php.conf /etc/httpd/conf.d/
cp /opt/rh/httpd24/root/etc/httpd/conf.modules.d/10-rh-php56-php.conf /etc/httpd/conf.modules.d/
cp /opt/rh/httpd24/root/etc/httpd/modules/librh-php56-php5.so /etc/httpd/modules/

systemctl status httpd
systemctl restart httpd
systemctl status httpd

There is a pull request on this:

Unfortunately, nobody had the time to review. If you happen to install this, it would be nice to leave a comment on the github issue that it worked for you, then we can merge it.