homestead

Laravel vagrant up not working - Errno::EADDRNOTAVAIL

随声附和 提交于 2019-11-29 11:23:02
问题 I have recently had some errors while a part of the Laravel environment or Windows 10 updated, so after a lot of trials and errors I've decided to delete everything and start from scratch. So now I have new VirtualBox, Vagrant, Laravel/Homestead box and Homestead itself. However, I do get this error: $ vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Importing base box 'laravel/homestead'... ==> homestead-7: Matching MAC address for NAT networking...

2019 Mac下安装运行Homestead环境

风流意气都作罢 提交于 2019-11-29 01:44:55
  为了能提高自己的价值,还是要坚持学习新东西才行。这不,从多学会一个PHP开发框架开始。在开始使用Laravel之前,很多“经验”告诉我要先安装Homestead,至于好处,大家可以自己百度,我就不在此过多赘述了,至少我是比较认可这些经验之谈的,况且,多了解一些开发环境的东西也没有坏处。   我是一个有些眼高手低的人,所以在开始安装Homestead之前浏览比较了很多安装经验贴,并且本着尽量使用新版软件的思路,在VirtualBox和Vagrant的安装时,我都从官网下载了最新版本进行安装。   整个安装过程参考了 Laravel学院里面的部分内容 https://learnku.com/docs/laravel-development-environment/5.7/development-environment-macos/2901 建议先去看这个教程。除了在最初的软件版本上选择了最新的,其他步骤都是参考此文档。   本机系统:macOS Mojave 10.14.6   VirtualBox和Vagrant选择“下一步”进行安装;其他步骤按照文档提示,在终端输入指令即可,在小白阶段不需要修改任何配置选项,所有内容选择默认配置项就行。      成功安装后的截图如下         整个过程都是安装教程来,没有太多复杂的地方,我是比较顺利的就安装成功了,暗自庆幸。    来源

There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. windows 10

百般思念 提交于 2019-11-28 23:12:57
I just got laravel homestead to run yesterday using powershell. Now, it won't even run. I just suspended vagrant and turned off my pc. Now it's just giving me this error: Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Clearing any previously set forwarded ports... There was an error while executing `VBoxManage`, a CLI used by Vagrant for controlling VirtualBox. The command and stderr is shown below. Command: ["modifyvm", "b21f2dd0-7f73-4d0f-b1e0-0f82ecdda1fe", "--natpf1", "delete", "ssh", "--natpf1",

8天学会PHP之day4 框架环境搭建

断了今生、忘了曾经 提交于 2019-11-28 20:44:30
一、框架选择 目前PHP主流的框架有4个,Yii、ThinkPHP、laravel和codeigniter。 PHP框架与其他语言的框架有些不同。PHP的框架都是一些大而全的大东西。 不像Java语言,Spring负责依赖注入、SpringMVC负责控制器、Mybatis负责数据库相关、SpringSecurity负责权限相关,各司其职。不过SpringBoot已经逐渐成为一个地基型框架。 由于时间有限,我没有选择每个框架都尝试一下。从各自的官网上面看设计理念,我个人认为Yii算是佼佼者,但是这里要选择学习laravel。 为什么?因为laravel在GitHub上面的star数完全碾压其他三个框架。另外,我比较欣赏laravel的自我介绍:The PHP Framework for Web Artisans,翻译过来就是Web工匠的PHP框架。而且它一再强调自己的语法很优雅。 二、开发环境搭建 Homestead laravel推荐使用 laravel/homestead 作为开发环境。 homestead是什么呢? 官方解释:Laravel Homestead 是一个官方预封装的 Vagrant box ,它为你提供了一个完美的开发环境,你不需要在本地机器安装 PHP、 web 服务器和其他的服务器软件。 那么它的本质就是一个提供开发环境的虚拟机。 它依赖于 Vagrant 。

debugging laravel artisan from PHPStorm with homestead

蹲街弑〆低调 提交于 2019-11-28 19:40:01
I setup Laravel Homestead. I then configured both homestead xdebug.ini and PHPStorm to make the debugging work. Here is my xdebug.ini inside homestead zend_extension=xdebug.so xdebug.remote_autostart = on xdebug.remote_enable = on xdebug.remote_connect_back = on xdebug.remote_port = 9000 xdebug.idekey = "vagrant" To start a debugging session the steps I follow are In PHPStorm --> Start Listening for connections In PHPStorm set a breakpoint In my browser --> Use XDebug Chrome Helper OR add to my URL ?XDEBUG_SESSION_START= Load the page This works perfectly. My problem is when I'm inside

Laravel Homestead hangs at SSH auth method: private key on mac

旧城冷巷雨未停 提交于 2019-11-28 16:31:08
问题 I can't seem to get Homestead running. It hangs at SSH auth method: private key. The Homestead VM starts. I can go to VirtualBox and open the terminal window and login with vagrant:vagrant. I can't vagrant ssh, ssh vagrant@127.0.0.1:2204 or ssh vagrant@127.0.0.1 -p 2204. None of my folders show up in the VM, but the VirtualBox says they are mapped. Every time I vagrant up, I get: vagrant up Bringing machine 'homestead-7' up with 'virtualbox' provider... ==> homestead-7: Checking if box

Using vagrant and homestead for multiple sites and per project installation

爷,独闯天下 提交于 2019-11-28 16:29:53
问题 I have been using XAMPP for quite a time, and after discovering Laravel and finding out, that I quite like it, I also wanted to use Homestead. The problem I'm having is, that I can't seem to be able to run multiple sites. I have tried various things, but the main problem currently is, that one project works, while all the others are getting a connection timeout, when trying to access their webpage. These are the steps I've taken to use Homestead Installing VirtualBox Installing Vagrant Adding

How configure Homestead and xip.io?

和自甴很熟 提交于 2019-11-28 08:58:38
问题 I want to access from other devices (iphone, android device, etc) to my sites on homestead in my machine. My machine and all device are on same network. I want to use http://xip.io but I could not confgure it. My ip machine is 192.168.0.12 The ip for sites on Homestead is 192.168.10.10 This is the file hosts: 127.0.0.1 localhost 127.0.1.1 host #Virtual Hosts on Homestead 192.168.10.10 siteOne.com 192.168.10.10 siteTwo.app 192.168.10.10 otherSite.app # The following lines are desirable for

error “ETXTBSY: text file is busy” on npm install

浪尽此生 提交于 2019-11-28 08:57:46
When running npm install [any package] or even npm install on homestead I get the following error: npm ERR! ETXTBSY: text file is busy, rmdir '/home/vagrant/valemus-shop-starter/valemus-shop/node_modules/fsevents' Debug log can be seen here Box 'laravel/homestead' (v3.0.0) Node: v8.2.1 NPM: 5.3.0 I tried removing the fsevents directory, however, it doesn't exist. How do I fix this? Downgraing the npm version to 5.7.1 did the trick for me. Command used to downgrade: npm install -g npm@5.7.1 I am using Win10, Vagrant, Ubuntu v14.04 and Node v8.11.4 I ran into the same thing on Windows 10 +

homestead修改php版本

大憨熊 提交于 2019-11-28 07:17:05
登录后 如果之前没有设置过root密码 sudo passwd root 以root 权限执行如下命令,选择对应php版本 # 查看所有 php 版本和当前版本 update-alternatives --display php # 执行后,会列出当前 php 所有版本和编号,输入编号,切换到执行的版本 update-alternatives --config php 来源: https://www.cnblogs.com/ifme/p/11398414.html