I’m trying to move my wp-content folder to a different drive (from /var/www/html/ to /mnt/)
I tried creating a symlink from the wp-content to the new wp-content folder but that doesn’t seem to work.
I tried to use the following(I’m guessing this is where the problem lies?):

    //define('WP_CONTENT_DIR', '../../../../mnt/folder/wp-content');
    //define('WP_CONTENT_URL', 'https://site/wp-content');
    //define('WP_PLUGIN_DIR', '../../../../folder/content/plugins'); 
    //define('WP_PLUGIN_URL', 'https://site/wp-content/plugins');
    //define( 'PLUGINDIR', '../../../../mnt/folder/content/plugins');

It seemed to work, for the most part. But when I enable any plugins I get an MSQL warning saying there are too many connections. I get locked out of the admin dashboard but I can fix it by renaming the plugins folder.

Read more here: plugins break after moving wp-content folder


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: