Am reading, Jump Start PHP Environment, and in chapter 4, “using vagrant”, am running into this error after downloading the github repo.
When running from git-bash terminal:
bin/folderfix.sh
vagrant up
the output:
==> default: Failed to restart php7.0-fpm.service: Unit php7.0-fpm.service not found.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
I googled that error and search on the forum but can’t seemed to find an answer. Can you help.
I have, but I noticed that after unzipping the file, the homestead_improved-master directory is nested inside another directory with the same name. So, from the directory that I unzipped the repo, I cd into the created directory.
hmisa@hs MINGW64 ~/proj
$ cd ~/homestead_improved-master
bash: cd: /c/Users/hmisa/homestead_improved-master: No such file or directory
hmisa@hs MINGW64 ~/proj
$ cd homestead_improved-master/
hmisa@hs MINGW64 ~/proj/homestead_improved-master
$ bin/folderfix.sh
bash: bin/folderfix.sh: No such file or directory
hmisa@hs MINGW64 ~/proj/homestead_improved-master
$ cd homestead_improved-master/
hmisa@hs MINGW64 ~/proj/homestead_improved-master/homestead_improved-master
$ bin/folderfix.sh
But this works, cd homestead_improved-master. If I cd into the nested folder, am at the root of where the files are for this repo. Is there a difference from cd ~/ to cd?
Then I run vagrant up and get the same error:
==> default: Failed to restart php7.0-fpm.service: Unit php7.0-fpm.service not found.
The SSH command responded with a non-zero exit status. Vagrant
assumes that this means the command failed. The output for this command
should be in the log above. Please read the output to determine what
went wrong.
This is what the dir returns (ls returns the same):
hmisa@hs MINGW64 ~/proj
$ dir
homestead_improved-master test
I have two directories and homestead_improved-master has nested directories. So when cd ~/homestead_improved-master, I get a No such file or directory error. Thus, making me navigate to the directory where the project is located, but resulting in the same error. Sorry if this sounds somewhat repetitive. Thx.