[GH-ISSUE #1243] How to install on Synology DSM 214? #709

Closed
opened 2026-02-26 02:34:02 +03:00 by kerem · 6 comments
Owner

Originally created by @lucidBrot on GitHub (Aug 17, 2020).
Original GitHub issue: https://github.com/koel/koel/issues/1243

Docker is not available on the Synology DSM 214 which has a Little Endian Marvell Armada XP.

$ uname -a
Linux NAS 3.2.40 #25426 SMP Wed Jul 8 03:14:12 CST 2020 armv7l GNU/Linux synology_armadaxp_ds214

I have tried installing it manually following the steps outlined further below, but in the end the php artisan koel:init fails because I don't have any make command.

I'm pretty sure there must be an easier way than somehow having to build / compile things on my NAS. But how? Is there somewhere a precompiled binary that I could run instead?

(Failing) Installation Steps

For the most part, I was looking to this guide for inspiration.

  1. From Packet Center install
  • Web Station
  • MariaDB 10 (port 3307)
  • php 7.3
  • phpMyAdmin (for setting up the database. But I'd prefer using the terminal. Skipping.)
  • Apache HTTP Server (but I already have nginx... Skipping.)
  1. Create new PHP 7.3 Profile inside Web Station with the extensions mysqli, openssl, pdo_mysql, sockets, zip enabled. Create a new Virtual Host in Web Station, give the http group the relevant read permissions. The web server is now set up.

  2. Install composer

cd /usr/local/bin
sudo curl -s http://getcomposer.org/installer | sudo php73

and create a shortcut so that the command works. Set permissions to executable.

  1. Install git from the Synology Packet Manager

  2. install koel

cd <PUBLIC_WEB_DIRECTORY_FOR_KOEL>
git clone --recurse-submodules https://github.com/phanan/koel.git .
git checkout v4.0.0 # Check out the latest version at https://github.com/phanan/koel/releases
composer install
  1. Set up a database and database user in MariaDB 10
CREATE USER 'koeldbuser'@localhost IDENTIFIED BY 'MyPass';
CREATE DATABASE koeldb;
SHOW DATABASES;
GRANT ALL PRIVILEGES ON koeldb.* TO 'koeldbuser'@localhost;
  1. Install yarn
touch ~/.bashrc
curl -o- -L https://yarnpkg.com/install.sh | bash
  1. Modify app/Console/Commands/InitCommand.php so that all yarn install commands use a --network-timeout 1000000 because I get timeouts otherwise. Then run php73 artisan keol:init. Wait 30 minutes or so for yarn to fetch all packages.

  2. Since the make command does not exist

Please try again, or visit https://koel.phanan.net/docs for manual installation.
😥 Sorry for this. You deserve better.
Originally created by @lucidBrot on GitHub (Aug 17, 2020). Original GitHub issue: https://github.com/koel/koel/issues/1243 Docker is not available on the Synology DSM 214 which has a Little Endian Marvell Armada XP. ```bash $ uname -a Linux NAS 3.2.40 #25426 SMP Wed Jul 8 03:14:12 CST 2020 armv7l GNU/Linux synology_armadaxp_ds214 ``` I have tried installing it manually following the steps outlined further below, but in the end the `php artisan koel:init` fails because I don't have any `make` command. I'm pretty sure there must be an easier way than somehow having to build / compile things on my NAS. But how? Is there somewhere a precompiled binary that I could run instead? ## (Failing) Installation Steps For the most part, I was looking to [this guide](https://community.synology.com/enu/forum/1/post/133463) for inspiration. 1. From Packet Center install - Web Station - MariaDB 10 (port 3307) - php 7.3 - phpMyAdmin (for setting up the database. But I'd prefer using the terminal. Skipping.) - Apache HTTP Server (but I already have nginx... Skipping.) 2. Create new PHP 7.3 Profile inside Web Station with the extensions `mysqli`, `openssl`, `pdo_mysql`, `sockets`, `zip` enabled. Create a new Virtual Host in Web Station, give the `http` group the relevant read permissions. The web server is now set up. 3. Install composer ```bash cd /usr/local/bin sudo curl -s http://getcomposer.org/installer | sudo php73 ``` and create a shortcut so that the command works. Set permissions to executable. 4. Install `git` from the Synology Packet Manager 5. install koel ```bash cd <PUBLIC_WEB_DIRECTORY_FOR_KOEL> git clone --recurse-submodules https://github.com/phanan/koel.git . git checkout v4.0.0 # Check out the latest version at https://github.com/phanan/koel/releases composer install ``` 6. Set up a database and database user in MariaDB 10 ```mysql CREATE USER 'koeldbuser'@localhost IDENTIFIED BY 'MyPass'; CREATE DATABASE koeldb; SHOW DATABASES; GRANT ALL PRIVILEGES ON koeldb.* TO 'koeldbuser'@localhost; ``` 7. Install yarn ```bash touch ~/.bashrc curl -o- -L https://yarnpkg.com/install.sh | bash ``` 8. Modify `app/Console/Commands/InitCommand.php` so that all `yarn install` commands use a `--network-timeout 1000000` because I get timeouts otherwise. Then run `php73 artisan keol:init`. Wait 30 minutes or so for yarn to fetch all packages. 9. Since the `make` command does not exist ``` Please try again, or visit https://koel.phanan.net/docs for manual installation. 😥 Sorry for this. You deserve better. ```
kerem 2026-02-26 02:34:02 +03:00
Author
Owner

@lucidBrot commented on GitHub (Aug 17, 2020):

I have now tried following this guide in the hopes of cross-platform building koel on my laptop for the synology... but I did not get composer to work correctly in the docker chroot.

<!-- gh-comment-id:674893249 --> @lucidBrot commented on GitHub (Aug 17, 2020): I have now tried following [this guide](http://www.multigesture.net/articles/how-to-compile-unison-for-a-synology-nas-dsm-6-2/) in the hopes of cross-platform building koel on my laptop for the synology... but I did not get composer to work correctly in the docker chroot.
Author
Owner

@phanan commented on GitHub (Aug 21, 2020):

What do you mean by "make command does not exist"?

<!-- gh-comment-id:678246839 --> @phanan commented on GitHub (Aug 21, 2020): What do you mean by "`make` command does not exist"?
Author
Owner

@lucidBrot commented on GitHub (Aug 21, 2020):

That the make command is not found during php73 artisan koel:init. This causes an error. In order to fix that error, I have tried to install a make command - but all I've found so far is that it does not seem to exist for the synology nas (unless I researched wrongly).

I have tried using a version of make that is actually a npm package and installed it, but that was also not found. So I figured I might be better off asking on here :)

<!-- gh-comment-id:678273529 --> @lucidBrot commented on GitHub (Aug 21, 2020): That the `make` command is not found during `php73 artisan koel:init`. This causes an error. In order to fix that error, I have tried to install a `make` command - but all I've found so far is that it [does not seem to exist for the synology nas](https://community.synology.com/enu/forum/17/post/96607) (unless I researched wrongly). I have tried using a version of `make` that is actually a `npm` package and installed it, but that was also not found. So I figured I might be better off asking on here :)
Author
Owner

@phanan commented on GitHub (Aug 21, 2020):

So I figured I might be better off asking on here :)

Sure, though I am of a different opinion :) It looks like a pure Synology issue to me.

<!-- gh-comment-id:678297271 --> @phanan commented on GitHub (Aug 21, 2020): > So I figured I might be better off asking on here :) Sure, though I am of a different opinion :) It looks like a pure Synology issue to me.
Author
Owner

@lucidBrot commented on GitHub (Aug 21, 2020):

That may well be the case. I take it you don't happen to be using it on synology yourself.

Thank you for your time. I doubt I'll figure it out, but if I do, I will update here.

<!-- gh-comment-id:678300131 --> @lucidBrot commented on GitHub (Aug 21, 2020): That may well be the case. I take it you don't happen to be using it on synology yourself. Thank you for your time. I doubt I'll figure it out, but if I do, I will update here.
Author
Owner

@BrookeDot commented on GitHub (Dec 23, 2020):

I'm going to go ahead and close out this issue, but if anyone in the community has advice, feel free to leave it and we can look at improving the documentation if enough people are using Synology.

<!-- gh-comment-id:750391408 --> @BrookeDot commented on GitHub (Dec 23, 2020): I'm going to go ahead and close out this issue, but if anyone in the community has advice, feel free to leave it and we can look at improving the documentation if enough people are using Synology.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#709
No description provided.