How to update your feeds on Synology DSM v6.0

Howtos, instructions and links to related software. Do not ask questions here.
User avatar
Luxor
Bear Rating Trainee
Bear Rating Trainee
Posts: 2
Joined: 29 Oct 2015, 12:16

How to update your feeds on Synology DSM v6.0

Postby Luxor » 27 Mar 2016, 02:38

Synology has recently released DSM v6.0-7321 for their product which comes with an update on MariaDB (MySQL), phpMyAdmin packages.

If you've updated your device to this latest version, you may have noticed that your feeds are not being updated anymore though ttrss works with no problem. This is caused by some core changes that was made to DSM's OS like PHP 5.6 update and what not.

So if you were updating your feeds by using the following command

Code: Select all

/usr/bin/php (your ttrss path)/update.php --feeds --quite

prior to DSM v6.0, and started getting a warning message that says
PHP support for MySQL is required for configured DB_TYPE in config.php.

that means you need to use new version of php executables and update your ttrss config file.


First locate your config.php which is in your ttrss root folder and replace this line

Code: Select all

define('PHP_EXECUTABLE', '/usr/bin/php');

to this and save the file.

Code: Select all

define('PHP_EXECUTABLE', '/usr/local/bin/php56');


After this process, if you want do update your feeds using terminal use this command

Code: Select all

/usr/local/bin/php56 (your ttrss path)/update.php --feeds --quite


You can also automate this update process by using Task Scheduler. All you have to do is putting this command into a shell executable (e.g. ttrss-update.sh) file and point the file in a "User-defined script" task that you created by the Task Schedular in Control Panel.

Please keep in mind that the task user must be an admin user who has access to the path of the shell executable and root user must not be used.


  • Should you have any trouble creating the update task, please refer to the images I have shared below.

Image

Image

Image

Image

Image
The update will take place on every 15 minutes.

Image

Return to “Knowledge Base”

Who is online

Users browsing this forum: No registered users and 2 guests