"Manor improved" Vagrant VM - failed to restart php7.0-fpm.service: Unit php7.0-fpm.service not found

I am trying to create an instance of a Vagrant VM Windows hosted hostel . See Manor improved on Github . I follow this simple introduction: https://www.sitepoint.com/quick-tip-get-homestead-vagrant-vm-running/

My steps:

git clone https://github.com/swader/homestead_improved my_project cd my_project bin/folderfix.sh vagrant up 

Loading machines and ready. Then the initializer is executed. Then I get the following error message:

==> default: Failed to restart php7.0-fpm.service: No node php7.0-fpm.service was found.

The SSH team responded with an unnecessary exit status. the tramp suggests that this means that the command is not completed. The output for this command should be in the log above. Please read the results to determine what went wrong.

Any clues what to do?

+5
source share
1 answer

This has been fixed at the repo level and should never be repeated if you run git pull inside your estate an improved cloned folder (but outside the VM, not SSH-ed). If your computer is already running, you may need to apply the following steps. But new cars (like the new Homestead Improved clones) will no longer have this). An explanation of what happened is here .

@ daniel-sixl, please try re-loading / re-cloning and starting from scratch, everything should work fine now.


Old solution:

Try changing php7.0-fpm to php7.1-fpm - the window was automatically updated to the new version.

You can do this by going to /etc/nginx/sites-available and changing the required file - its name will correspond to the site that you defined, in accordance with the message you specified. Probably /etc/nginx/sites-available/homestead.app .

-

Edit: Added more detailed instructions for people very new to everything.

Okay, so what you need to do when you are in the folder accessible for sites is to edit the homestead.app file. Something like sudo vim homestead.app will be fine, it will open a basic text editor (which is pretty a nightmare to use when you are new to it, so be patient :)) Sudo is important because you are editing a file that only access to the administrator.

Once you're at, do the following:

  • press / (this activates the "search") and enter php7.0-fpm . This will lead you to a line containing this phrase. If you press / again and press Enter, it will look like "find the next", so it will go to the next line with the phrase or restart at the top if no other lines contain it.
  • when the cursor is on the line using php7.0-fpm (you can move it with arrows, of course), press i . This activated insert mode. Now you can edit the file.
  • change the value 7.0 to 7.1.
  • press ESC to exit edit mode and return to read-only mode.
  • repeat for each row with 7.0
  • after execution, in read-only mode (ESC to make sure) enter :x . Yes, like a smiley with cross-shaped lips. Press Enter. This is short for Save and Quit.
  • You will again be in the folder where you should run sudo service nginx restart .

The new configuration should now take effect, and everything should start working.

+5
source

Source: https://habr.com/ru/post/1261152/


All Articles