I'm using composer to create a site in php OO, however, by sending the files from the site to the server (which in this case I'm using free service from atwebpages for external testing), the site simply does not work, trying to connect with mysql it gives this error:
Fatal error: Uncaught PDOException: could not find driver in /srv/disk5/2182077/www/indieworld.atwebpages.com/Indie/Database/Connection.php:18 Stack trace: #0 /srv/disk5/2182077/www/indieworld.atwebpages.com/Indie/Database/Connection.php(18): PDO->__construct('mysql:host=fdb1...', '2182077_indie', 'indieWorld1') #1 /srv/disk5/2182077/www/indieworld.atwebpages.com/Indie/Database/IndieModel.php(19): Indie\Database\Connection->connection() #2 /srv/disk5/2182077/www/indieworld.atwebpages.com/server.php(294): Indie\Database\IndieModel->__construct() #3 /srv/disk5/2182077/www/indieworld.atwebpages.com/server.php(21): login('testando@teste....', '1234') #4 {main} thrown in /srv/disk5/2182077/www/indieworld.atwebpages.com/Indie/Database/Connection.php on line 18
On that line 18 he is giving the error has:
$pdo = new PDO($this->iniData['driver'].':host='.$this->iniData['host'].';dbname='.$this->iniData['database'], $this->iniData['username'], $this->iniData['password']);
Do I need to install composer via command inside the server for it to work? If so, how do I do this? I really need to solve this problem.