title: Local development and symlinked shared libraries
body: <p>I tried to setup my local apache docroot as follow for local php  development.</p>
  
  <p>For example, a fragment of the directory structure:</p>
  
  <pre><code>- Libs-git (shared lib packages)
  -- Wp_Libs (Contains common libraries for wordpress dev)
  --- autoload.php
  --- composer
  --- my-shared-pkg1
  --- my-shared-pkg2
  
  - Wp.Sites
  -- Wp.Site1
  --- wp-libs (Symlink to Wp_Libs above)
  --- wp-content/plugins/myplugin-site1
  
  -- Wp.Site2
  --- wp-libs (Symlink to Wp_Libs above)
  --- wp-content/plugins/myplugin-site2 
  </code></pre>
  
  <p>Keeping this structure allows me to easily make changes to shared packages and they will be available for all sites using those without copy and paste them each time. </p>
  
  <p>The problem:</p>
  
  <p>When Wp.Site1 calls include statements defined in functions from the Wp_Libs original libs , I get 404 error as output of includes.</p>
  
  <p>Example code from  (wp-content/plugins/myplugin-site1/plugin.php):</p>
  
  <pre><code>include "wp-libs/autoload.php"; //shared composer autoloader
  
  use my/shared/pkg1;
  
  pkg1::show_tpl('filename'); //This statement should include a file relative to the plugin folder (wp-content/plugins/myplugin/tpls/filename.html) 
  </code></pre>
  
  <p>Why I get 404 error page as output from include statements? If I check the include path it exists..</p>