Hi fellow "devils" ... i think im postng in the wrong directory (again) as im new to this forum .
Havin some issues with Laravel and hoping that someone had and worked out .
Im trying to learn Laravel but i can not run it due to some issues.
if i do " laravel new myproject" i get a lot of errors ...
Now if i enable all of them in my /usr/local/etc/php.ini file ( adding some extensions and removing some ; ) i have another problem
Looks like its loaded, not loaded ... can not load ? It creates folder but no autoload file for artisan.
If i place correct location of extensions in my php.ini file - php shows me Fatal error.
Thank You.
Havin some issues with Laravel and hoping that someone had and worked out .
Im trying to learn Laravel but i can not run it due to some issues.
if i do " laravel new myproject" i get a lot of errors ...
Code:
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v9.36.4, ..., 9.x-dev] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.x-dev].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.x-dev].
- league/flysystem[3.0.16, ..., 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., 9.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php.ini
- /usr/local/etc/php/ext-10-opcache.ini
- /usr/local/etc/php/ext-18-session.ini
- /usr/local/etc/php/ext-20-bz2.ini
- /usr/local/etc/php/ext-20-calendar.ini
- /usr/local/etc/php/ext-20-ctype.ini
- /usr/local/etc/php/ext-20-curl.ini
- /usr/local/etc/php/ext-20-dom.ini
- /usr/local/etc/php/ext-20-filter.ini
- /usr/local/etc/php/ext-20-gd.ini
- /usr/local/etc/php/ext-20-iconv.ini
- /usr/local/etc/php/ext-20-intl.ini
- /usr/local/etc/php/ext-20-mbstring.ini
- /usr/local/etc/php/ext-20-mysqli.ini
- /usr/local/etc/php/ext-20-pdo.ini
- /usr/local/etc/php/ext-20-phar.ini
- /usr/local/etc/php/ext-20-posix.ini
- /usr/local/etc/php/ext-20-simplexml.ini
- /usr/local/etc/php/ext-20-sqlite3.ini
- /usr/local/etc/php/ext-20-tokenizer.ini
- /usr/local/etc/php/ext-20-xml.ini
- /usr/local/etc/php/ext-20-xmlwriter.ini
- /usr/local/etc/php/ext-20-zip.ini
- /usr/local/etc/php/ext-20-zlib.ini
- /usr/local/etc/php/ext-30-pdo_mysql.ini
- /usr/local/etc/php/ext-30-pdo_sqlite.ini
- /usr/local/etc/php/ext-30-xmlreader.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-fileinfo` to temporarily ignore these required extensions.
Code:
laravel new myproject
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "session" is already loaded in Unknown on line 0
Warning: Module "session" is already loaded in Unknown on line 0
PHP Warning: Module "bz2" is already loaded in Unknown on line 0
<-- lists all modules -->
Warning: Module "xmlreader" is already loaded in Unknown on line 0
Creating a "laravel/laravel" project at "./myproject"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.3.12)
- Installing laravel/laravel (v9.3.12): Extracting archive
Created project in /srv/myproject
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "session" is already loaded in Unknown on line 0
<-- lists all modules -->
Problem 1
- laravel/framework[v9.36.4, ..., 9.x-dev] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.x-dev].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.x-dev].
- league/flysystem[3.0.16, ..., 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., 9.x-dev].
To enable extensions, verify that they are enabled in your .ini files:
Warning: Module "xmlreader" is already loaded in Unknown on line 0
Creating a "laravel/laravel" project at "./myproject"
Info from https://repo.packagist.org: #StandWithUkraine
Installing laravel/laravel (v9.3.12)
- Installing laravel/laravel (v9.3.12): Extracting archive
Created project in /srv/myproject
> @php -r "file_exists('.env') || copy('.env.example', '.env');"
Cannot load Zend OPcache - it was already loaded
PHP Warning: Module "session" is already loaded in Unknown on line 0
Warning: Module "xmlreader" is already loaded in Unknown on line 0
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/framework[v9.36.4, ..., 9.x-dev] require league/flysystem ^3.8.0 -> satisfiable by league/flysystem[3.8.0, ..., 3.x-dev].
- laravel/framework[v9.19.0, ..., v9.36.3] require league/flysystem ^3.0.16 -> satisfiable by league/flysystem[3.0.16, ..., 3.x-dev].
- league/flysystem[3.0.16, ..., 3.x-dev] require league/mime-type-detection ^1.0.0 -> satisfiable by league/mime-type-detection[1.0.0, ..., 1.11.0].
- league/mime-type-detection[1.0.0, ..., 1.3.0] require php ^7.2 -> your php version (8.2.0RC2) does not satisfy that requirement.
- league/mime-type-detection[1.4.0, ..., 1.11.0] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires laravel/framework ^9.19 -> satisfiable by laravel/framework[v9.19.0, ..., 9.x-dev].
Looks like its loaded, not loaded ... can not load ? It creates folder but no autoload file for artisan.
If i place correct location of extensions in my php.ini file - php shows me Fatal error.
Thank You.