4
Have:
- an FTP server with Cpanel running over WHMCS
- three Mysql databases linked to different users
- three Wordpress accounts associated with the above mentioned databases
How to install a plugin separately, and connect to the installation of the same plugin to three Wordpress accounts?
I want to do this because I have a large project ahead of me, and I need to be able to update in a single location the plugin, that I intend to connect with the various accounts, so to facilitate the updating of the
Someone provided me with this solution in Stack Overflow in English. however, I need to know if this moves the original files by deleting them, and if so, what is the command to copy the files in a non-destructive way
// Set WP_CONTENT_DIR to the full local path of this directory (no trailing slash), e.g.
define( 'WP_CONTENT_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content' );
// Set WP_CONTENT_URL to the full URI of this directory (no trailing slash), e.g.
define( 'WP_CONTENT_URL', 'http://example/blog/wp-content');
// Set WP_PLUGIN_DIR to the full local path of this directory (no trailing slash), e.g.
define( 'WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/plugins' );
// Set WP_PLUGIN_URL to the full URI of this directory (no trailing slash), e.g.
define( 'WP_PLUGIN_URL', 'http://example/blog/wp-content/plugins');
// If you have compability issues with plugins Set PLUGINDIR to the full local path of this directory (no trailing slash), e.g.
define( 'PLUGINDIR', $_SERVER['DOCUMENT_ROOT'] . '/blog/wp-content/plugins' );
Wouldn’t it be better to assemble all three in a mulsite environment? so a plugin activated on the network becomes available to everyone, and users receive access to the sites you determine. see here how to proceed
– h3nr1ke
i know the Multisite. the point is that the goal is to make thousands of threads for different types of website. and it is not intended to be in one installation, for other issues related to system architecture.
– Tiago Morais Morgado
Anyway, even as a network, I will have to create multiple iterations of my project, so creating a single installation does not solve the problem of plugin updates, which has to be done from a single location. still thank you :)
– Tiago Morais Morgado
Hi, Tiago, you don’t need to mark your edition in the text, each post has a history that can be checked who edited what. I added comment markers to your code to make it easier to read, usually no one edits code in a question, but since that’s not the problem, I thought it made it easier to read.
– brasofilo