• Having some issues with malware on my site, I decided to get to the root of it, on my PC before reuploading the site to remote. Accordingly, I cloned htdocs folder of my remote, containing the WP install to /var/www/wp after installing LAMP on Ubuntu, I changed the username to a new user on the imported database, set the password, change DB host to localhost, granted all privileges for the database, and then tried running it from localhost/wp, which is where I installed wp (/var/www/wp)

    However, when I try to access wordpress dashboard at wp-admin, it takes me to http://localhost/wp/wp-admin/install.php, and asks for details for installing a new Wp install, instead of reusing existing one, which is what I want.

    The old table prefix has been added to wp-config.php. The site I had was a network of sites.

Viewing 1 replies (of 1 total)
  • Thread Starter droidzone

    (@droidzone)

    It was a table issue. Apparently since I had WordPress multisite, when I was running it on localhost, I had to specify one of the table prefices for wp-config, and the generic format wasnt enough since the generic format seemed to get a suffix with a number for each site within MU.

    I did that, then adjusted the wp_options for one of the sites, and got the login screen. However, I am having multiple errors stating that certain tables dont exist, especially wp_users and others

    What’s the proper way to run a subdomain based MU site on localhost?

Viewing 1 replies (of 1 total)

The topic ‘Working with WordPress remote clone on localhost’ is closed to new replies.