CodeIgniter 4 problem installing with manual
Asked Answered
I

4

1

CodeIgniter\Exceptions\FrameworkException The framework needs the following extension(s) installed and loaded: {0}. SYSTEMPATH\CodeIgniter.php at line 224

Inellineloquent answered 6/2, 2021 at 13:32 Comment(0)
P
12

I faced same issue and resolve by following below steps:

  1. go to the app=> Config => Boot => production.php in your project

  2. Change the ini_set('display_errors', '0') to ini_set('display_errors', '1') above will show you the error detail then do the following:

  3. Open [xampp_folder_path]/php/php.ini to edit.

  4. Search for ;extension=intl and remove the ;.

  5. Save the php.ini file and restart Apache.

reference/thanks to: Chibueze Agwu and mail2bapi

Portion answered 8/2, 2021 at 10:59 Comment(0)
D
1

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.

Depoliti answered 25/6, 2021 at 13:36 Comment(0)
H
0

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

Hybridize answered 25/12, 2021 at 23:13 Comment(0)
G
0

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

Gasolier answered 28/6, 2022 at 17:52 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.