Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

BartJan's avatar

Spark Installation Artisan is failing

Good Evening,

I just tried to install Spark to my Homestead environment but stopt at the folowing Error:

PHP Warning: copy(/home/vagrant/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34

&&

Warning: copy(/home/vagrant/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34

&&

Could not open input file: artisan

Any Idea's yet? Im folowing This tutuorial:

https://laravel-news.com/2015/09/laravel-spark/ to install it.

Regards, Bart Jan

0 likes
8 replies
bobbybouwmann's avatar

DId you run composer install? It looks like it can't find the source code

BartJan's avatar

At First i just installed the Spark installation commands, an by that ran the spark install CL command. On you're gues i just did an composer install an it installed a lot of things (and gave a bunch of symphony suggestions) re-run of spark Install and gives met The following error:

PHP Warning: copy(/home/vagrant/vendor/laravel/spark/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34 PHP Stack trace: PHP 1. {main}() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:0 PHP 2. Symfony\Component\Console\Application->run() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:13 PHP 3. Symfony\Component\Console\Application->doRun() /home/vagrant/.composer/vendor/symfony/console/Application.php:126 PHP 4. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/.composer/vendor/symfony/console/Application.php:195 PHP 5. Symfony\Component\Console\Command\Command->run() /home/vagrant/.composer/vendor/symfony/console/Application.php:878 PHP 6. Laravel\SparkInstaller\Console\InstallCommand->execute() /home/vagrant/.composer/vendor/symfony/console/Command/Command.php:259 PHP 7. copy() /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php:34

Warning: copy(/home/vagrant/vendor/laravel/spark/config/app.php): failed to open stream: No such file or directory in /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php on line 34

Call Stack: 0.0001 226376 1. {main}() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:0 0.0081 1609296 2. Symfony\Component\Console\Application->run() /home/vagrant/.composer/vendor/laravel/spark-installer/spark:13 0.0104 1944200 3. Symfony\Component\Console\Application->doRun() /home/vagrant/.composer/vendor/symfony/console/Application.php:126 0.0104 1945120 4. Symfony\Component\Console\Application->doRunCommand() /home/vagrant/.composer/vendor/symfony/console/Application.php:195 0.0105 1945624 5. Symfony\Component\Console\Command\Command->run() /home/vagrant/.composer/vendor/symfony/console/Application.php:878 0.0106 1949664 6. Laravel\SparkInstaller\Console\InstallCommand->execute() /home/vagrant/.composer/vendor/symfony/console/Command/Command.php:259 6.6974 1949984 7. copy() /home/vagrant/.composer/vendor/laravel/spark-installer/src/Console/InstallCommand.php:34

Could not open input file: artisan

So the same error ;)

bobbybouwmann's avatar

Aah I se the problem. You are not at the root of your project. You need to cd to your project directory and then run the Spark command

BartJan's avatar

Thnx @bobbybouwmann but Same result ;(, Ill try to setup a new local server tomorrow its getting late over here...

BartJan's avatar

Worked now from the root of my project, and still having the same errors :(

manshu's avatar

I've similar issue. Error Output: PHP Fatal error: Class 'Illuminate\Foundation\Auth\User' not found in

jekinney's avatar

Last I check, when 5.2 was released, spark wasn't compatable with 5.2 only 5.1.

edwardkarlsson's avatar

I know this is an old post, but I ran into this problem. For me it was because I didn't have both the ~/.composer/vendor/bin and ~/Sites/spark-installer in my $PATH.

I added both these lines in my .zshrc file (I guess .bashrc if you use that):

export PATH=$PATH:~/.composer/vendor/bin
export PATH=$PATH:~/Sites/spark-installer

After that it worked like a charm.

Hope this helps anyone that have the same problem.

Note: I am running this on a mac, change the paths to suit your platform

Please or to participate in this conversation.