MODX Community

Gitify on Synology Nas working

Just to share my succes on installing Gitify on a small Synology DS212 Nas
nothing fancy , just for those who will be stuck with the weird php cli on synology

synology DSM interface use a trunkated php 5.6 without pdo pluggin installed.
It’s this version of php you will get directly on ssh
Very frustrating when you install php 7 on web station and get php 5.6 with php -version

First :
.bash_profile in home are not working
you have to modify those line on /etc/profile file :

PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin:/var/services/homes/your_user_name/Gitify
export PATH

I put gitify folder in my home so change path as you need

last step : depending on php version installed on dsm package you have to change php call in Gitify file.
you can call webstation php version using symlink command :
like typing php73 -version will give you :

PHP 7.3.7 (cli) (built: Aug 14 2019 16:28:56) ( NTS )Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.7, Copyright (c) 1998-2018 Zend Technologies

of course depending on php package you have installed
those symlink are automatically created at package installation
they are located in /usr/local/bin/
mine is php 7.3 and symlink is php73

so open Gitify and change the first line

#! /usr/bin/env php73
that’s it
Gitify is now working

6 Likes