Wordpress Manual Restore - wp-config.php and domain name issues | Wordpress Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_Feed Topic RSSsp_TopicIcon
Wordpress Manual Restore - wp-config.php and domain name issues
March 17, 2012
9:54 am
Avatar
Phill
New Member
Members
Forum Posts: 1
Member Since:
March 17, 2012
sp_UserOfflineSmall Offline

Hi there. 

 

I'm trying to clone a live site to my local development server but keep finding that the local wp-config.php file isn't updated with the correct database details and that the mysql database isn't updated with the new local domain name. 

Because I don't have / allow direct FTP access to my local development machine I have downloaded the backup manually and copied the TAR.php and XCloner.php files to the local root directory.

I can run XCloner.php just fine, enter the new database details. 

The files are extracted, the database installed (I'm using the Add Drop Tables option) but every time I go to visit the site locally the wp-config.php contains the original site database details.  

If I manually update wp-config.php I discover that all of the internal domain name references are still set to the example.com live domain instead of the example.local development domain. 

Can anyone suggest what I'm doing wrong?

Any help would be greatly appreciated. 

 

Thank you!

March 17, 2012
7:37 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

When doing the restore, make sure the wp-config.php file remains writeable, otherwise XCloner is not able to update it with the new mysql settings.

 

XCloner also add a code in the wp-config.php to help with the url change, please check here http://codex.wordpre.....method in case you need to add that manually!

 

Hope it helps! Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10052
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
ISIDORO ILARDO
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0