I have several virtual host with each there folder. And a single shared folder:
/home/website1
/home/website2
/home/website3
/home/shared_src
Symlinks works fine inside each folder to a per website folder called "codebase".
I have copied the folder "codebase" to /home/shared_src and would like to use a symlink to access the /home/shared_src_codebase from each of the other websites. But wh ndoing this I get:
PHP Fatal error: Cannot redeclare class [patch and class...]
What shall I add to the apache configuration to allow symlinks to the shared_src folder outsite the web root?
I need to do this for apache on a debian server. I have tried using alias as descriped here. Either that is not the trick, or I did it wrong: Security of symlink to directory outside webroot set to 777?
On another system I once used (based on CentOS) the setting was called PHPBaseDir. On debian I do not know...
UPDATE WITH MORE DETAILED INFO
Mainly bug was caused by the symbolic link beeing linked to a folder named the same as a physical folder inside the website folder.
/home/website1/typo3_src-6.2
/home/website/typo3_src -> /home/sharedsource/typo3_src-6.2 (symlink)
That is fixed and now I get this ind the apache log:
[Wed Jan 15 09:48:17 2014] [error] [client xx.xx.xx.xx] PHP Fatal error: require_once(): Failed opening required '/home/cstmr_opengate/band.opengate.dk/website/typo3_src-6.2.0beta3/typo3/sysext/core/Resources/PHP/TYPO3.Flow/Classes/TYPO3/Flow/Package/PackageManager.php' (include_path='/home/cstmr_opengate/band.opengate.dk/website/typo3/contrib/pear/:.:/usr/share/php:/usr/share/pear') in /home/x_src/typo3_src-6.2.0beta3/typo3/sysext/core/Classes/Core/ClassLoader.php on line 178
So issue is probably not the symlinking it selv. Cause symlink is followed to the shared folder. It is the error that is thrown after the the symlink is beeing used...