lighthouse-php icon indicating copy to clipboard operation
lighthouse-php copied to clipboard

Unable to connect to Chrome

Open wkolcz-UMHS opened this issue 5 years ago • 1 comments

I am trying this package to replace the node version I have running on the server. When I attempt to use test a url I am given a "Unable to connect to Chrome" with no other details. I am able to connect to chrome and run the tests in the node version so is there a way to get more details than this?

Also, do you have an example of the ./config.js you have in your example? Can it be added in PHP code rather than import a .js file?

Thanks!

wkolcz-UMHS avatar Sep 16 '21 17:09 wkolcz-UMHS

Try using the setChromePath method and specify the absolute path to the chrome binary and make sure the user running the script has permissions to access and execute the binary.

Here you can read about the config file, and here you can find examples. See the readme for an example on using an array to configure Lighthouse.

dzava avatar Oct 02 '21 23:10 dzava