Installing Symfony2 on Synology NAS 5.1 home server

1.7k views Asked by At

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

There are 1 answers

2
user1287262 On BEST ANSWER

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.