• I have been looking at wordpress using my Cpanel
    I was informed I should work on my own server/PC I hace installed xampps and wordpress in that in localhost. But I cannot find out how to get into that wordpress (on PC) and not on Cpanel. What di I type into the addrress bar now

Viewing 3 replies - 1 through 3 (of 3 total)
  • Probably something like: https://localhost/
    I am surprised that the xampps docs don’t show you.

    This aside it is my opinion that “localhost” like this really sucks, it is limited to one website, makes migration harder.
    I very much recommend using the “Virtual Host” technique described here:
    https://httpd.apache.org/docs/2.2/vhosts/
    In conjunction with:
    https://en.wikipedia.org/wiki/Hosts_%28file%29

    Thread Starter Terrybull

    (@terrybull)

    https://localhost/ — On entering this it just changes itself to https://localhost/dashboard and puts me onto the apache friends page.
    I spent ages getting this xampps / dashboard to work and noe cant get back into it (the server version). I will have to use what you have recommended by yourself. How would i log into this one after a reboot so as I know in advance. Thanks for your help.

    say you set the virtual host name to “yourdomain.com”, then as part of the “moving wordpress” procedure you would as a temporary measure add these lines to your wp-config.php:

    define('WP_HOME','https://yourdomain.com');
    define('WP_SITEURL','https://yourdomain.com');

    Then you would login at either of:

    https://yourdomain.com/wp-admin
    https://yourdomain.com/wp-login.php

    So the steps are:
    – configure apache2 to use virtual host
    – add your chosen name to the hosts file
    – do the temporary config change on wp-config.php
    The apache config change requires at least a “restart graceful” to reload the configuration, otherwise the hosts file and wp-config are used live.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Localhost now’ is closed to new replies.