Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing 10.0.6 on shared server - intl not installed #30498

Closed
jfou opened this issue Feb 16, 2018 · 7 comments
Closed

Error installing 10.0.6 on shared server - intl not installed #30498

jfou opened this issue Feb 16, 2018 · 7 comments

Comments

@jfou
Copy link

jfou commented Feb 16, 2018

Steps to reproduce

  1. Download and run setup-owncloud.php on shared server (Dreamhost)
  2. OC installs, all dependencies present

Expected behaviour

Install proceeds with naming of database, user, etc.

Actual behaviour

Message displayed upon navigating to domain.org/owncloud

PHP module intl not installed.
Please ask your server administrator to install the module.

PHP modules have been installed, but they are still listed as missing?
Please ask your server administrator to restart the web server.

Note: I have installed older versions of OC (9.1, I believe) on this domain in the past. I have no idea what the issue is now. I do not have sudo since it's a shared server, so my options are somewhat limited without more info from people more knowledgeable than me.

Server configuration

Operating system:
Debian

Web server:

Database:
mySQL, though it install seems to fail before this point.

PHP version:
Tried using 5.6, 7.0, and 7.1 on the site - same behavior

ownCloud version: 10.0.6

Updated from an older ownCloud or fresh install: Fresh

Where did you install ownCloud from: Owncloud servers

Signing status (ownCloud 9.0 and above):

Login as admin user into your ownCloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results into https://gist.github.com/ and puth the link here.

Installation fails before this point.

The content of config/config.php:

'[something]', ); **List of activated apps:** **Installation fails before this point.** **Are you using external storage, if yes which one:** No **Are you using encryption:** yes/no **Installation fails before this point.** **Are you using an external user-backend, if yes which one:** ### Client configuration **Browser:** FF, Chrome, Edge - same behavior on each. **Operating system:** Win10 #### ownCloud log (data/owncloud.log) **Installation fails before this point.** Many thanks for any info, hints, etc.
@jfou jfou changed the title Error installing 10.0.6 on shared server Error installing 10.0.6 on shared server - intl not installed Feb 16, 2018
@PVince81
Copy link
Contributor

intl is now a hard requirement, see https://doc.owncloud.org/server/10.0/admin_manual/release_notes.html#php-intl-now-is-a-hard-requirement

The reason is that too many people had issues with file name encodings which were due to the fact that the intl module was not enabled. Please ask your hoster to enable this PHP module.

@jfou
Copy link
Author

jfou commented Feb 16, 2018

@PVince81 In working with my host, phpinfo() returns:

  | './configure' '--prefix=/usr/local/php71' [somestuff]-- | --enable-intl=shared' '

So I just needed to add to my phprc (in the appropriate php version folder):

extension = intl.so

@hringriin
Copy link

hringriin commented Mar 3, 2018

I have added extension=intl.so in every php.ini I have found. I have no clue which php version my owncloud uses, but I'm stuck with

PHP module intl not installed.
Please ask your server administrator to install the module.

I also have copied the intl.ini file which I only found in /etc/php/7.0/modules-available to every other php-folder the phpenmod or php5enmod command listed while trying to enable the module intl. This is extremely annoying.

Beside that I have reinstalled the php-intl package with apt serveral times.

@jfou
Copy link
Author

jfou commented Mar 3, 2018

@hringriin It has less to do with owncloud, and more to do with your host.

First, either run phpinfo() from ssh OR make a file called phpinfo.php that has the code:

<?php
phpinfo();
?>

This will tell you what version of php your host is using.

Then, you'll add the extension =intl.so at the END of the php.ini file, or at least outside any default coding by your host. (Dreamhost kept overwriting my changes - unknown to me - because I was putting the changes next to their default stuff! Made me crazy.)

Keep in mind that many hosts now use a file called phprc (with no file extension) in a hidden root folder called .php

I hope this helps!

@hringriin
Copy link

hringriin commented Mar 3, 2018

@jfou Thanks for your reply!

<?php
  phpinfo();
?>

this is showing php5.6 is installed, which confuses me, because installed are a couple of php versions, including php7.

So I added extension=intl.so to the very end of /etc/php/5.6/apache/php.ini and restarted apache2, but no change.

With the mlocate package locate -i phprc could not find a phprc. I updated the database prior to that of course.

@hringriin
Copy link

Solved ... the problem was php5.x was still installed. I'd recommend an error message which provides version numbers, that might have saved a couple of people a lot of trouble and unnecessary research.

@lock
Copy link

lock bot commented Jul 31, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Jul 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants