Cannot display or log into localhost.
Posted by: bgatto (
Date: December 09, 2017 07:06AM


I want to transfer my website to a localhost on a Windows 10 laptop and cancel the website. What I did was this:

1. I created a folder under C:\wamp64\www and called it oww. and copied all the filed I backed up from the webhost excluding the database backup.
2. Using Filezilla, I copied all the wordpress files from the webhost to the oww folder on my computer.
3. Backed-up the database that was on the webhost onto my computer.
4. Using the Wampserver => phpMyAdmin I created an empty database and imported the SQL file I backed-up from the webhost.
5. I then changed the DB_NAME to oww_db, DB_USER to 'root' and DB_PASSWORD to '' in the wp_config file.
6. I then ran the following SQL updates:

A: UPDATE wp_options SET option_value = replace(option_value, '', 'http://localhost/oww') WHERE option_name = 'home' OR option_name = 'siteurl';

B: UPDATE wp_posts SET post_content = replace(post_content, '', 'http://localhost/oww');

C: UPDATE wp_postmeta SET meta_value = replace(meta_value, '', 'http://localhost/oww');

After I did all of this, I went into internet explorer and typed localhost/oww and pressed Enter. All I got back was a message saying:

Do you want to open or save oww (435 bytes) from localhost?

What is wrong?

Did I miss something or is Wampserver corrupted?

Thanks for the help,

Bob Gatto

Options: ReplyQuote
Re: Cannot display or log into localhost.
Posted by: Otomatic (Moderator)
Date: December 09, 2017 09:37AM


> [localhost]'
You must absolutely use VirtualHost, as with all hosts. See The need for Virtual Host

Wampserver 3.1.7 32 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25 - MariaDB 10.3.12
Wampserver 3.1.7 64 bit - Apache 2.4.38 - PHP 7.3.2/7.2.15/7.1.26/7.0.33/5.6.40 - MySQL 5.7.25/8.0.14 - MariaDB 10.3.12
PhPMyadmin 4.8.5 - MysqlDumper 1.24.5
on W10 and W7 Pro 64 bit
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons
« Ce n'est pas parce qu'ils sont nombreux à avoir tort, qu'ils ont forcément raison. Coluche »
« It's not because they are many to be wrong, they are necessarily right. Coluche »

Options: ReplyQuote

Sorry, only registered users may post in this forum.