• Resolved tocsikbt

    (@tocsikbt)


    Dear All,

    First of all the technical details:

    OrangePi Zero (512Mb)
    Debian for Orange Pi
    Apache2
    PHP5
    MYSQL
    Wordpress
    I have at home an OrangePi and I installed a WordPress on it. I registered a DNS name (exlample.ddns.net) on noip.com.

    I istalled the system, with this tutorial:

    https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/3

    Until wordpress installation can reach the normal index.php file from my private network and from the outside (from internet) properly, so the apache and the php are working fine. The problem need to be with the wordpress.

    When I installed the wordpress (see Page on the mentoined Website >>> WordPress Configuration), than I can reach my wordpress site only from my private lan and from the outside can reach the website without CSS.

    But when I modify the site and home url in the dashboard of the wordpress from the private ip-address of the webserver to my dns name (from noip.com), than the mentioned situation will be reversed:
    (I can reach my wordpress site from the outside with CSS properly but from my private lan the worpdress loads only without CSS.)

    PS: I used only the mentoined link for installation:

    https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress/3

    Do you have any idea for this issue with this description?

    Thank you for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • That’s standard, and expected behaviour.

    WordPress works with one URL only. If you use the local URL, it won’t work correctly using the public URL. If you use the public URL, it won’t work correctly from the local URL. You have to decide which one to use, and stick to only that one. Personally, I’d use the public URL and just access it from that when you need to.

    Thread Starter tocsikbt

    (@tocsikbt)

    Hi,

    Thank you for the info, but I don’t understand, how can I edit my website from the outside and from my private lan at the same time.

    for example, when I want to create a new post on my website at home, than I need modify the url on dashboard to the private ip? And when it is done, I need modify the url to my dns name again?

    Thank you in advance!

    You don’t edit it like that. You do the editing from the public URL. Once WordPress is installed, you do everything through the URL that you performed the installation on. You just have to make sure that the public URL is accessible through your local/private network.

    Thread Starter tocsikbt

    (@tocsikbt)

    Hi,

    The problem has been resolved. I added the DNS name and the IP-Address of the Server to the host file of my PC. So I can reach my website from the outside and from my private LAN also.

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

The topic ‘WordPress CSS Problem’ is closed to new replies.