Issue in wordpress when changing running user

wordpress

#1

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.


#2

It’s a not-considered scenario.

There are 50k plugins, more or less, on WordPress.org 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!


#3

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


#4

We’d cry :wink: