• Hi, I am trying to install wordpress locally on my laptop for testing purposes.
    I have a live site and want to make a copy of it locally.
    I followed the steps of downloading my site files into a directory called ‘omar’

    The path of my project is:
    C:\wamp64\www\omar

    when I navigate to localhost I get the wampserver page along with my listed projects.
    It shows ‘omar’ under my projects.
    when I press on my project ‘omar’ it should take me to my site. Instead I am getting the site cant be reached error message.

    The url should be: https://localhost/omar
    I am getting: https://omar with site cannot be reached error message

    Could the protocol be the problem? should I define https://localhost/omar in my siteurl and home option values in my wp-options in the database ?
    I changed the option values from my live site to https://localhost/omar

    I would really appreciate any support or advice on this matter as I have no idea what is wrong. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • @omar1985

    Hello Omar, just out of curiosity, how are you copying your live site to your localhost for wamp. I think the best way to duplicate a site from a live site is using a plugin called duplicator, it allows you to backup your files as a zip and a installer.php for you to install on your localhost.

    by default, since your site is https, it will auto redirect to a https:// instead of having http. If you can logged into your wordpress dashboard u can actually change it from https to http if needed by going to the settings in the dashboard.

    locally doesn’t use https unless you have set it up using openssl

    @benlumia007

    Thread Starter Omar Karabibar

    (@omar1985)

    I downloaded the files from the live site directly to my C:\wamp64\www\omar directory through Filezilla FTP. Yes my live site is https. it is https://www.glasschem.eu

    I run the following SQL queries on my local database:

    UPDATE pql_options SET option_value=replace(option_value, ‘https://www.glasschem.eu’,’https://localhost/omar’)
    WHERE option_name=’home’ OR option_name=’siteurl’;

    UPDATE pql_posts SET post_content=replace(post_content,’https://www.glasschem.eu’,’https://localhost/omar’);

    UPDATE pql_postmeta SET meta_value=replace(meta_value,’https://www.glasschem.eu’,’https://localhost/omar’);

    Should I change the ‘http’ to ‘https’ ?! or locally it uses http as you said ?!

    Any idea on why I am getting site cannot be reached ?! should I delete ‘omar’ and do the transfer using duplicator plugin ?! should I copy into www instead of a directory? could that be the reason ?! any idea ?!

    I think if you use the duplicator, it does everything automatically, that’s including copying your files into .zip file and it also creates a installer.php.

    that way you can copy those files to your localhost/omar/installer.php and localhost/something.zip..

    then you would need to go to the browser and type https://localhost/installer.php and follow the directions, from here you will need to setup a new database and username and password so that the duplicator can know which database to to use.

    if using duplicator, u don’t have to worried bout https, it will just do its thing and use http instead.

    Thread Starter Omar Karabibar

    (@omar1985)

    thanks for the help , I will try it out. During the installation process it would probably ask me where I want to install it – in localhost or localhost/directory
    that doesnt make a difference right ?! it is Duplicator – WordPress Migration Plugin
    By Snap Creek , right ?!

    Hello,

    Yup, that’s correct, Snap Creek (Duplicator). Hope this works out for you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Local install of WP – cannot access my local site – site cannot be reached’ is closed to new replies.