Advertisement
sgaffney

symlink issues

Feb 15th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.23 KB | None | 0 0
  1. Concept:
  2. I have 50+ wordpress sites on my server, all different client sites. I am tired of having 50 copies of most plugins and themes.
  3. So my idea was to put all my plugins and themes into a special folder on my server and use symlinks for the sites to all access the same plugin and theme folders.
  4.  
  5.  
  6. What I did:
  7. I created a directory on my server /home/shawn/wordpress/wp-content/plugins to store my wordpress plugins in for all of my wordpress sites
  8.  
  9. That folder is for user & group shawn
  10.  
  11. I have a website bargainwp.com which has its own folder /home/bargainwp/public_html/wp-content/
  12.  
  13. I did a symlink:
  14. ln -s /home/shawn/wordperss/wp-content/plugins /home/bargainwp/public_html/wp-content/plugins/
  15.  
  16. I added user bargainwp to the group shawn: (I want bargainwp to be able to update the plugin in admin)
  17. usermod bargainwp -G bargainwp,shawn
  18.  
  19.  
  20. Problem: I get a bunch of the following type of errors:
  21. NetworkError: 500 Internal Server Error - http://shop.bargainwp.com/wp-content/plugins/home/shawn/wordpress/wp-content/plugins/woocommerce-subscriptions/css/admin.css
  22.  
  23. screenshot:
  24. https://dl.dropbox.com/u/2045194/symlink-errors.jpg
  25.  
  26. notice the path shows my /shawn/wordpress/.... instead of just /plugins/
  27.  
  28. Here is the line calling admin.css
  29. wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), WC_Subscriptions::$version );
  30.  
  31. **Error logs show**
  32. Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://shop.bargainwp.com/wp-admin/admin.php?page=home/shawn/wordpress/wp-content/plugins/wp-traffic-tools/wp-traffic-tools.php
  33.  
  34.  
  35. I have also noticed that when I try to configure many plugins, that I get the error: (You do not have sufficient permissions to access this page.)
  36. example link with that error: http://shop.bargainwp.com/wp-admin/admin.php?page=wp-traffic-tools/wp-traffic-tools.php
  37.  
  38. I do NOT get that error when going to the same link with no symlinks under normal conditions.
  39.  
  40.  
  41.  
  42. Question:
  43. I guess that my overall problem is the path showing /shawn/wordpress/.... how do I fix that part so it just shows the /plugins/ path?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement