• Hi I am Masa. I recently have changed Apache DocumentRoot for wordpress like the following.

    Old: DocumentRoot /var/www/home/www/{sitename}
    New: DocumentRoot /var/www/home/users/{user.id}/www/{sitename}

    I copied all files including wp-core files from Old DocumentRoot to New DocumentRoot and checked the site is working.
    However, when I install plugins, it uploads to Old DocumentRoot like /var/www/home/www/{sitename}/wp-content/plugins.

    In order to fix this problem, I have tried these things.

    Changed recently_edited’s path and the word count -> didn’t work
    Added define( ‘WP_PLUGIN_DIR’, dirname(__FILE__) . ‘/wp-content/plugins’ ); -> didn’t work

    How can I change the wp plugin upload directory to like /var/www/home/users/{user.id}/www/{sitename}/wp-content/plugins?
    Thank you for your help in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing DocumentRoot’ is closed to new replies.