CodeIgniter -> php spark serve Not Working
18,217
PHP version 7.2 or newer is required, with the intl
extension and mbstring
extension installed.
The following PHP extensions should be enabled on your server: php-json, php-mysqlnd, php-xml
And then follow below steps to install and run CI 4 project:
composer create-project codeigniter4/appstarter project-root
composer clearcache
composer update
- Config Setting:baseUrl in app/Config/App.php and DB info in app/Config/Database.php
php spark serve
Note: clear composer cache before updating composer. For detail info follow CI documentation
Related videos on Youtube
Author by
Daksham
Updated on June 04, 2022Comments
-
Daksham almost 2 years
I have just created a new project with CodeIgniter. I tried to run this command to run the server:
php spark serve
But it is giving me this error:
PHP Warning: require(/mnt/e/dev/learning/php/codeigniter/001/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php): failed to open stream: No such file or directory in /mnt/e/dev/learning/php/codeigniter/001/spark on line 44 PHP Fatal error: require(): Failed opening required '/mnt/e/dev/learning/php/codeigniter/001/app/Config/../../vendor/codeigniter4/framework/system/bootstrap.php' (include_path='.:/usr/share/php') in /mnt/e/dev/learning/php/codeigniter/001/spark on line 44
How can I run this command
-
twknab about 3 yearswere you ever able to figure out a remedy? I'm running PHP > 7.2 as noted in answer below, but also hitting this issue right out of the gate with a fresh install of CI. Do I need to add in a bootstrap package to get server to start?
-
-
KangDo almost 2 yearsonce followed your flows, I can see the app is running. but when I check this url localhost:8080 it's not working
-
Jaydeep Goswami almost 2 years
PHP Fatal error: Uncaught Error: Class "Config\App" not found in E:\projects\ci\vendor\codeigniter4\framework\system\Config\Factories.php:126
I am facing this error. What could be the reason? I tried all possible solutions, but none of them worked. Note: I am using PHP 8.1.6