Forums

[resolved] WordPress on Addon -> plugins upload in main site instalation not in addon (2 posts)

  1. tzenito
    Member
    Posted 1 year ago #

    Hi i have rather unusual problem i run wp on site.com and then i install one on addon site2.com .

    the actual structure of the host folder looks like that

    +site1.com
    +Addondomains
    +site2.com
    +www
    +root

    +wordpress files for site2.com

    Installation went ok. but then i tried to install some plug-ins on site2.com and what happened is ->

    -Files got uploaded
    -And error with wrong header appeared

    then i tried again and it says the dir already exist . I checked via ftp there wasn't a Dir like that in plug-ins directory. then checked on site1.com and the plug-ins appeared there but unactivated. Someone has a clue what can i do to fix it . I have a feeling that i have to edit the path for the plug-ins to point to /addondomain/site2.com/www/root/wp-content/plugins wich most kely at the moment looks like wp-content/plugins

  2. tzenito
    Member
    Posted 1 year ago #

    [Solved]

    i solve the problem with adding the path to the plugin page in wp-config

    define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/wp-content/plugins' );
    define('WP_PLUGIN_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/wp-content/plugins');

Topic Closed

This topic has been closed to new replies.

About this Topic