homestead

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

不打扰是莪最后的温柔 提交于 2019-11-26 23:10:00
问题 This question already has answers here : OpenSSL errno 10054,connection refused, whilst trying to connect to our server (2 answers) Closed 2 years ago . 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? 回答1: I got the answer by some searching on GitHub,

Maximum function nesting level of '100' reached, aborting after upgrading to Laravel 5.1

对着背影说爱祢 提交于 2019-11-26 20:06:39
问题 I'm getting this error message in my Laravel application after I upgraded to Laravel 5.1. FatalErrorException in Dispatcher.php line 200: Maximum function nesting level of '100' reached, aborting! This issue occurs on some URLs of my app. I have done dozens of composer update but issue still persist. Any suggestion at all will be appreciated 回答1: Issue is caused by default xdebug.max_nesting_level which is 100. The workaround for now is to increase xdebug.max_nesting_level to a certain level

How to get https certificate working on local Laravel Homestead site

梦想与她 提交于 2019-11-26 20:06:35
问题 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

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

早过忘川 提交于 2019-11-26 19:48:44
问题 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

Access denied for user 'homestead'@'localhost' (using password: YES)

自古美人都是妖i 提交于 2019-11-26 19:23:13
I'm on a Mac OS Yosemite using Laravel 5.0. While in my local environment, I run php artisan migrate I keep getting : Access denied for user 'homestead'@'localhost' (using password: YES) Configuration Here is my .env APP_ENV=local APP_DEBUG=true APP_KEY=***** DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret app\config\database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'database' => env('DB_DATABASE', 'homestead'), 'username' => env('DB_USERNAME', 'homestead'), 'password' => env('DB_PASSWORD', 'secret'), 'unix_socket' => '/tmp

homestead中nginx替换为openresty

倖福魔咒の 提交于 2019-11-26 14:49:51
1. 下载包(版本自行挑选) wget https://openresty.org/download/openresty-1.11.2.2.tar.gz tar -xzvf openresty-1.11.2.2.tar.gz cd openresty-1.11.2.2 2. 查看 nginx 编译选项: nginx -V nginx version: nginx/1.10.3 (省略) 3. 配置 openresty 的编译选项: ./configure --prefix=/usr/share/openresty --with-luajit --without-http_redis2_module --with-http_stub_status_module --with-http_v2_module --with-http_gzip_static_module --with-http_sub_module --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-mcUg8N/nginx-1.14.0=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='

Mysql的冷备热备(数据备份)

左心房为你撑大大i 提交于 2019-11-26 12:27:28
冷备可以是mysql工具 msqldump。 mysqldump -u username -p dbname table1 table2 ... -> BackupName.sql dbname 数据库名称 table1 table2 是表名称 BackupName.sql 备份保存的相对路径的sql文件 执行下面命令。 mysqldump -u homestead -psecret homestead > /home/vagrant/backup.sql 然后输入密码然后备份成功。 mysqldump -u homestead -psecret 在终端执行会出现(Warning: Using a password on the command line interface can be insecure.)的情况,我们在mysq配置文件 /etc/mysql/conf.d/mysqldump.cnf。 加上配置,这样执行mysqldump 就不用 -u homestead -psecret user=homestead password=secret 当然我们可以写个简单的shell脚本执行备份命令,然后使用corntab或者supervisor定时跑这个shell脚本。 #!/bin/sh mkdir -p -m 777 /home/vagrant/backup

Access denied for user 'homestead'@'localhost' (using password: YES)

▼魔方 西西 提交于 2019-11-26 08:57:58
问题 I\'m on a Mac OS Yosemite using Laravel 5.0. While in my local environment, I run php artisan migrate I keep getting : Access denied for user \'homestead\'@\'localhost\' (using password: YES) Configuration Here is my .env APP_ENV=local APP_DEBUG=true APP_KEY=***** DB_HOST=localhost DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret app\\config\\database.php \'mysql\' => [ \'driver\' => \'mysql\', \'host\' => env(\'DB_HOST\', \'localhost\'), \'database\' => env(\'DB_DATABASE\', \