• Resolved mfidelman

    (@mfidelman)


    Hi Folks,
    Maybe it’s lack of sleep – I’ve done this lots of times before, but this time something strange is happening.

    LAMP stack on Debian.
    Multiple wordpress sites, each in it’s own directory under /var
    Vhost setup by IP number
    – add IP:port to /etc/apache2/ports.conf
    – create /etc/apache2/sites-enabled/<foo>
    – setup IP address, ServerName, etc.
    But… after enabling the site, and trying to go to http://<site>/wp-admin/install.php – I seem to be going to one of my other sites

    curl -v tells me that I’m going to the right IP, but..
    http://<site>/wp-admin/install.php tells me that my database is already set up and allows me to log in – and I get to an existing site’s admin dashboard
    http://<site&gt; gives me a blank page (not the other site)
    curl -v also tells me that:
    X-Pingback: http://www.greaterdemocracy.org/xmlrpc.php (the WRONG site)

    Obviously, I’m missing something in my vhost or my wordpress setup, but what????

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mfidelman

    (@mfidelman)

    Ok, just found what I did, but still need an answer.

    This particular machine has only a single wordpress site, with docroot at
    /var/wp_site
    and wp-config.php at
    /var/wp-config.php (moved up a level after a hacker exploit a while back)

    ok, now I want to add a new site, with docroot at
    /var/2nd_wp_site
    well… where do I put the 2nd wp_config.php, so it’s outside the tree, but wordpress still find it???

    Thread Starter mfidelman

    (@mfidelman)

    Ok, did some googling, found a number of answers, but the simplest is to do something like:
    /var/site1/wordpress/<docroot>
    /wp-config.php
    /var/site2/wordpress/<docroot>
    /wp-config.php

    Ah yes, the simple answers are best.

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

The topic ‘strange Apache vhost problem’ is closed to new replies.