Pantheon Community

Tip Tuesdays: Easy Symlinks in WordPress

Hi folks!

Carl here from CSE.

One of the common challenges that we usually encounter with WP users in the platform is setting up symlinks especially if a site owner is doing for the first time even though we have an excellent documentation for that https://pantheon.io/docs/plugins-known-issues#assumed-write-access.

Don’t fret, there should now be a plugin for that: https://wordpress.org/plugins/easy-symlinks/. Now, setting up symlinks would be easy as:

  1. Making sure you are in sftp mode( This only works in Dev environment).
  2. Download, install and activate the plugin.

  3. Configure the target and the link, you can refer here to the common plugin/theme that uses symlinks
    https://wordpress.org/support/topic/list-of-common-symlinks-in-pantheon/
  4. Deploy to Test and Live
  5. You may need to recreate the folders in wp-content/uploads from Dev to Test and Live

Note: If you have already had a folder existing before creating symlinks, you will need to delete them first before creating the symlinks via the plugin.

This plugin is still in beta and is open for feedback via https://github.com/wpugph/WordPress-Easy-Symlinks/issues or https://wordpress.org/support/plugin/easy-symlinks/

Thanks and I hope this will help out someone in the future.

4 Likes

Thanks for sharing @carlalberto this is incredibly helpful! I feel like @JohnRichardsII would appreciate this one.

3 Likes

So cool :sunglasses: also I’m nearly a month late. Thanks for putting this together Carl. It will make life much easier when trying walk someone through the process. I saw this plugin shouted out earlier today in a thread. Kudos!

2 Likes

Thanks @JohnRichardsII @McKennaR! :slight_smile: