Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi I have 3 servers on my local nettwork and 2 of them have already wordpress and working fine. But now I try to install on my 3. server (lokalhost) but it only show default html when I browse to the site (http://localhost) or Ip adress.
    If I browse to localhost/index.php it says errror db conection.

    I remember I have the same issue before with my other server, but I do not remember what I do.

    Thread Starter Trondny

    (@trondny)

    Yes I solved it now by changing my hosts file

    Thread Starter Trondny

    (@trondny)

    Localy installation of wordpress.

    Most people who have described the installation of wordpress here has used external rent servers and these are not locally available. I have my server in the basement and it is connected my LAN. I remotely controls my server via ssh. Both server and client Pc have Ubuntu 14.04 operating system, but the server I have the server version without Graphical interface.
    The problem that arises when one does not have local dns server is that WordPress installation seen either just locally or only remotely, depending what you write in general settings for URL both should have http://eidskog.ddns.net in this case.
    The challenge will be when to install WordPress and server locally is that one has no Name Server locally and thus can not manage wordpress to distinguish local and internet. This I resolved to use local hosts files on both the server and client machine. I solved this by use hosts file on my client and on my server. The hosts file er at /etc/hosts I use the editor like this: sudo nano /etc/hosts to edit this file.
    On the client pc here (master-ubuntu) hosts file look like this

    The host file for my client computer look like this:
    127.0.0.1 localhost
    127.0.1.1 master-ubuntu.lokal.net master-ubuntu
    192.168.1.10 hb2.lokal.net hb2
    192.168.1.10 eidskog.ddns.net hb2

    My hostsfile for my webserver where wordpress is installed is:

    127.0.0.1 localhost
    127.0.1.1 HB2.lokal.net hb2
    127.0.1.1 eidskog.ddns.net hb2
    192.168.1.20 master-ubuntu.lokal.net master-ubuntu

    The ubuntu installation and wordpress installation is very good described here on this link
    I installed the software and i used this exelent page as leading for me: https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-on-ubuntu-14-04

    Thread Starter Trondny

    (@trondny)

    Hi Thanks for answere.
    My url to homepange is http://eidskog.ddns.net
    I use portforwarding and it work ok I have port 80 open to the site.
    I can enter my site with http://192.168.1.12/wp-admin
    or http://hb1.lokal.net/wp-admin
    and all seems ok from inbond.
    But from outside on the internet it takes 2-3 minutes to load if testing withhttp://www.webpagetest.org/
    I use ssh from my pc to the server and ftp

    My /etc/hosts file look like this

    127.0.0.1 localhost
    127.0.1.1 HB1
    127.0.1.1 hb1.lokal.net hb1
    #127.0.1.1 eidskog.ddns.net hb1
    192.168.1.10 hb2.lokal.net hb2
    192.168.1.14 hb3.lokal.net hb3
    192.168.1.20 master-ubuntu.lokal.net master-ubuntu
    # The following lines are desirable for IPv6 capable hosts
    ::1 localhost ip6-localhost ip6-loopback
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters

    The server is HB1 and my computer is master-ubuntu

    Best regarrds Trond Nyløkken

Viewing 4 replies - 1 through 4 (of 4 total)