0
votes

I am new to Symfony framework and a little bit noobish on unix systems. I've manage to go through first two steps of install process (//server_name/symfony/web/app_dev.php) and got stuck on last one. I'm getting such error:

ContextErrorException: Warning: is_dir(): open_basedir restriction in effect. File(/var/services/homes) is not within the allowed path(s): (/etc.defaults:/etc:/usr/syno/synoman:/tmp:/var/services/tmp:/var/services/web:/var/services/homes:/root:/usr/bin:/var/services/homes:/volume1/homes) in /volume1/web/symfonytest/vendor/symfony/symfony/src/Symfony/Component/Process/ExecutableFinder.php line 59

I've added this path to open_basedir (as bolded) but it still throwing this error. On synology /var/services/homes is a linked directory an points to /volume1/homes folder.

Can you girls/guys help me out if anyone of you have come across such issue or just know how to pass this?

1
Did it work? I used to have the same problem, but the simple change of the basedir in UI settings helped. But few days ago, I encountered an error while trying to change open_basedir saying "operation invalid." I also used to have /usr/bin/php:/volume1/@tmp/php in the open_basedir too, but I assume, that the newer version changed that. If the problem persists, try to ask official "in-system" help since PHP is implemented by Synology itself. - user2781994
Hi. No, still strugling to make it work. I'll ask Synology specialists how can this be achieved. I'll let you know if there is some progress with this issue. Thanks - Czizes

1 Answers

0
votes

The same error append for me while I set open_basedire. I think the problem could come from the wrong symbolique link of homes in /var/services/homes. If you look at "homes" file it point to "/volume1/@fake_home_link". Obviously, homes was not a directory. What I did is pointing /var/services/homes to /root. Maybe you could create a "homes" folder in volume1. I don't know if it is the best solution but then It didn't show up the warning message.