homestead

Laravel homestead: Unknown database 'projectadmin_db'

帅比萌擦擦* 提交于 2019-12-10 23:34:53
问题 I am new to laravel. I use homestead for development. I have two database connection database.php 'cust_main_db' => [ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'project_db', 'username' => 'homestead', 'password' => 'secret', 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci', 'prefix' => '', 'strict' => false, ], 'admin_main_db' => [ 'driver' => 'mysql', 'host' => 'localhost', 'database' => 'projectadmin_db', 'username' => 'homestead', 'password' => 'secret', 'charset' =>

Laravel homestead multiple sites choose which one is locally accesable

笑着哭i 提交于 2019-12-10 23:31:01
问题 I have multiple sites in laravel homestead. Now, I want to access a spezific site via the ip in my local network. But I get allways the site I dont want... homestead.yaml sites: - map: mdb.local to: /home/vagrant/code/mdb/public type: "apache" - map: zz.tested to: /home/vagrant/code/abc/public type: "apache" - map: 192.168.10.10 to: /home/vagrant/code/mdb/public And my hosts 192.168.10.10 mdb.local 192.168.10.10 zz.tested I can access both on my computer with the domain, however I allways get

Homestead error: The SSH command responded with a non-zero exit status

末鹿安然 提交于 2019-12-10 17:09:13
问题 I get an error when I do homestead up --provision on my homestead machine: ...[success logs here]... ==> default: Running provisioner: shell... default: Running: /var/folders/9j/bsvhbzdn2dx8hjwgnl7nrj7w0000gn/T/vagrant- shell20170127-4343-1dyyzgz.sh ==> default: mysql: ==> default: [Warning] Using a password on the command line interface can be insecure. ==> default: Please use --connect-expired-password option or invoke mysql in interactive mode. The SSH command responded with a non-zero

Has anyone got memcached to work on Laravel Homestead php7 box?

送分小仙女□ 提交于 2019-12-10 14:16:45
问题 I loaded up Laravel/Lumen on the new Homestead php7 box and encountered this error: FatalThrowableError in MemcachedConnector.php line 51: Fatal error: Class 'Memcached' not found Doing a phpinfo(); shows there is no memcached extension, but sudo service memcached status says memcached is running. It seems there is a php7 branch for memcached here: https://github.com/php-memcached-dev/php-memcached/tree/php7 Can anyone guide me on how to get it working in the new php7 Homestead VM? EDIT: I

Laravel [1045] 解决方法 Access denied for user 'homestead'@'localhost'

╄→гoц情女王★ 提交于 2019-12-10 12:08:47
这几天学习Laravel框架遇到了数据库方面的问题。 PDOException in Connector.php line 55:SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) 出现问题解决方法如下 1.确认database.php文件配置正确。 首先检查database.php中自己填写的信息是正确的。 2.检查.env文件 这是默认的.env文件 APP_ENV=local APP_KEY= APP_DEBUG=true APP_LOG_LEVEL=debug APP_URL=http://localhost DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=homestead DB_USERNAME=homestead DB_PASSWORD=secret BROADCAST_DRIVER=log CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp MAIL

Issue with running Vagrant in Homestead

僤鯓⒐⒋嵵緔 提交于 2019-12-10 11:33:23
问题 I tried setting up a virtual machine using Homestead box. I followed documentation on Laravel site for setting up Homestead. When I ran the command vagrant up , it seemed to work in setting a VM. Then it asked to run vagrant provision , which I did. I can't get pass red text 'You are already using composer version 1.1.3 (stable channel)'. I don't know what to do next. Update: here is Homestead.yaml file: 回答1: Needed to edit the file at ~/.homestead/Homestead.yaml instead of ~/Homestead

Laravel and ngrok: url domain is not correct for routes and assets

别来无恙 提交于 2019-12-09 11:20:24
问题 My setup: Homestead on Mac OSX with multiple sites configured I have one site setup using domfit.test as the local domain (auto mapped using hostsupdater) My problem: If I vagrant ssh , and then share domfit.test I get a random generated ngrok url as you'd expect (http://whatever.ngrok.io), however when I access this URL all my resources / routes are being prefixed with http://domfit.test/ (http://domfit.test/login for instance) I've tried the following: Setting APP_URL as the ngrok URL php

Laravel/Symfony: unable to load the “app” configuration file

寵の児 提交于 2019-12-09 10:56:38
问题 After upgrading my Homestead and installing my packages I came across a strange bug. On calling php artisan the following was given as output: In LoadConfiguration.php line 68: Unable to load the "app" configuration file. A few people suggest that this is the cause of Windows (10) capitalising the filenames. However this can't be seen in my folders and also does not apply in my Ubuntu (18.04) environment. Looking in the source code of LoadConfiguration.php we can see that it is using the

Composer error with GitHub OAuth token on fresh laravel/homestead provision

别说谁变了你拦得住时间么 提交于 2019-12-08 15:22:26
问题 Fresh installed a laravel/homestead vagrant box, as per docs, run the init.sh , configured Homestead.yaml and ran $ vagrant up; vagrant ssh . Afterwards cd 'ed to project's folder and ran composer install . It hangs waiting for a token with the following message Loading composer repositories with package information Installing dependencies (including require-dev) from lock file - Installing sebastian/diff (1.3.0) Downloading: Connecting... Could not fetch https://api.github.com/repos

Stderr: VBoxManage.exe: error: Invalid NIC number 9

霸气de小男生 提交于 2019-12-08 13:54:16
问题 I am installing Vagrant / Homestead on my computers. On my laptop, it works good; but on another computer, with Virtualbox 5 Vagrant 1.8.3 Windows 10 when I run vagrant up , there are errors C:\Users\Neon\Homestead>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'laravel/homestead' is up to date... ==> default: Clearing any previously set network interfaces... There was an error while executing `VBoxManage`, a CLI used by Vagrant for