I have multiple codeigniter websites and I would like to centralize the system folder to facilitate the update proces and avoid filesystem redundancy.
Instead of stucking the files stystem into some random home directory I would prefere to follow Linux Filesystem Hierarchy and I am hesitating between /opt/.. and /usr/local/. My doubt is related after I have seen different deployment approaches for Pear, Zend and other thrid part libraries.
For ex: In Freebsd system I can see that pear is deploying the php files '/usr/local/share/app-name' ex => “/usr/local/share/pear/SOAP/Base.php”.
In Debian system are the php files stored in '/usr/share/' directory ex => '/usr/share/phpmyadmin'.
When it commes to Zend, the Framework files may be found under /usr/local/zend/share/ZendFramework .
What whould be the best practise to deploy the codeigniter so it can be reused accross all system.
I am thinking about '/usr/local/codeigniter-version-number/system/' ?