First we need to make sure that you can run Doctrine on your server. We can do this one of two ways:
First create a small PHP script named phpinfo.php and upload it somewhere on your web server that is accessible to the web:
phpinfo();
Now execute it from your browser by going to http://localhost/phpinfo.php. You will see a list of information detailing your PHP configuration. Check that your PHP version is >= 5.2.3 and that you have PDO and the desired drivers installed.
You can also check your PHP installation has the necessary requirements by running some commands from the terminal. We will demonstrate in the next example.
Check that your PHP version is >= 5.2.3 with the following command:
$ php -v
Now check that you have PDO and the desired drivers installed with the following command:
$ php -i
You could also execute the phpinfo.php from the command line and get the same result as the above example:
$ php phpinfo.php
Checking the requirements are required in order to run the examples used throughout this documentation.