Error trying to create admin user: failed to connect to the database

I did the following search https://central.owncloud.org/search?q=%22Class%20%27PDO%27%20not%20found%22 and found https://central.owncloud.org/t/http-error-500-blank-screen/3752/7