Help copying wordpress site to local Lampp server

Problems with the Linux version of XAMPP, questions, comments, and anything related.

Help copying wordpress site to local Lampp server

Postby davembrown55 » 17. June 2019 21:04

Version of Xampp: XAMPP for Linux 64bit 7.3.3-1
operating system: ubuntu 18.04.2 LTS

Hi,

I'm trying to copy my wordpress site to my local server using lampp. I’ve followed the following tutorial:

https://premium.wpmudev.org/blog/move-wordpress-xampp/#manual-move
I'm following method 2: Moving wordpress website manually

I'm at the point where I need to load up my site & clear up my database (search & replace the url), but I can’t seem to bring up my website in a browser.

If it helps, here’s how my wp_config file currently looks:

define('DB_NAME', 'lvgh_local');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname (contained the folllowing: 'cust-mysql-123-20') */
define('DB_HOST', 'localhost');
/**localhost***/

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

//** **//
define( 'WP_HOME', 'http://localhost/lvgh_site_test' );
define( 'WP_SITEURL', 'http://localhost/lvgh' );

-----------------------------

In the browser:
If I type in http://localhost It just brings up the standard Xampp dashboard
If I type in https://localhost/lvgh/ I get the following error:

Error 404
localhost
Apache/2.4.38 (Unix) OpenSSL/1.0.2r PHP/7.3.3 mod_perl/2.0.8-dev Perl/v5.16.3

I put the website in the following location opt/lampp/htdocs/lvgh_site_test/ there is still another wordpress folder that came with the lampp install in the htdocs folder, which I don’t have permissions to get rid of, I’m not sure if that’s causing an issue or not.

Does anyone have any advice please? It would be a massive help if so.

Thanks
davembrown55
 
Posts: 3
Joined: 23. April 2019 18:16
XAMPP version: 7.3.3-1
Operating System: ubuntu 18.04.2 LTS

Re: Help copying wordpress site to local Lampp server

Postby Nobbie » 17. June 2019 21:31

>I put the website in the following location opt/lampp/htdocs/lvgh_site_test/

And why do you configure the SITEURL as http://localhost/lvgh?? That does not match obviously.

>If I type in https://localhost/lvgh/ I get the following error:

>Error 404

Yes of course, there is no folder /opt/lampp/htdocs/lvgh
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Re: Help copying wordpress site to local Lampp server

Postby davembrown55 » 18. June 2019 21:33

Hi, thanks for the reply.

I took this from the tutorial that I followed:

• Change the WP_HOME definition (or add it if you don’t see it) to identify the location where WordPress is installed in your website files; and
• Change or add the WP_SITEURL definition (or add it if you don’t see it) to identify the address that should be typed into the browser address bar to load WordPress.

I assumed (most likely incorrectly) that WP_SITEURL allowed me to create / choose a URL that I would like to type into the browser to get access to the site.
I have now adjusted this to:

define( 'WP_HOME', 'http://localhost/lvgh_site_test' );
define( 'WP_SITEURL', 'http://localhost/lvgh_site_test' );
in wp-config.php, as this is where the site is located.

If I now type http://localhost/lvgh_site_test into the address bar of my browser, I’m just getting a pop up window that's asking me to open or save a file?

The file is called: Vxp+tb43 and contains the following info:

<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/

/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/
define('WP_USE_THEMES', true);

/** Loads the WordPress Environment and Template */
require( dirname( __FILE__ ) . '/wp-blog-header.php' );

Any ideas where I'm going wrong?
Thanks
davembrown55
 
Posts: 3
Joined: 23. April 2019 18:16
XAMPP version: 7.3.3-1
Operating System: ubuntu 18.04.2 LTS

Re: Help copying wordpress site to local Lampp server

Postby Nobbie » 18. June 2019 23:26

First of all: this is NOT a wordpress forum and we cannot support wordpress.

Anyway, its obvously strange to apply twice the same value to WP_HOME and WP_SITEURL. That does not make any sense. I would apply the local path to WP_HOME instead, for example c:/xampp/htdocs/lvgh_site_test

If it still fails, a wordpress forum should provide better support than the Xampp forum.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Linux

Who is online

Users browsing this forum: No registered users and 29 guests