homestead

SQLSTATE[HY000] [2002] Connection refused within Laravel homestead

冷暖自知 提交于 2019-11-28 06:17:31
Using Mac OS X and Homestead 2.2.1 with Laravel 5.2. In terminal (within homestead in my project folder) I can do php artisan to see all the available commands. When I try to run php artisan migrate I get a connection error: SQLSTATE[HY000] [2002] Connection refused I have setup a Laravel project with these .env settings DB_HOST=127.0.0.1 DB_DATABASE=tcv DB_USERNAME=homestead DB_PASSWORD=secret I have also tried localhost for DB_HOST and root for DB_USERNAME and DB_PASSWORD. And all possible variations of these put together! In Sequel Pro (db management application) I CAN connect with these

homestead安装swoole扩展

China☆狼群 提交于 2019-11-28 05:09:32
配置好ubuntu的国内镜像源并更新 查看php版本,并安装对应php版本的dev sudo apt install php7.2-dev 配置pecl sudo pecl channel-update pecl.php.net sudo pear clear-cache sudo pear update-channels sudo pear upgrade 安装php的swoole扩展 sudo pecl install swoole 在 php.ini 中增加 extension=swoole.so php -i | grep php.ini vim /etc/php/7.2/cli/php.ini # 在php.ini的尾部增加如下代码 extension=swoole.so 重启php sudo service php7.2-fpm restart 查看php是否成功安装swoole模块 php -m | grep swoole 补充 默认数据库账号密码 账号: homestead 密码:secret 默认 ssh 账号密码 账号:vagrant 密码:vagrant 创建默认 root 用户 sudo passwd root 来源: https://www.cnblogs.com/ifme/p/11393180.html

Laravel系列 Web

落花浮王杯 提交于 2019-11-28 01:09:10
一、Homestead准备 上一篇文章已经对它的配置进行了说明,下面对Homestead.yaml进行说明 1 --- 2 ip: "192.168.10.10" 3 memory: 2048 4 cpus: 1 5 provider: virtualbox 6 7 authorize: ~/.ssh/id_rsa.pub 8 9 # 没有pub的是私钥,有pub的公钥 10 keys: 11 - ~/.ssh/id_rsa 12 - ~/.ssh/id_rsa.pub 13 14 # map:本机需要同步的目录 15 # to:同步到Homestad虚拟主机中的哪个目录 16 folders: 17 - map: ~/code 18 to: /home/vagrant/code 19 type: nfs 20 21 # map: 虚拟域名 22 # to:访问虚拟域名的目录 23 sites: 24 - map: homestead.test 25 to: /home/vagrant/code/public 26 - map: partTimeCat.com 27 to: /home/vagrant/code/partTimeCat/public 28 29 # 执行vagrant up --provision 后生成的数据库 30 databases: 31 -

error: OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 [duplicate]

一个人想着一个人 提交于 2019-11-27 22:31:48
This question already has an answer here: OpenSSL errno 10054,connection refused, whilst trying to connect to our server 2 answers While running the command vagrant box add laravel/homestead , I am getting this error: An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 10054 Can you help me? I got the answer by some searching on GitHub, replace this vagrant box add laravel/homestead with vagrant box add laravel/homestead http://atlas.hashicorp.com/laravel/boxes

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

↘锁芯ラ 提交于 2019-11-27 21:11:35
问题 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.

How to get https certificate working on local Laravel Homestead site

六眼飞鱼酱① 提交于 2019-11-27 20:15:01
I'm getting this problem: The error that I'm seeing in Windows 10 Chrome Version 65.0.3325.181 (Official Build) (64-bit) is: Your connection is not private Attackers might be trying to steal your information from ((mysite)) (for example, passwords, messages, or credit cards). Learn more NET::ERR_CERT_AUTHORITY_INVALID This page is not secure (broken HTTPS). Certificate - missing This site is missing a valid, trusted certificate (net::ERR_CERT_AUTHORITY_INVALID). Firefox Quantum 59.0.2 (64-bit) says: Your connection is not secure The owner of ((mysite)) has configured their website improperly.

PhpStorm debug with Laravel Homestead not working

孤街醉人 提交于 2019-11-27 03:00:44
问题 I'm trying to setup PhpStorm to debug correctly within a Vagrant Homestead environment. Xdebug is correctly installed and I'm running PHP 7.1 After setting a breakpoint in my app the script passes through any breakpoints and I get this message: debug session was finished without being paused It may be caused by path mappings misconfiguration or not synchronized local and remote projects. To figure out the problem check path mappings configuration for 'wedleague.loc' server at PHP|Servers or

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

*爱你&永不变心* 提交于 2019-11-27 02:04:47
问题 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? 回答1: Downgraing the npm version to 5.7.1 did the trick for me. Command used to downgrade: npm install -g npm@5.7

laravel安装

家住魔仙堡 提交于 2019-11-27 00:17:39
概述 最近有项目要用PHP开发,以前用过 yii framework , 不过现在发现大家都推荐 Laravel ,大概看了下这个框架, 发现确实不错,所以就决定用它开发新项目。这篇文章记录了Laravel的安装过程。 安装 基于PHP的项目一般推荐用 LAMP 环境,可以在Linux下配置Apache(Nginx),Mysql,PHP还是比较麻烦的,所有Laravel提供了一个虚拟机镜像来帮助我们省去安装和配置环境的烦恼。Laravel提供了一个基于 Vagrant 的镜像,支持 VirtualBox 和 VMWare 两种虚拟机软件。 Laravel提供的这个镜像叫 Laravel Homestead 。当然Laravel也支持手工安装,不过那样比较麻烦,现在以 Homestead 方式安装Laravel。 本文涉及的一些软件,可以从 百度云盘 中下载,这里放的是现在(2016-03-01)最新的软件。 Vagrant 安装 Laravel Homestead 的第一步是安装 Vargant ,根据不同的操作系统安装不同版本。安装很简单,下载安装文件直接安装即可。 Homestead Vagrant box 安装好Vagrant后就可以通过它安装 Homestead Vagrant box 了。安装命令为: vagrant box add laravel/homestead

Homestead 安装其它的PHP版本

ⅰ亾dé卋堺 提交于 2019-11-26 23:36:10
运行环境: 系统: win10 软件: virtualbox 6.2 vagrant 2.2.4 homestead 7.1.0 sudo apt-get update sudo apt-get -y install php5.6-mysql php5.6-fpm php5.6-mbstring php5.6-xml php5.6-curl 安装中出现 Fetched 3,466 kB in 6min 24s (9,022 B/s) E: Failed to fetch http://ppa.launchpad.net/ondrej/php/ubuntu/pool/main/p/php5.6/php5.6-common_5.6.40-8+ubuntu18.04.1+deb.sury.org+1_amd64.deb Connection timed out [IP: 91.189.95.83 80] E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? 这是因为下载超时导致的,继续执行 sudo apt-get -y install php5.6-mysql php5.6-fpm php5.6-mbstring php5.6-xml php5.6-curl