[wp-trac] [WordPress Trac] #37101: Linux symbolic link support for wordpress [GITHUB PULL REQUEST #219]

WordPress Trac noreply at wordpress.org
Tue Jun 14 14:26:31 UTC 2016


#37101: Linux symbolic link support for wordpress [GITHUB PULL REQUEST #219]
----------------------------+-----------------------------
 Reporter:  ole1986         |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  4.5.2
 Severity:  normal          |   Keywords:
  Focuses:  multisite       |
----------------------------+-----------------------------
 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

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37101>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list