Fatal error: Uncaught PDOException: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/bitnami/apache2/htdocs/reusables/classes/db_pdo.php:17 Stack trace: #0 /opt/bitnami/apache2/htdocs/reusables/classes/db_pdo.php(17): PDO->__construct('mysql:host=cham...', 'expnash_user', 'eXuzVvndvUX7Tr2...') #1 /opt/bitnami/apache2/htdocs/reusables/classes/classes.php(17): Reusables_db_pdo->__construct() #2 /opt/bitnami/apache2/htdocs/views/home.php(23): ReusableClasses->__construct() #3 /opt/bitnami/apache2/htdocs/index.php(43): require('/opt/bitnami/ap...') #4 /opt/bitnami/apache2/htdocs/index.php(186): {closure}() #5 {main} Next PDOException: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known in /opt/bitnami/apache2/htdocs/reusables/classes/db_pdo.php:17 Stack trace: #0 /opt/bitnami/apache2/htdocs/reusables/classes/db_pdo.php(17): PDO->__construct('mysql:host=cham...', 'expnash_user', 'eXuzVvndvUX7Tr2...') #1 /opt/bitnami/apache2/htdocs/re in /opt/bitnami/apache2/htdocs/reusables/classes/db_pdo.php on line 17