I've justed moved my website to localhost using Xampp.
I changed some settings to increase speed and I can access every part of my site offline from localhost:8080
, instead the wp-admin
.
I can see the login page and I can enter my info to login, but when I hit enter it takes too much to load and I don't know even if it will be loaded or not, but when I connect to the internet, everything works well.
Currently, I can only see the pages and posts offline and WordPress doesn't respond.
What is wrong?
Update
I use localhost:8080
to access my site, so I edited wp-config.php
and changed
/** MySQL hostname */
define('DB_HOST', 'localhost');
to
/** MySQL hostname */
define('DB_HOST', 'localhost:8080');
but I get the following error:
Fatal error: Uncaught Error: Call to undefined function nocache_headers() in C:\xampp\htdocs\mysite\wp-admin\admin.php:33 Stack trace: #0 C:\xampp\htdocs\mysite\wp-admin\index.php(10): require_once() #1 {main} thrown in C:\xampp\htdocs\mysite\wp-admin\admin.php on line 33
Some of the changes I've made
changing Listen 127.0.0.1:80
to Listen 127.0.0.1:8080
in httpd.conf