I tried laravel dusk on Laravel Framework 5.5.38 by following this https://laravel.com/docs/5.5/dusk
My environment is on windows WSL running Ubuntu 16.04
I tried this
composer require --dev laravel/dusk:"^2.0"
php artisan dusk:install
php artisan dusk
and I got this on the last one
Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"binary":"","args":["--disable-gpu","--headless"]}}}
Failed to connect to localhost port 9515: Connection refused
my url on local is http://crateclub.test
Does anyone encounter similar to this?
I ran into the same error while attempting to run php-webdriver with Windows WSL running Ubuntu inside of a VS Code terminal.
My fix was to switch my execution environment to PowerShell (in external Windows Terminal) and everything started working. You may need to re-install some tools such as PHP CLI and Composer, but this worked for me.
Related
Work on a laravel site with real-time notifications using the laravel-websocket library from:
https://beyondco.de/docs/laravel-websockets/getting-started/introduction
On the local server I have to run the following command for it to work:
php artisan websockets:serve
Starting the WebSocket server on port 6001...
Now I have uploaded the website to cloudways hosting
How can I implement the command to always run the server?
php artisan websockets:serve
If you are using VPS, I think you should install a supervisor to help out running your WebSocket. Here example that I found click
I installed a fresh copy of Symfony on my localhost at htdocs\symfony-fresh and the file structure is:
Now I run the following in git bash:
$ php bin/console server:run
then I was suggested to browse at 127.0.0.1:8000 to see the fresh installation of symfony. It works like a charm. But one day later I browse at 127.0.0.1:8000 and I can see the following error message:
This site can’t be reached
127.0.0.1 refused to connect.
It seems server is offline. I checked my apache & Mysql is running.
Then I tried to run the command again:
$ php bin/console server:run
But same problem is going on. I am new in Symfony and enjoying to learn, but this problem stuck me. What should I do to run this app browsing at 127.0.0.1/symfony-fresh or localhost/symfony-fresh?
You should check status follow:
php bin/console server:status
By default, the web server listens on port 8000 on the loopback device. You can change the socket passing an IP address and a port as a command-line argument:
# passing a specific IP and port
php bin/console server:start 192.168.0.1:8080
# or like this
php bin/console server:start *:8080
Apache has nothing to do with this, the built in Symfony server is based on php built in server (php -S ...)
The built in server is intended for development use only, you must run the command every time the server has stopped or the machine has rebooted.
If you want to use Symfony with apache you can setup a virtualhost: https://symfony.com/doc/current/setup/web_server_configuration.html
I am using windows 10 and wamp server and I am fresh installing laravel and all i get is this error message and is it necessary to do php artisan serve everytime i open laravel ? as long as i close cmd prompt localhost:8000 refused to connect .
Php artisan serve error
I think you are running a Laravel project blog by command php artisan serve and you are browsing your application by localhost:8000 or 127.0.0.1:8000
Your screenshot saying that when you are trying to visit a url which is not defined in your routes/web.php then, you are getting invalid request (Unexpected EOF) error in your cmd.
And of course! in this case when you close cmd then your Laravel app will not run.
So now, if you don't want to run your Laravel app by the following command each time, then you can use Laragon in windows environment.
Either you have to run php aritsan serve or set up a virtual host in your OS. Here is how to set up a virtual host in Ubuntu 16.04: How To Set Up Apache Virtual Hosts on Ubuntu 16.04
This is case, you can keep your cmd open. And open another cmd, redirect to file path where you are working and it should work fine.
I have a problem with Laravel 5.3 on Apache server hosted on CentOS, VPS.
When I try to call Artisan::call('migrate'), I'm get in die dump 0 and application not fire migrate. I was try that on vagrant and wamp in local and everything work fine and artisan command fires.
What I have to check on server, what package or module?
I was found the solution using external api route. I was do that on server and I can't run that command from main
I am running Laravel 5 with PHP 7.0.6. When I run the php artisan update command, I get the following error:
[PDOException]
SQLSTATE[HY000] [2002] Connection refused
This is obviously database related. This happens on a production machine I have as well as local environment. My site is working in both environments.
Does anyone understand this error? Thanks.
You are missing the PHP-CLI database extension. Your site does work because your server is using the PHP-FPM (where you have the PHP extention of your database installed). But when you run php artisan migrate command you are actually executing it on the PHP-CLI.