homestead

Laravel database access denied

亡梦爱人 提交于 2019-12-13 22:28:28
问题 I am new to Laravel and am getting an error when trying to run a simple command in the controller Article::all() . The error is: PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES) Here is my .env file: APP_ENV=local APP_DEBUG=true APP_KEY=v1xavEadi4rHv0EGn05zQvtVAtQRA9zo DB_HOST=localhost DB_DATABASE=test DB_USERNAME=root DB_PASSWORD= CACHE_DRIVER=file SESSION_DRIVER=file QUEUE_DRIVER=sync MAIL_DRIVER=smtp MAIL

Vagrant Homestead 'storage' folder permission denied [closed]

人盡茶涼 提交于 2019-12-13 18:13:25
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Running Laravel on Homestead gives the following errors: The stream or file "/var/www/laravel/storage/logs/laravel.log" could not be opened: failed to open stream: Permission denied Now I understand that the permission for storage is not correct but trying the following didn't work: Setting file permissions in the

How to roll back PHP version in Vagrant and Homestead?

不想你离开。 提交于 2019-12-13 03:27:08
问题 So, my company is using PHP with Laravel for software development for clients. I am new to the company and setting up a newer Macbook with VirtualBox, Laravel using Homestead, and Vagrant. I have gotten everything set up to be able to create local files and have them also tie into the VM, but anytime we try to open the pages using our local host, it gives us the error that "Laravel requires the Mcrypt PHP extension". I have migrated all of our in-house files over to my local machine to be

How to set the directory properly in homestead-laravel?

て烟熏妆下的殇ゞ 提交于 2019-12-13 01:56:44
问题 I am a newbie in PHP and laravel. I have tried the whole night but problems keep occurring. After I set up the homestead.yaml , I ran vagrant up on the command line. The full content of file is as below(BTW, my OS is os x 10.10): --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/github_rsa.pub keys: - ~/.ssh/github_rsa folders: - map: "/Users/yobichi" to: "/home/vagrant/yobichi" sites: - map: int2016.app to: "/home/vagrant/yobichi/public" databases: -

Can't add laravel/homestead box. “SSL certificate prob..”. Windows

百般思念 提交于 2019-12-12 11:54:06
问题 I've installed laravel homestead on two other machines and never seen this problem before. I've searched and searched, implemented plenty of suggested fixes and nothing is working for me. I've installed virtual box and vagrant and I'm stuck at the first hurdle: vagrant box add laravel/homestead returns the following error: I've installed curl.exe with all the dll files I could find and the certificate bundle file in my path environment. Curl is definitely installed but nothing I try works. Do

laravel 5.1 not seeing changes to Job file without VM restart

房东的猫 提交于 2019-12-12 08:29:15
问题 I have created a new Job in a laravel 5.1 app, running in Homestead VM. I've set it to be queued and have code in the handle method. The handle() method previous expected a param to be passed, but is no longer required and I've removed the param form the handle method. However, when the queue runs the job I get an error saying: [2015-06-17 14:08:46] local.ERROR: exception 'ErrorException' with message 'Missing argument 1 for Simile\Jobs\SpecialJob::handle()' in /home/vagrant/Code/BitBucket

SULU CMS installation errors with Laravel Homestead

六月ゝ 毕业季﹏ 提交于 2019-12-12 04:30:54
问题 Follow this document http://docs.sulu.io/en/latest/book/getting-started.html at the end of installation process I got this error: Target: cache cache:clear ({"--no-optional-warmers":true,"--no-debug":true,"--no-interaction":true}) // Clearing the admin cache for the dev environment with debug true [Symfony\Component\Filesystem\Exception\IOException] Failed to remove directory "/home/vagrant/Code/sulu/var/cache/admin/de~/doctrine": . sulu:build [-D|--nodeps] [--destroy] [-h|--help] [-q|--quiet

SQLSTATE[28000] [1045] Access denied for user 'homestead'@'localhost' (using password: YES)

£可爱£侵袭症+ 提交于 2019-12-12 03:12:02
问题 I'm on a Ubuntu 15.10 Yosemite using Laravel 5.2.* Here is my .env file: DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=Pastry DB_USERNAME=root DB_PASSWORD=243320 app\config\database.php 'mysql' => [ 'driver' => 'mysql', 'host' => env('DB_HOST', 'localhost'), 'port' => env('DB_PORT', '3306'), 'database' => env('DB_DATABASE', 'Pastry'), 'username' => env('DB_USERNAME', 'root'), 'password' => env('DB_PASSWORD', '243320'), 'charset' => 'utf8', 'collation' => 'utf8_unicode_ci',

Laravel locally run artisan commands effect VM environment

点点圈 提交于 2019-12-12 01:56:16
问题 I am looking for a solution that will allow me to run artisan commands from my local machine and for them to take effect on my homestead VM. For example, when running php artisan migrate the command is run using the information stored in the .env file points to the VM, but my terminal is trying to run them locally. The majority of the commands run successfully because they do not need drivers from the remote machine. Running php artisan route:list works fine. How can I run artisan commands

HHVM with Homestead - HHVM refusing NFS

白昼怎懂夜的黑 提交于 2019-12-12 01:07:23
问题 I'm trying to set up Homestead with VirtualBox and the HHVM option. My host is Mac OS, and I'm not enabling the nfs option in Homestead.yaml. However, as soon as I add a Hack file and run hh_client, hh_server dies because it refuses to run on NFS I understand the rational of not supporting NFS but I'm wondering why is NFS actually involved here, and what could be done to workaround this? 回答1: VirtualBox shared folders are effectively a network folder, causing the same problems as NFS. This