Last active
April 4, 2018 05:21
-
-
Save kurtis318/8868f1146137602978e29d45dad3984a to your computer and use it in GitHub Desktop.
Solution for upgrade to ownCloud 10.0.0.7 and missing php intl module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have ownCloud running on a Cent OS7 machine. Somehow, I am using php 5.6.18 instead of php 7.0 or later. | |
I got the php 5.6.18 from some awkward repos other people maintain (probably not a good idea, I should change this). | |
When I did a yum update, a new version of ownCloud got installed. When I opened my ownCloud home page I got greeted | |
not with the normal login page for ownCloud. Instead of a userid/password prompt, I got two messages about not | |
being able to load php module (I knew I should have saved the exact error messages). | |
After bit of Googling, I found a solution. | |
sudo su | |
cd /var/www/html | |
# Create this file | |
cat phpver.php | |
<?php | |
phpinfo(); | |
?> | |
chown root.apache phpver.php | |
chmod 755 phpver.php | |
# Open this url: https://<owncloud_host>/phpver.php | |
# You can see the php version (see CORE section) and search for intl, it is not there. | |
yum install rh-php56-php-intl.x86_64 | |
rpm -ql rh-php56-php-intl-5.6.25-1.el7.x86_64 | |
/etc/opt/rh/rh-php56/php.d/20-intl.ini | |
/opt/rh/rh-php56/register.content/etc/opt/rh/rh-php56/php.d/20-intl.ini | |
/opt/rh/rh-php56/root/usr/lib64/php/modules/intl.so | |
cd /usr/lib64/php/modules/ | |
ln -s /opt/rh/rh-php56/root/usr/lib64/php/modules/intl.so . | |
systemctl restart httpd | |
I am glad I am persistent. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment