Issue in wordpress when changing running user

When changing a wordpress’ running domain to another DH user, I started getting many “permission denied” errors.

It seemed related to wordpress supercache settings.

To fix this, find wp-config.php and look for the following line:

[php]define( ‘WPCACHEHOME’, ‘/home/user/domain/wp-content/plugins/wp-super-cache/’ ); //Added by WP-Cache Manager[/php]

Surely the [color=#FF0000]user[/color] and [color=#FF0000]domain[/color] will be different for each case.

Just update the [color=#FF0000]user[/color] with the actual value and save wp-config.php. This was still pointing to the old former running user config.

Not really a big deal but maybe this is a untested scenario from DH scripts.

Hope this can help people having the same issue.

It’s a not-considered scenario.

There are 50k plugins, more or less, on and some are more popular than others. When you move a site to a new user, we really can’t be sure what you want to edit and what not, so we literally just move the files. No edits.

Since that line is inserted by WP Super Cache (not DreamHost), we leave it alone :confused:

Which… yeah we can argue that one both ways. You’re spot on for the fix!

Got it, agreed. would be huge work indeed keeping script tests sane with all WP plugins available.

We’d cry :wink: