I have a Synology NAS. I’m running DSM 6. The operating system is a variety of Linux.
$ uname -s -r -v -m -o -u
Linux 3.2.40 #15217 Wed Dec 20 18:16:33 CST 2017 armv7l GNU/Linux synology_armada370_213j
Synology runs both nginx and apache. I have set it up to run apache 2.4 as the backend for the web, which is the only way I have managed to find to get Grav to work. I have been unable to find a configuration to run Grav directly under nginx. Synology uses mustache files to generate the nginx config files, and I don’t want to break anything.
Synology allows for both php 5.6 and php 7. The issues below occur with both.
There are some problems as Synology is also running nginx and then passing control to apache
I have a Grav site working and I have the admin plugin working.
However, the admin plugin cannot add a new plugin. The error on the admin page after clicking on Add
is connection to GPM cannot be established
. However, I can use (see below) bin/gpm install plugin
.
If I connect to the Synology machine using ssh in order to use the command line, I cannot always get bin/gpm
to work, especially after some operations with the admin plugin. I have a bash script (based on the script in the GRAV documentation) that sets all files and directories to have group ‘http’ (the Synology Group for apache) and the permissions as per Grav. After running the script, I can run bin/gpm list
and get the correct output.
I have installed the devtools plugin. However,
bin/gpm plugins devtools new-plugin
freezes after the first question (the name of the plugin) is answered. I have tried running the command with sudo, and I have changed the user:group to my name (under Synology, all users have the group ‘users’). The command (… new-plugin) still freezes after the first question.
Any advice on how to proceed?
Would it be possible to a link into the Documentation how to set up a new plugin without devtools? Or perhaps just a blank plugin in the downloads section?