Firefox与selenium-server-standalone-2.45.0

I have followed the tutorial on: github[dot]com/aik099/en-mink[dot]behat[dot]org/blob/master/index[dot]rst

to run Mink/selenium on a php script.

I am running selenium-server-standalone-2.45.0 with Firefox 28 (went down from version 37), but keep on getting an error:

Fatal error: Uncaught exception 'WebDriver\Exception\UnknownError' with message 'Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: Error: no display specified Error: no display specified  in...

When searching the error online, I have only found that I should downgrade Firefox below 35 for the current selenium version. What am I then still doing wrong?

Then I went and installed Google Chrome, with the following error:

Fatal error: Uncaught exception 'WebDriver\Exception\UnknownError' with message 'The path to the driver executable must be set by the webdriver.opera.driver system property;

for more information, see github[dot]com/operasoftware/operachromiumdriver. The latest version can be downloaded from github[dot]com/operasoftware/operachromiumdriver/releases' in...

Extra info: Running this script on a VPS with centos 6 installed.

PHP script of code:

    <?php
require_once 'vendor/autoload.php';

$driver = new \Behat\Mink\Driver\Selenium2Driver(
    'firefox', 'thewebsitebase'
);
//have replace firefox with google-chrome

// init session:
$session = new \Behat\Mink\Session($driver);

// start session:
$session->start();

// open some page in browser:
$session->visit('thewebsite');

// get the current page URL:
echo $session->getCurrentUrl();

// get the response status code:
echo $session->getStatusCode();

// get page content:
echo $session->getPage()->getContent();

// evaluate JS expression:
echo $session->evaluateScript(
    "return 'something from browser';"
);

?>