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

mrad's avatar
Level 1

Can't make Spark installation work

Hello,

The issue is the following: I seem to be able to setup Spark without error messages, however when I open the site in a web browser connection times out after 1 minute without loading any page.

Note that laravel installer works, npm works etc. This is proven by the fact that I can successfully setup a Laravel Homestead box and connect to it. Spark installer is intalled and i succesfully registered my API token.

Here are the ways I tried to install spark:

  1. with the Spark Installer:

1.1. edited /etc/hosts to include a line like this: 192.168.10.10 spark-test.app

1.2. cloned a Homestead box in my §HOME directory: `git clone http://github.com/laravel/homestead ~/homestead-spark-tes

1.3. initialised the Homestead.yaml file succesfully cd ~/homestead-spark-test bash init.sh

1.4. edited the Homestead.yaml file:

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox
name: homestead-spark-test

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/Code

sites:
    - map: spark-test.app
      to: /home/vagrant/Code/spark-test/public

databases:
    - homestead

1.5. Switched to the ~Code directory and ran the spark installer, with npm dependencies and compiling, successfully cd ~/Code spark new spark-test

1.6. Vagrant up and SSH into my homestead box cd ~/homestead-spark-test sudo vagrant up sudo vagrant ssh

1.7. Now I am in my box and switch to my project directory for finally succesfully migrating the database cd Code cd spark-test php artisan migrate

Everything seems to run smooth, however when I open http://spark-test.app, connection times out, because it is not reachable. I have verified that nginx is running.

The second way was to include 2 more steps before step 1.6.: npm install npm run dev

This does not make any difference. Connection timeout, site not reachable

Finally I tried the manual way, but this did not work, too. I am stuck. :(

Please advice. Thanks.

0 likes
3 replies
DaveBagler's avatar

Did you create a separate homestead box for this spark app? And is there a second homestead box running at the same time?

ejdelmonico's avatar

@mrad This could be caused by a number of problems. I haven't used Spark for about a year now but everything is close to as it was. The primary failures of Spark development installations are the Laravel and Spark installers being outdated as well as not running a newer version of Node. The reason being that Spark pulls in the current Laravel version and Cashier and then alters the appropriate files. In essence, there a lot of possible failure points during installation. When troubleshooting, check the low hanging fruit first like current installers and Node version.

Also, if using Homestead, I use "nfs" so that things are faster in the Spark project. Report back what you verified with versions on the install. And, clear all cache through artisan and the browser.

Please or to participate in this conversation.