Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Concept:
- I have 50+ wordpress sites on my server, all different client sites. I am tired of having 50 copies of most plugins and themes.
- 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.
- What I did:
- 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
- That folder is for user & group shawn
- I have a website bargainwp.com which has its own folder /home/bargainwp/public_html/wp-content/
- I did a symlink:
- ln -s /home/shawn/wordperss/wp-content/plugins /home/bargainwp/public_html/wp-content/plugins/
- I added user bargainwp to the group shawn: (I want bargainwp to be able to update the plugin in admin)
- usermod bargainwp -G bargainwp,shawn
- Problem: I get a bunch of the following type of errors:
- NetworkError: 500 Internal Server Error - http://shop.bargainwp.com/wp-content/plugins/home/shawn/wordpress/wp-content/plugins/woocommerce-subscriptions/css/admin.css
- screenshot:
- https://dl.dropbox.com/u/2045194/symlink-errors.jpg
- notice the path shows my /shawn/wordpress/.... instead of just /plugins/
- Here is the line calling admin.css
- wp_enqueue_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), WC_Subscriptions::$version );
- **Error logs show**
- 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
- 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.)
- example link with that error: http://shop.bargainwp.com/wp-admin/admin.php?page=wp-traffic-tools/wp-traffic-tools.php
- I do NOT get that error when going to the same link with no symlinks under normal conditions.
- Question:
- 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