homestead

Laravel + Homestead + Vagrant not working

拜拜、爱过 提交于 2019-12-24 18:06:08
问题 I am new to homestead and vagrant, i installed homestead as in laravel documentation but getting timeout error when visit address : 192,168.10.10. Before this error i was getting error request time out on ip so i uncomment this line : config.vm.network "private_network", ip: "192.168.10.10" Then network start working ping. Also i uncommented this line : config.vm.network "forwarded_port", guest: 80, host: 8080 So it's started showing me port forward. Then i made this line uncommented : config

Show Laravel Dusk tests from Homestead on Windows

*爱你&永不变心* 提交于 2019-12-24 08:59:58
问题 I'm playing with Laravel Dusk for the first time. I've running it on Homestead. It's running the example test, and give me the right feedback. Now, I want to know if it's possible to see Dusk running in a browser. I run it on Vagrant Homestead, the VM is installed on my Windows 10 machine. Can I show the tests from homestead on my windows machine? If it's not possible, but it is possible if I run Dusk from Windows it self. How can I start running it in windows. Do I need XAMPP for it? So

Can't use openssl extension for SSL/TLS protection

拥有回忆 提交于 2019-12-24 08:46:14
问题 I am running Windows 10 working with Laravel 5.4, homestead 2.0, using VM and Vagrant. Everything works... Except when I am running "laravel new blog" I get: [Composer\Exception\NoSslException] The openssl extension is required for SSL/TLS protection but is not available. If you can not enable the openssl extension, you can disable this error, at your own risk, by setting the 'disable-tls' option to true. I know that there are some other questions regarding this but there seem yet not to have

PHP JSON header adding a line break before output

北城以北 提交于 2019-12-24 04:46:09
问题 I recently started having a problem where when I use the PHP header() command, it is adding a line-break after the command before the output is displayed. I am using CodeIgniter 2.2.2 and a slightly older version of the CodeIgniter Rest Controller from https://github.com/chriskacerguis/codeigniter-restserver. I was running on an Apache development environment with XAMPP using PHP 5.6.8. The issue seems to have started when I moved to Laravel Homestead for my environment which has PHP 5.6.7

Cannot access localhost:8080 from laravel

大憨熊 提交于 2019-12-24 02:13:37
问题 I have a PHP application running on homestead box. This application makes calls to another app that is running on glassfish on my localhost:8080. When PHP application sends the request to localhost:8080, I am getting following error: ConnectException in RequestException.php line 49: cURL error 7: Failed to connect to localhost port 8080: Connection refused Still I can make calls to localhost:8080 from web browser.Anyone has any suggestion? 回答1: Seeing how your application is running in

vagrant up error not working

非 Y 不嫁゛ 提交于 2019-12-23 19:40:18
问题 I tried to install Laravel Homestead on my computer. I have followed to the documentation and I got it up working yesterday. However I left my laptop on sleep and I tried to run vagrant provision and I receive this weird error. Jafars-iMac:Homestead jafarsalami$ vagrant provision /opt/vagrant/embedded/lib/ruby/2.4.0/psych.rb:377:in `parse': (<unknown>): did not find expected '-' indicator while parsing a block collection at line 18 > column 5 (Psych::SyntaxError) from /opt/vagrant/embedded

Access to homestead host from genymotion

跟風遠走 提交于 2019-12-23 15:53:36
问题 How can i access homestead from genymotion emulator ? i add this line into emulator hosts file, but not work : 192.168.10.10 myapp.app 回答1: Here's how I did it on Windows 10: Check if homestead works My homestead is running on the ip 192.168.10.10 and has multiple sites. Each have been added to my Windows machine's hosts file to be available from specific domains. For example in my C:\Windows\System32\drivers\etc\hosts file i have added the following lines: 192.168.10.10 app1.dev 192.168.10

Homestead cant access second site remotely

瘦欲@ 提交于 2019-12-23 08:57:36
问题 I have one site setup fine, but the second can't be accessed remotely: My YAML: --- ip: "192.168.10.10" memory: 2048 cpus: 1 provider: virtualbox authorize: ~/.ssh/id_rsa.pub keys: - ~/.ssh/id_rsa folders: - map: ~/Projects to: /home/vagrant/Projects sites: - map: app.app to: /home/vagrant/sites/app1/public - map: app2.app to: /home/vagrant/sites/app2/public port: 8100 ports: - host: 81 - guest: 8100 I can access the first site using my IP easily - http://192.168.0.5/ but the second one

Homestead doesn't work

ⅰ亾dé卋堺 提交于 2019-12-23 04:45:09
问题 I ran my virtual machine by the command "vagrant up" and it's ok. "vagrant ssh" work good and the output of ifconfig is: vagrant@precise32:~$ ifconfig eth0 Link encap:Ethernet HWaddr 08:00:27:12:96:98 inet addr:10.0.2.15 Bcast:10.0.2.255 Mask:255.255.255.0 inet6 addr: fe80::a00:27ff:fe12:9698/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:583 errors:0 dropped:0 overruns:0 frame:0 TX packets:420 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX

Homestead 2 xdebug doesn't work

前提是你 提交于 2019-12-22 08:08:33
问题 I have a Homestead vagrant VM setup. Xdebug is all setup for remote debugging out of the box. I can see this in here /etc/php5/fpm/conf.d/20-xdebug.ini and by doing a php -i | grep 'xdebug' I've setup a breakpoint in my default index.php and clicked the 'start listening for PHP debug connections' in my IDE PHPstorm. I have installed xdebug helper for chrome and turned it on, also setting my IDE string to PHPstorm in it's settings. I've tried setting different ports in both my IDE and xdebug