0
I moved the Laravel to the homologation server and when I ran the Composer install, I had this problem. Has anyone ever had anything like this? on my machine that rotates under the flat wheel Vagrant.
The environment is Laravel 5.4, Redhat 7 and php 7
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postInstall
> php artisan optimize
PHP Warning: Uncaught ErrorException: require(/var/www/html/gemeos-backend/vendor/rachidlaasri/laravel-installer/src/Providers/../routes/web.php): failed to open stream: No such file or directory in /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php:71
Stack trace:
#0 /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(71): Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'require(/var/ww...', '/var/www/html/g...', 71, Array)
#1 /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php(71): require()
#2 /var/www/html/gemeos-backend/vendor/rachidlaasri/laravel-installer/src/Providers/LaravelInstallerServiceProvider.php(27): Illuminate\Support\ServiceProvider->loadRoutesFrom('/var/www/html/g...')
#3 /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(574): RachidLaasri\LaravelInstaller\Providers\LaravelInstallerServiceProvider->register( in /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 71
PHP Fatal error: Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening required '/var/www/html/gemeos-backend/vendor/rachidlaasri/laravel-installer/src/Providers/../routes/web.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/gemeos-backend/vendor/laravel/framework/src/Illuminate/Support/ServiceProvider.php on line 71
[Symfony\Component\Debug\Exception\FatalErrorException]
Illuminate\Support\ServiceProvider::loadRoutesFrom(): Failed opening requir
ed '/var/www/html/gemeos-backend/vendor/rachidlaasri/laravel-installer/src/
Providers/../routes/web.php' (include_path='.:/usr/share/pear:/usr/share/ph
p')
Script php artisan optimize handling the post-install-cmd event returned with error code 255
The briefcase
/var/www/html/
have write permission and this associated with your main user? By chance you are not running onroot
something right? Because Composer should not run on root, if you did something previously with root, you may have created folders without permission.– Guilherme Nascimento
the /html folder is root:root but the project folder is with my user
– Danilo
But you have not previously run any other commands accidentally with
su
/sudo
?– Guilherme Nascimento
The only command I ran was this: sudo chown -R Danilo.dorgam gemeos-backend/ to pull root from folder and daughters
– Danilo
Danilo which command did you use to install? Was
composer global require "laravel/installer"
and then thelaravel new blog
?– Guilherme Nascimento
on my pc yes, on this server he got from github by sending by Jenkins
– Danilo
Danilo may be something that is outdated and Composer is mixing some version stuff, try to follow the steps of the answer.
– Guilherme Nascimento