The Support Forums will be in read-only mode for a scheduled maintenance window on 01 September 2016 14:00 UTC - 20:00 UTC. More information.

Access WordPress on WAMP from LAN (7 posts)

  1. crstauf
    Posted 3 years ago #

    Please reference this screenshot for mentions below: https://teambox.com/d/dc0acf001e22a01f

    So I'm trying to make my WordPress install on WAMP ("Put Online") available to members of our design team, so they can see the process of development. The screenshot contains the following information:

    - first screen is wp-config.php in C:\wamp\www\wp
    - second screen is my hosts file
    - third screen is showing successful access to WAMP server from host machine using preview.com
    - fourth screen is showing database connection error accessed from host machine using preview.com/wp

    I am able to access preview.com/wp from another computer on the LAN, but I receive the same database connection error. I know for a fact that this is accessing WordPress on my WAMP install, but obviously I'm having difficulty connecting to the DB.

    What do i need to do? MySQL is using default setup (I don't recall making any changes to it): username root with password *blank*. What am i missing?

    Please help. Any instruction or direction is greatly appreciated!

  2. crstauf
    Posted 3 years ago #

    Additional note: please assume I have not made any changes to httpd.conf. I know that I did uncomment something (in an attempt to get this working, following another tutorial, but I cannot recall what it was).


  3. fonglh
    Posted 3 years ago #

    Try changing the db host setting in the wp-config.php file to localhost

  4. crstauf
    Posted 3 years ago #

    hey thanks fonglh. i tried that, and i still get the database connection error. have you successfully accomplished what i'm trying to do? any thoughts on what i may have missed??


  5. crstauf
    Posted 3 years ago #

    ok i'm now getting the following error from WordPress when accessing from computer on lan:

    "We were able to connect to the database server (which means your username and password is okay) but not able to select the wp database."

    I know the wp database exists (can see it in phpmyadmin, and wordpress install is running on it, obviously). user has global privileges set to all, and host is any/wildcard (%).

    what's left??

  6. fonglh
    Posted 3 years ago #

    Is the DB_NAME value correct? Make sure you have no extra spaces. Make sure the names in the wp-config.php file and the database are of the same case.

  7. crstauf
    Posted 3 years ago #

    yes. i can access and view the WordPress install from the host, so i know that it exists and functions correctly. thanks, fonglh. any other thoughts on what might be incorrect?

Topic Closed

This topic has been closed to new replies.

About this Topic