# Installation of Mautic 3.1.2

**URL:** <https://forum.mautic.org/t/installation-of-mautic-3-1-2/17020>\
**Category:** Product Support\
**Created:** [November 13, 2020, 5:52pm UTC](https://forum.mautic.org/t/installation-of-mautic-3-1-2/17020 "2020-11-13T17:52:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcdi9tn2](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/mcdi9tn2/32/833_2.png) [@mcdi9tn2](https://forum.mautic.org/u/mcdi9tn2)\
**Post date:** [November 13, 2020, 5:52pm UTC](https://forum.mautic.org/t/installation-of-mautic-3-1-2/17020/1 "2020-11-13T17:52:59Z")

</div>

**Your software**  
My Mautic version is: 3.1.2  
My PHP version is: PHP 7.3.24  
My Database type and version is: 10.5.6-MariaDB

**Your problem**  
My problem is a generation of a displayed 500 Error on a test server

These errors are showing in the log:

[2020-11-13 17:20:58] mautic.WARNING: PHP Warning - Cannot use a scalar value as an array - in file /usr/local/www/apache24/data/mautic/app/bundles/InstallBundle/Install/InstallService.php - at line 337 {“step”:"[object] (Mautic\InstallBundle\Configurator\Step\DoctrineStep: {“driver”:“pdo\_mysql”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:“_ **",“password”:"**",“backup\_tables”:0,“backup\_prefix”:“bak\_”})",“dbParams”:{“driver”:“pdo\_mysql”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:"_ **",“password”:"** _",“backup\_tables”:0,“backup\_prefix”:“bak\_”},“translator”:"[object] (Mautic\CoreBundle\Translation\Translator: {})",“messages”:true,“schemaHelper”:"[object] (Mautic\InstallBundle\Helper\SchemaHelper: {})",“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)"} [] [2020-11-13 17:20:58] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: “An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory” at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 93 {“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:31, PDOException(code: 2002): SQLSTATE[HY000] [2002] No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:27)"} [] [2020-11-13 17:23:53] mautic.WARNING: PHP Warning - Cannot use a scalar value as an array - in file /usr/local/www/apache24/data/mautic/app/bundles/InstallBundle/Install/InstallService.php - at line 337 {“step”:"[object] (Mautic\InstallBundle\Configurator\Step\DoctrineStep: {“driver”:“mysqli”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:"_ **",“password”:"** ”,“backup\_tables”:0,“backup\_prefix”:“bak\_”})",“dbParams”:{“driver”:“mysqli”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:“_ **",“password”:"** _”,“backup\_tables”:0,“backup\_prefix”:“bak\_”},“translator”:"[object] (Mautic\CoreBundle\Translation\Translator: {})",“messages”:true,“schemaHelper”:"[object] (Mautic\InstallBundle\Helper\SchemaHelper: {})",“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:71)"} [2020-11-13 17:23:53] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: “An exception occurred in driver: No such file or directory” at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 93 {“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:71)"} [2020-11-13 17:24:55] mautic.WARNING: PHP Warning - Cannot use a scalar value as an array - in file /usr/local/www/apache24/data/mautic/app/bundles/InstallBundle/Install/InstallService.php - at line 337 {“step”:"[object] (Mautic\InstallBundle\Configurator\Step\DoctrineStep: {“driver”:“mysqli”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:“_ **",“password”:"**",“backup\_tables”:0,“backup\_prefix”:“bak\_”})",“dbParams”:{“driver”:“mysqli”,“host”:“localhost”,“table\_prefix”:null,“port”:“3306”,“name”:“mautic”,“user”:"_ **",“password”:"** \*”,“backup\_tables”:0,“backup\_prefix”:“bak\_”},“translator”:"[object] (Mautic\CoreBundle\Translation\Translator: {})",“messages”:true,“schemaHelper”:"[object] (Mautic\InstallBundle\Helper\SchemaHelper: {})",“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:71)"} [2020-11-13 17:24:55] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\ConnectionException: “An exception occurred in driver: No such file or directory” at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 93 {“exception”:"[object] (Doctrine\DBAL\Exception\ConnectionException(code: 0): An exception occurred in driver: No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:93, Doctrine\DBAL\Driver\Mysqli\MysqliException(code: 0): No such file or directory at /usr/local/www/apache24/data/mautic/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/Mysqli/MysqliConnection.php:71)"}

Steps I have tried to fix the problem I tried installing mysqli to change from PDO drivers and that should be reflected in the log.  
I also set the line 110 in app/config/config.php to 5.7 but app/config/local.php was missing.  
As test server have tried owning all the mautic directory and setting to chmod 777 to eliminate any permission errors.  
Once this install is mastered then a more secure production installation will be attempted.
