Cloning wordpress to localhost -
i'm trying clone wordpress website on local host carryout small development work , i'm having few issues here. firstly, procedure followed.
- installed xampp @ c:\xampp on windows 10
- edited httpd.conf in apache config , changed port 8080 making change
listen 8080
- xampp runs (both apache , mysql). when visit http://localhost:8080, welcome screen
- i go
http://localhost:8080/phpmyadmin/
, see phymyadmin screen. - i create new database name,
database
in phpmyadmin , subsequently import database file clone. before importing, replace keywords containlocalhost
localhost:8080
in database file. database gets imported successfully. - i copy wordpress files hosting server , place them in
c:\xampp\htdocs\wp
edit
wp-config.php
, change following:database_name_here database username_here root password_here '' (blank)
when go http://localhost/wp/
or http://localhost:8080/wp/, http error 404. requested resource not found.
can point going on here?
no need more effort, follow below steps after copy files, change config file & download sql file source.
1. > open sql file & replace "live url" "http://localhost:8080/wp/" ( include http:// & www)
2. > import edited sql on local machine.
3. > open admin first http://localhost:8080/wp/wp-admin
4. > go settings > permalink section & click on save button.
that's it, site working on local machine.
your 404 error may cause of "step 4" reset permalink. http://www.inmotionhosting.com/support/edu/wordpress/wordpress-features/reset-permalinks
Comments
Post a Comment