Cannot display or log into localhost.
Posted by: bgatto (---.nwrknj.fios.verizon.net)
Date: December 09, 2017 07:06AM

Hello,

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://onlineworkwizard.com', 'http://localhost/oww') WHERE option_name = 'home' OR option_name = 'siteurl';

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

C: UPDATE wp_postmeta SET meta_value = replace(meta_value, 'http://onlineworkwizard.com', '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

Hi,

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

------------------------------------------------------------------------------------------------------------
Wampserver 3.1.3 32 bit - Apache 2.4.33 - PHP 7.2.6/7.1.18/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
Wampserver 3.1.3 64 bit - Apache 2.4.33 - PHP 7.2.6/7.1.18/7.0.30/5.6.36 - MySQL 5.7.22 - MariaDB 10.3.7
PhPMyAdmin 4.8.0.1 - 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.