title: symlink hundreds of wordpress websites
body: <p>PHP programmer here.  Boss wants me to create multiple wordpress websites that are symlink'ed back to a single parent wordpress directory.  Each website resides in a separate Linux user account.  In other words, one parent, many children copies, all residing in different /home/ accounts.  I need help with my symlink strategy...</p>
  
  <p>So far, for each new linux web account,</p>
  
  <ol>
  <li>install the database</li>
  <li>sed replace config values into a temp config file</li>
  <li>mysql insert some config data</li>
  <li><p>symlink????</p>
  
  <p>a. every wordpress file ??</p>
  
  <p>b. the entire public_html directory ??</p></li>
  </ol>
  
  <p>If I alter the parent wordpress PHP code, I can place a "real" copy of the config file in the child user  directory, above the symlinked public_html. So, I need only use one child symlink to the parent's public_html directory. BUT, apache returns a 500 error. How do I set up the permissions? </p>
  
  <p>Permissions are the issue. Would chgrp work?  Which group?  What file mode?  Or would I need to create a special group to accommodate the apache user, nobody?</p>
  
  <p>Any help would be greatly appreciated.  Code samples welcome :)</p>