Categories: How To'sWeb Services

Configure Symfony 3 on Synology DSM 6.x


Installing Symfony 3 on Synology has some tricky bits to make it run. This post essentially addresses the fatal errors when trying to write cache or logs, which is a common issue that has some documented solutions at Symfony’s site – and issue being that ACL permissions cannot be changed as those instructions suggest.

Synology’s DSM has a builtin tool for this: synoacltool (use synoacltool -h for help).

 

Terminal / SSH:

To make this run on your development server follow these steps for each affected directory (e.g. logs):

  1. Remove the directory:

    sudo rm -r logs/

  2. Recreate it:

    sudo mkdir logs

  3. Change owner to http:

    sudo synoacltool -set-owner logs/ user http

  4. Enforce inheritance:

    sudo synoacltool -enforce-inherit logs/

In my case I had to do this for the logscache and sessions folders on my app’s folders.

 

GUI  (should work):

  • Using DSM’s File Manager to assign the user http to these files!

 

This should do it!

sete

Recent Posts

Synology – Modify public link metadata (site description and keywords)

If you have a Synology DiskStation and you have shared your public NAS link on…

4 years ago

Ubuntu Linux VM on Hyper-V – Expand Virtual disk to full size

Ubuntu initial setup does not do expand the virtual disk image to it's full size.…

4 years ago

Synology DSM 7 Docker error – Container crashes on boot – Solution / Fix

A common issue that appeared with DSM 7 is that some well known containers started…

4 years ago

Windows Sandbox – How to install Windows Store apps

The Windows Sandbox image is useful for many test setups, but it lacks much of…

5 years ago

Windows 10 Snip & Sketch app fails – “Failed to open the file” error fix

If you're used to Snip & Sketch for adding some scribbles placed over desktop screenshots,…

6 years ago

How to solve “Contacting the server for information” in Microsoft / Office 365 apps

On some occasions Microsoft 365 Office applications might open a popup with "Contacting server for…

6 years ago