Migrating a Wordpress Website Issues
Posted by: TheoKondak (---.64-178-91.adsl-dyn.isp.belgacom.be)
Date: January 16, 2019 06:52PM

A couple of years ago, I developed my first WordPress website in localhost environment. I used DesktopServer application to do so. Desktop server is using xaamp lite to setup a local server, but provides some interface, so I used this instead of just xaamp lite itself.


What I want to do now, is to revive this website in a new environment, using wamp server so I can do some updates and use this project for my thesis.

I got access to both the files, of the wordpress installation as well as the database.

My knowledge is pretty limited, and I am trying to learn, so please don't be harsh.

So what I have done so far:

1. I've copied all the wordpress files from the old directory.
2. I've exported the Database, and then imported it to the new machine using commandline.\
3. I updated the wp-config.php with the updated info in order to access the new database.
4. Since the website has a .dev extention, I had to either change it or install SSL certificate. I did the second.
5. I've updated the URL changing "http" to "https" and added a "localhost" infront of it.

Now the homepage kinda loads, but if i try to visit some link from the main menu I get this:
[imgur.com]

I have no idea what that means.

As you can see, I am using an old version of WAMP in order to avoid sql or php incompatibilities.

Please let me know you need any further info.

Options: ReplyQuote
Re: Migrating a Wordpress Website Issues
Posted by: RiggsFolly (Moderator)
Date: January 16, 2019 07:05PM

Hi,

That looks like the WAMPServer homepage but without the CSS being loaded.

Makes me think you did not correctly install WAMPServer.


You dont have to use https if your tld is `.dev` its just that if you use Chrome (googles browser) now after Google bought the complete `.dev tld it will not look locally for the domain it is forced to go to the internet only to find the domain.


I would suggest you start again.

Uninstall wampserver and then delete the wamp64 folder.

Then reinstall WAMPServer, and before you do anything else, make sure that the WAMPServer homepage loads correctly. You get to that by entering `localhost` in the browser.

I also suggest you install Chrome and FireFox and check in both browsers that WAMPServer homepage works OK.

Once that is done and tested.

Create a Virtual Host See this post but use a different tld like `.local` for example.

Then read WAMPServer 3 Create a Virtual Host, the easy way


Then install WordPress into the Virtual Host, and load your database.

Then read to find out how to fix WordPress sites where yo have moved the site from one domain to another

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 01/16/2019 07:06PM by RiggsFolly.

Options: ReplyQuote
Re: Migrating a Wordpress Website Issues
Posted by: TheoKondak (---.64-178-91.adsl-dyn.isp.belgacom.be)
Date: January 16, 2019 08:53PM

RiggsFolly Wrote:
-------------------------------------------------------
> Hi,
>
> That looks like the WAMPServer homepage but
> without the CSS being loaded.
>
> Makes me think you did not correctly install
> WAMPServer.
>
>
> You dont have to use https if your tld is `.dev`
> its just that if you use Chrome (googles browser)
> now after Google bought the complete `.dev tld it
> will not look locally for the domain it is forced
> to go to the internet only to find the domain.
>
>
> I would suggest you start again.
>
> Uninstall wampserver and then delete the wamp64
> folder.
>
> Then reinstall WAMPServer, and before you do
> anything else, make sure that the WAMPServer
> homepage loads correctly. You get to that by
> entering `localhost` in the browser.
>
> I also suggest you install Chrome and FireFox and
> check in both browsers that WAMPServer homepage
> works OK.
>
> Once that is done and tested.
>
> Create a Virtual Host
> [url=http://forum.wampserver.com/read.php?2,127757
> ]See this post[/url] but use a different tld like
> `.local` for example.
>
> Then read
> [url=http://forum.wampserver.com/read.php?2,146746
> ]WAMPServer 3 Create a Virtual Host, the easy
> way[/url]
>
>
> Then install WordPress into the Virtual Host, and
> load your database.
>
> Then read
> [url=https://codex.wordpress.org/Changing_The_Site
> _URL]to find out how to fix WordPress sites where
> yo have moved the site from one domain to
> another[/url]


Localhost loads just fine though: [url]https://imgur.com/a/z7dKNy3[/url]

In the past, I have done various tries to migrate this domain or some backups of it I have, but I stumble upon problems all the time, most of them related to the database. Now the files for www.ahooga.dev are the latest version of the website, so I'd pref to migrate this one. Some of the older backups does not present this problematic page when i click on the menu links, so the problem should not be wamp, but something else.

Took me a while to install SSL today, but it was a nice experience. I learned a lot. So now, since I have it, I guess makes no harm to keep it. It will also give some extra credits to the project, on which I am writing my thesis on.

[url]https://imgur.com/a/z7dKNy3[/url]

Options: ReplyQuote
Re: Migrating a Wordpress Website Issues
Posted by: RiggsFolly (Moderator)
Date: January 17, 2019 05:25PM

This now seems more like a lack of knowledge of WordPress, and we are not Wordpress experts.

So I would suggest going the WordPress site and asking there

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-

Options: ReplyQuote
Re: Migrating a Wordpress Website Issues
Posted by: TheoKondak (---.64-178-91.adsl-dyn.isp.belgacom.be)
Date: January 19, 2019 11:46AM

I've decided to recreate the website from scratch. The database was corrupt in many ways, and I could not make it right. Even when I managed to make the website run in the front end, i kept facing errors here and there.

Options: ReplyQuote
Re: Migrating a Wordpress Website Issues
Posted by: Otomatic (Moderator)
Date: January 19, 2019 05:26PM

Hi,

For your local sites and in the same way as all hosts do, you must use VirtualHost.
And VirtualHost must exist before installing the CMS or web application.

See The need for Virtual Host and Wampserver 3 - Create or add a VirtualHost

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote


Sorry, only registered users may post in this forum.