Live site to Local server using Wamp
-
Hello,
I am new to WordPress
I am trying to duplicate a live wordpress site to my windows 10 pc.
I use Wamp.
I exported and imported the database.
I can browse the tables in the database.
I copied all the files from public_html into: c:\wamp64\www\mysite.local
I changed the database details in wp_config to:
<
/** MySQL database username */
define(‘DB_USER’, ‘root’);/** MySQL database password */
define(‘DB_PASSWORD’, ”);/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);I added this in C:\Windows\System32\drivers\etc\hosts:
127.0.0.1 mysite.local
::1 mysite.localI added this in C:\wamp64\bin\apache\apache2.4.51\conf\extra\httpd-vhosts.conf:
<VirtualHost *:80>
ServerName mysite.local
DocumentRoot “c:/wamp64/www/mysite.local”
<Directory “c:/wamp64/www/mysite.local”>
Options +Indexes +Includes +FollowSymLinks +MultiViews AllowOverride All
Require local
</Directory>
</VirtualHost>When I browse localhost I see the folder under: VirtualHost.
Clicking on mysite.local it opens a save file window with random letters as the file name, every time different letters, instead of showing me the site.What am I missing?
- The topic ‘Live site to Local server using Wamp’ is closed to new replies.