DSM 6 installation

First off: install everything like usual, follow our instructions on the download page.
Then come back to this topic to make the required changes.

The issue:
Since DSM 6, Synology is having 2 different versions of PHP running at the same time.
A very small one, and a normal one.
PulseStation needs the normal one.

To fix this, we will rename the small one and make a shortcut from the big one to the small one.
This will make your entire system use the proper normal php version.

Just 2 lines to fix this:

Open ssh terminal and execute following commands:

sudo mv /usr/bin/php /usr/bin/phpORIG
sudo ln -s /usr/local/bin/php56 /usr/bin/php

Now execute the command:
php -m
And verify whether ‘mysql’ is in the list.

If it’s not, try following commands:
sudo mv /usr/bin/php /usr/bin/phpORIG
sudo ln -s /volume1/@appstore/PHP5.6/usr/local/bin/php56 /usr/local/bin/php

Now execute the command:
php -m
And verify whether ‘mysql’ is in the list.

Or:
sudo mv /usr/local/bin/php /usr/local/bin/phpORIG
sudo ln -s /usr/local/bin/php56 /usr/local/bin/php

Now all services will use the proper php version and for instance the connection to the database will work again.

Symptoms we had before we fixed this:
– No connection to the database (or only partially)
– Virtual devices were not updating