# \[solved\] Error when changing PHP version

**URL:** <https://forum.pydio.com/t/solved-error-when-changing-php-version/452>\
**Category:** Pydio 8\
**Tags:** solved\
**Created:** [January 12, 2018, 2:09am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452 "2018-01-12T02:09:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![chico11mbit](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/chico11mbit/32/77_2.png) [@chico11mbit](https://forum.pydio.com/u/chico11mbit)\
**Post date:** [January 12, 2018, 2:09am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/1 "2018-01-12T02:09:49Z")

</div>

Hi,  
pydio is 8.0.2  
i have an error when changing php versions for the installation. only 5.6.29 runs properly. 5.6.32, 7.0, 7.2 i got this error in error.log

[Fri Jan 12 03:00:05.662590 2018] [proxy\_fcgi:error] [pid 16303] [client x.x.x.x:46863] AH01071: Got error ‘PHP message: Error while trying to write to logger: There was an error trying to connect to your database! Did you change any configuration for the core connection? Or maybe your database is down?\nPHP message: Exception was caught but could not be logged properly: There was an error trying to connect to your database! Did you change any configuration for the core connection? Or maybe your database is down? in /var/www/clients/client1/web35/web/plugins/conf.sql/SqlConfDriver.php on line 112\nPHP message: ===\> Exception details : /var/www/clients/client1/web35/web/plugins/conf.sql/SqlConfDriver.php on line 112 #0 /var/www/clients/client1/web35/web/core/src/pydio/Core/PluginFramework/PluginsService.php(568): Pydio\Conf\Sql\SqlConfDriver-\>init(Object(Pydio\Core\Model\Context), Array)\n#1 /var/www/clients/client1/web35/web/core/src/pydio/Core/Services/ConfService.php(192): Pydio\Core\PluginFramework\PluginsService-\>softLoad(‘conf.sql’, Array)\n#2 /var/www/clients/client1/web35/web/plugins/core.conf/CoreConfLoader.php(54): Pydio\Core\Services\ConfService::instanciatePluginFromGlobalParams(Array, ‘Pydio\\Conf\\Core…’, Object(Pydio\Core\PluginFramework\PluginsService))\n#3 /var/www/clients/client1/web35/web/core/src/pydio/Core/Services/ConfService.php(251): Pydio\Conf\Core\CoreConfLoader-\>getImplementation()\n#4 /var/www/clients/client1/web35/web/core/src/pydio/Core/Services/ConfService.php(116): Pydio\Core\Services\ConfService::getConfStorageImpl()\n#5 /var/www/clients/client1/web35/web/core/src/pydi…\n’

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [January 12, 2018, 11:46am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/2 "2018-01-12T11:46:04Z")

</div>

when you change php version, make sure php.ini and all extensions are actived and configured (such php-mysql, …)  
Don’t forget to clear cache (rm -rf …/data/cache/plugin\_\*)

---

<div class="post-metadata">

**Author:** ![chico11mbit](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/chico11mbit/32/77_2.png) [@chico11mbit](https://forum.pydio.com/u/chico11mbit)\
**Post date:** [January 12, 2018, 12:07pm UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/3 "2018-01-12T12:07:23Z")

</div>

Hmm,  
the weird thing is, that another pydio installation on the same server runs with php 7.0 flawlessly. Also info.php in the malicious installation shows the right version, whenchanging. The error occurs with or without .htaccess and also after clearing the cache.

the admin panel is ispconfig 3.1.11

---

<div class="post-metadata">

**Author:** ![chico11mbit](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/chico11mbit/32/77_2.png) [@chico11mbit](https://forum.pydio.com/u/chico11mbit)\
**Post date:** [January 13, 2018, 11:59pm UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/4 "2018-01-13T23:59:02Z")

</div>

No one with a clue? Perhaps another option for finding the error?

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [January 15, 2018, 9:32am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/5 "2018-01-15T09:32:33Z")

</div>

> [@chico11mbit](#):
>
> There was an error trying to connect to your database! Did you change any configuration for the core connection

Try to check:

- php-mysql (mysqli) extension
- open data/plugins/boot.conf/bootstrap.json to verify connection information to sql db (username,password, dbname …)

---

<div class="post-metadata">

**Author:** ![chico11mbit](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/chico11mbit/32/77_2.png) [@chico11mbit](https://forum.pydio.com/u/chico11mbit)\
**Post date:** [January 15, 2018, 10:31am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/6 "2018-01-15T10:31:58Z")

</div>

Thx, a lot. the line  
"mysql\_use\_mysqli":true,"  
was missing in the file. In the other installation which is running it is there.  
Now it is running.

Thx a lot.

---

<div class="post-metadata">

**Author:** ![c12simple](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/c12simple/32/90_2.png) [@c12simple](https://forum.pydio.com/u/c12simple)\
**Post date:** [January 16, 2018, 8:51am UTC](https://forum.pydio.com/t/solved-error-when-changing-php-version/452/7 "2018-01-16T08:51:34Z")

</div>

Closed on January 16, 2018, 8:51am UTC


