Reputation: 11798
I am using linux.
i have a server for my wordpress site The name of the site example.com {name is not real but for example).
i copied the entire directory example.com from the server to my computer. the folder example.com has wp-config.php, wp-admin folder etc. Basically all the files of the site.
i also exported and imported mysql databe to my local mysql server.
Now how to configure my apache conf file and hosts file so that when i type example.com it should open my local website.
Presenlty i stored example.com in /user/home/public_html/example.com
Upvotes: 0
Views: 102
Reputation: 1334
Assuming that your wp config has been modified to match your local server settings, all you need to do explained in this answer. Don't forget to restart your apache service!
Upvotes: 0
Reputation: 3557
Upvotes: -1