kenjis / codeigniter-composer-installer

Installs the offical CodeIgniter 3 with secure folder structure via Composer
MIT License
377 stars 118 forks source link

Fatal error on server #28

Closed abhimanusharma closed 6 years ago

abhimanusharma commented 6 years ago

I am using php7.1, with apache2, got this error after server start and hitting the url http://localhost:8000

agldev@agldev:/var/www/html/codeigniter-projects/ciblog$ bin/server.sh
PHP 7.1.12-3+ubuntu16.04.1+deb.sury.org+1 Development Server started at Tue Dec 19 20:50:16 2017
Listening on http://127.0.0.1:8000
Document root is /var/www/html/codeigniter-projects/ciblog/public
Press Ctrl-C to quit.
[Tue Dec 19 20:50:27 2017] PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Tue Dec 19 20:50:27 2017] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/codeigniter-projects/ciblog/public/bin/router.php' (include_path='.:/usr/share/php') in Unknown on line 0
[Tue Dec 19 20:50:36 2017] PHP Warning:  Unknown: failed to open stream: No such file or directory in Unknown on line 0
[Tue Dec 19 20:50:36 2017] PHP Fatal error:  Unknown: Failed opening required '/var/www/html/codeigniter-projects/ciblog/public/bin/router.php' (include_path='.:/usr/share/php') in Unknown on line 0
kenjis commented 6 years ago

(Edited)

I confirmed it with my PHP 7.2.1.

kenjis commented 6 years ago

@dragonabv v0.4.8 fixes this issue. https://github.com/kenjis/codeigniter-composer-installer/releases/tag/v0.4.8

Please try it.