WordPress.org

Make WordPress Core

Opened 15 months ago

#37101 new enhancement

Linux symbolic link support for wordpress [GITHUB PULL REQUEST #219]

Reported by: ole1986 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.5.2
Component: Administration Keywords:
Focuses: multisite Cc:

Description

I was searching for a solution to allow symbolic links in wordpress core files/folders
The only resource I found was this article

http://www.htmlgraphic.com/symlinking-wordpress-core-files-wordpress-skeleton/

which is not satisfying at all IMO

So, I came up with this pull request which slightly changes the core files
To achive the symbolic links with linux you can do the following

# create a new wordpress instance and change directory
mkdir wordpress-symlink && cd wordpress-symlink
# Copy the wp-content folder from global storage where "latest" version of wordpress is located
cp -R /var/lib/wordpress/wp-content ./
# create symlinks for all other files/folders into current folder (wordpress-symlink)
ln -s /var/lib/wordpress/* ./

Of course an important setting is to disable automatic updates in wp-config.php (once created)

define( 'AUTOMATIC_UPDATER_DISABLED', true );`

PingBack: https://github.com/WordPress/WordPress/pull/219

Change History (0)

Note: See TracTickets for help on using tickets.