CodeIgniter\Exceptions\FrameworkException The framework needs the following extension(s) installed and loaded: {0}. SYSTEMPATH\CodeIgniter.php at line 224
I faced same issue and resolve by following below steps:
go to the app=> Config => Boot => production.php in your project
Change the ini_set('display_errors', '0') to ini_set('display_errors', '1') above will show you the error detail then do the following:
Open [xampp_folder_path]/php/php.ini to edit.
Search for ;extension=intl and remove the ;.
Save the php.ini file and restart Apache.
reference/thanks to: Chibueze Agwu and mail2bapi
Look for the php.ini file(C:\xampp\php\php.ini:921) and search for the
extension=intl
line, and
uncomment. Then run the command php spark serve
, in the terminal of your application path.
For linux user:
the php used by the apache webserver
/etc/php/{version}/apache2/php.ini
the php used by the terminal/command line
/etc/php/{version}/cli/php.ini
In both case (apache/cli), Search for ;extension=intl and remove the ;.
The next to do is to install the extension if not exist
sudo apt-get install php7.4-intl
Afterwards, restart your apache
sudo systemctl restart apache2
Voila, problem solved
If you are using Docker
and an apache
image, you need to configure the php intl
extension:
FROM php:7.4.27-apache-buster
RUN apt-get -y update \
&& apt-get install -y libicu-dev \
&& docker-php-ext-configure intl \
&& docker-php-ext-install intl;
...
Source: https://mcmap.net/q/347536/-php-intl-extension-in-docker-container
© 2022 - 2024 — McMap. All rights reserved.