Note that there are some explanatory texts on larger screens.

plurals
  1. POTwo XAMPP WordPress Installations, pointing one to a different URL, both not working correctly
    primarykey
    data
    text
    <p>Horrible title, I know. </p> <p>I am running Windows 7 with an XAMPP local server with an installation of WordPress. I know this one works correctly, I've used it many times. I have a MySQL database for it and it sits in htdocs/wordpress.</p> <p>Now, I have a contract in which I'm working for someone on another WordPress theme and would like to have this as a separate database and install. So, I make another folder in htdocs, let's call it folder2. I then create another database in MySQL, import the db I was given, and create a user to match the wp-config.php file of this install. No problem, except that it points to "localhost/folder2" and I need it to point to "local.folder2.com" to match the contractor.</p> <p>So I hunt around the web and stumble on VirtualHosts for XAMPP. I go to /System32/drivers/etc/hosts and add the domain. </p> <pre><code>127.0.0.1 localhost ## Already here for XAMPP purposes 127.0.0.1 local.folder2.com ## URL to point localhost/folder2 towards </code></pre> <p>I then go to /xampp/apache/conf/extra/httpd-vhosts.conf and add the necessary Virtual Host. </p> <pre><code>NameVirtualHost *:80 &lt;VirtualHost *:80&gt; DirectoryRoot "C:/xampp/htdocs/folder2" ServerName local.folder2.com &lt;/VirtualHost&gt; </code></pre> <p>I restart Apache and MySQL. Problem is, now local.folder2.com works, but "localhost/wordpress/" does not. Using that URL directs me to the theme and db of folder2, baffling me entirely. Any ideas? I realize I can just work on one and not the other, but if I ever have more than one client at a time, switching it all out isn't going to work. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload