Support » Fixing WordPress » localhost home web server

  • Resolved perra


    Ok, I have WP working on a home server and as long as I work on the host computer everything works fine. However, when I access WP from a remote machine on the network all css formatting is lost and the links include localhost/WPname instead of machinename/WPname uri’s.

    I tested another directory within the httpd directory (e.g. apache manuals) which reflect the correct path, machinename/manuals and corresponding uri’s.

    Haven’t been able to figure it out.

    Platform: Windows XP Pro, Apache 2, MySql 4, Php 4, mod_rewrite loaded.

    Thanks in Advance.

Viewing 9 replies - 1 through 9 (of 9 total)
  • In Options > General you set 2 URIs, those define where your blog is.
    If it is set to local – it cannot be on the internet: every machine that accesses it will “think” of ‘localhost’ as themselves 🙂

    maybe you can put the ip of your machine .

    when u run apache you can access (sometime you have to do some modifications) http//your-ip

    if u put this in your wordpress control panel (what moshu told you ) it might work .

    On WinXP you can also use the name of your workstation instead of localhost. By that you are able to access your local webserver from every Windows workstation inside your LAN.

    Replacing the ip address for the localhost in the Options > General worked (e.g. http//your-ip/WPname instead of http//localhost/WPname), Thanks All.

    Next, since the router is a dhcp server and randomly (dynamically) assigns the internal local ip address which can change at any time (e.g. on router reboot after reconfiguration of network machines and/or other hardware), which would be the best approach to solving this part of the configuration? Options:

    1. Through ip based virtualhost in the Apache httpd configuration file, e.g.

    #NameVirtualHost 192.168.1.XX

    #<VirtualHost 192.168.1.xx>
    ServerName Whatever
    DocumentRoot C:/WhereverApacheResides/htdocs


    2. Through name based virtualhost in the Apache httpd configuration file, e.g.

    #NameVirtualHost *:80

    #<VirtualHost *:80>
    ServerName Whatever
    DocumentRoot C:/WhereverApacheResides/htdocs


    3. Some other solution?

    Note: Directives commented out, just in case!!! For use they would need to be uncommented. (For other users getting started).

    Again, Thanks in Advance

    How to set up a server is beyond the scope of the WP Forum. You could probably get better support for that in places that are specialized in server issues.

    Thanks Moshu for the previous help tips.

    These next pages provided a solution that worked for me in setting up virtual hosts. The last page includes a specific solution for WP. Hope it can help someone.

    Virtual hosting and PHP for local develpment

    Apache Webserver :: MySQL etc.

    Apache 2.0.50,PHP 4.3.8,mod_rewrite and WordPress 1.5????

    Thanks for posting back the solution.
    However, for the not-so-techie users I’d still recommend the installation of XAMPP for local development.



    Thank you to you all, i was having problems with my localhost server and was searching for a simple easy to understand solution without luck, that is until i found this post in my search engine followed what moshu said about Options > general….realised my localhost port was blocked clicked a box and hey presto working perfectly(Shame i didnt find it 3 months ago) so i joined the site. Thanks again for a very helpful straight forward post 🙂


Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘localhost home web server’ is closed to new replies.