0

I'm running Xampp on Ubuntu 16.04 and I'm trying to get CakePhp to work. After uncommenting the line corresponding to the extension in php.ini, I keep getting this message when running php:

PHP Warning: PHP Startup: Unable to load dynamic library '/opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_intl.so' - /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_intl.so: cannot open shared object file: No such file or directory in Unknown on line 0

I've tried multiple ways to solve that such as defining the extension path in php.ini and downloading intl with pecl but I can't get it to function proprely.

Thanks in advance for your help!

aslad
  • 120
  • 11
  • have a look at these answers http://stackoverflow.com/q/10565521/5930557 – Blueblazer172 Nov 13 '16 at 11:47
  • These answers suggest to simply disable the extension but I actually need it for CakePhp to work, also, the extension is installed in both the extension folder of xampp and the scripts folder of apache2 so I really don't know what to do since /opt/lampp/lib/php/extensions/no-debug-non-zts-20131226/php_intl.so exists... – aslad Nov 13 '16 at 11:55
  • what version of php are you using? because php_intl packages are different for versions. – Klaus Nov 14 '16 at 12:50

2 Answers2

1

Install intl extension by if your php version is 7.0

apt-get install php7.0-intl 

if your php version is 5.6 then run

apt-get install php56-intl

then restart your apache. hope your problem will be solve

tarikul05
  • 1,843
  • 1
  • 16
  • 24
1

Problem solved: it was trying to load a library that was already loaded via the command line (so no need for the shared object). I commented the line in php.ini and everything went well, no more warnings and cakephp is working!

aslad
  • 120
  • 11