i just copy codeingiter 4 in my XAMPP for Linux 7.4.3 which have PHP Version 7.4.3
but getting error like
Whoops!
We seem to have hit a snag. Please try again later…
i just copy codeingiter 4 in my XAMPP for Linux 7.4.3 which have PHP Version 7.4.3
but getting error like
Whoops!
We seem to have hit a snag. Please try again later…
5
Answers
Pleaase try to install using composer
go to htdocs folder
composer create-project codeigniter4/appstarter project-root -s rc
replace project-root by your project folder name
and then
cd your_project_name
By Defaults CI 4 comes with production platform so it not showing the errors on the frontend. To see the errors, Open .htaccess file from the root and then enter
it change the environment to development
the alternate way open .env file and then change the CI_ENVIRONMENT to development like that
Remember don’t forget to remove # from the begining
CodeIgniter starts up in production mode. This is a safety feature to keep your site a bit more secure in case settings are messed up once it is live. So first let’s fix that. Copy or rename the
env
file to.env
. Open it up. Uncomment the line withCI_ENVIRONMENT
on it, and changeproduction
todevelopment
:If you are using XAMPP, write
extension = intl
in the PHP file (php.ini
).In Codeigniter 4 source code have a folder named
, just update it’s access permission. Sometimes it’ll help to get rid of Whoops. Also can check the video for Ubuntu / Linux