I'm trying to setup a Symfony installation for the first time on my Ubuntu server with ISPConfig to do some testing. But without any luck until now.
First I encountered a error:
PHP Fatal error: Cannot redeclare class Symfony\Component\Debug\Exception\FlattenException in .../vendor/symfony/symfony/src/Symfony/Component/Debug/Exception/FlattenException.php on line 25.
I found out that it was caused by a problem in the latest Symfony composer installation (not sure what exactly caused it). I resolved it by downloading the Symfony library trough Github and overwriting the one that was installed by composer. Both version 2.6.
But now I get the following error:
ContextErrorException in ExecutableFinder.php line 59:
Warning: is_dir(): open_basedir restriction in effect.
File(/srv/www/symfony.mysite.nl/symfony) is not within the allowed path(s):
(/var/www/clients/client1/web6/symfony:/var/www/clients/client1/web6/private:/var/www/clients/client1/web6/tmp:/var/www/symfony.mysite.nl/symfony:/srv/www/symfony.mysite.nl/symfony:/usr/share/php5:/usr/share/php:/tmp:/usr/share/phpmyadmin:/etc/phpmyadmin:/var/lib/phpmyadmin)
In my search for a solution I found ContextErrorException after generating a bundle in Symfony but the answers don't work for me. The path /srv/www/symfony.mysite.nl/symfony is already in the ISPConfig setup of my site at WebSites-> Your Site -> Options -> PHP open_basedir. And even setting "open_basedir = null" in WebSites-> Your Site -> Options -> Custom php.ini settings wil do nothing (I think that it isn't a good idea btw to disable it but I tried).
I tried to install older versions of Symfony but I had the same problems.