title: Fatal error: Uncaught Facebook\WebDriver\Exception\UnknownServerException: Timed out waiting for driver server to start with ChromeDriver and Selenium
body: <p>What are you trying to achieve? (Expected behavior)</p>
  
  <p>I am trying to get the example.php to run successfully with no errors.</p>
  
  <p>What do you get instead? (Actual behavior)</p>
  
  <p>I get an error 500 and the following error in the log:</p>
  
  <pre><code>[Wed Oct 10 19:46:41.597926 2018] [:error] [pid 3951] [client 162.158.38.241:62198] 
  PHP Fatal error: Uncaught Facebook\\WebDriver\\Exception\\UnknownServerException: Timed out waiting for driver server to start.\n
  Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:13:22.693Z'\n
  System info: host: 'raspberrypi', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'arm', os.version: '4.14.70-v7+', java.version: '1.8.0_181'\n
  Driver info: driver.version: unknown in /var/www/html/selenium/vendor/facebook/webdriver/lib/Exception/WebDriverException.php:114\nStack trace:\n
      #0 /var/www/html/selenium/vendor/facebook/webdriver/lib/Remote/HttpCommandExecutor.php(326): Facebook\\WebDriver\\Exception\\WebDriverException::throwException(13, 'Timed out waiti...', Array)\n
      #1 /var/www/html/selenium/vendor/facebook/webdriver/lib/Remote/RemoteWebDriver.php(126): Facebook\\WebDriver\\Remote\\HttpCommandExecutor-&gt;execute(Object(Facebook\\WebDriver\\Remote\\WebDriverCommand))\n
      #2 /var/www/html/selenium/index.php(21): Facebook\\WebDriver\\Remote\\RemoteWebDriver::create('http://localhos...', Object(Facebook\\WebDriver\\Remote\\DesiredCapabiliti in /var/www/html/selenium/vendor/facebook/webdriver/lib/Exception/WebDriverException.php on line 114
  </code></pre>
  
  <p>How could the issue be reproduced? (Steps to reproduce)</p>
  
  <p>I am using Raspbian Stretch on a Raspberry Pi Model 2 B+. I have the selenium jar file installed in the same directory as the PHP webdriver client (installed via Composer) and the jar file seems to run fine on port 4444.</p>
  
  <pre><code>&lt;?php // An example of using php-webdriver. 
  // Do not forget to run composer install before and also have Selenium server started and listening on port 4444. 
  namespace Facebook\WebDriver; 
  use Facebook\WebDriver\Remote\DesiredCapabilities; 
  use Facebook\WebDriver\Remote\RemoteWebDriver; 
  require_once('vendor/autoload.php'); 
  
  // start Chrome with 5 second timeout 
  $host = 'http://localhost:4444/wd/hub'; 
  
  // this is the default 
  $capabilities = DesiredCapabilities::chrome(); 
  $driver = RemoteWebDriver::create($host, $capabilities, 5000); 
  
  // navigate to 'http://www.seleniumhq.org/' 
  $driver-&gt;get('https://www.seleniumhq.org/'); 
  
  // adding cookie 
  $driver-&gt;manage()-&gt;deleteAllCookies(); 
  $cookie = new Cookie('cookie_name', 'cookie_value'); 
  $driver-&gt;manage()-&gt;addCookie($cookie); 
  $cookies = $driver-&gt;manage()-&gt;getCookies(); 
  print_r($cookies); 
  
  // click the link 'About' 
  $link = $driver-&gt;findElement( WebDriverBy::id('menu_about') ); 
  $link-&gt;click(); 
  
  // wait until the page is loaded 
  $driver-&gt;wait()-&gt;until( WebDriverExpectedCondition::titleContains('About') ); 
  
  // print the title of the current page 
  echo "The title is '" . $driver-&gt;getTitle() . "'\n"; 
  
  // print the URI of the current page 
  echo "The current URI is '" . $driver-&gt;getCurrentURL() . "'\n"; 
  
  // write 'php' in the search box 
  $driver-&gt;findElement(WebDriverBy::id('q')) -&gt;sendKeys('php') 
  
  // fill the search 
  
  box -&gt;submit(); 
  
  // submit the whole form 
  // wait at most 10 seconds until at least one result is shown 
  
  $driver-&gt;wait(10)-&gt;until( 
      WebDriverExpectedCondition::presenceOfAllElementsLocatedBy(WebDriverBy::className('gsc-result')) 
  ); 
  
  // close the browser 
  $driver-&gt;quit();
  </code></pre>
  
  <p>I believe that chromedriver is the source of the problem, although I don't understand how as I installed it correctly using the command </p>
  
  <pre><code>wget -O /tmp/chromedriver.zip https://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip 
  &amp;&amp; sudo unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/;
  </code></pre>
  
  <p>and then again in the same selenium directory, to no avail.</p>
  
  <p>Information:</p>
  
  <ul>
  <li>Php-webdriver version: 1.6.0 </li>
  <li>PHP version: 7.0.30-0+deb9u1 </li>
  <li>Selenium server version: 3.14.0 </li>
  <li>Operating system: Raspbian Stretch </li>
  <li>Browser used + version: Chromium Browser, version 65.0.3325.181-0+rpt4</li>
  </ul>