Posted by dsdart on July 31, 2010 at 12:56am
I'm using Drupal in xampp on my local windows machine as a test/learning area. I am currently learning php outside of drupal and would like to use the same installation of xampp to test it. I added the test (non-drupal) directory under the htdocs directory, but when I try to access it using http://localhost/mytestdir, it defaults to the drupal framework. I've searched the web, but can't find the secret. Can anybody tell me how I can use xampp without it defaulting to drupal?
thanks in advance,
Debby
Comments
should work
I created a mytestdir folder off the doc root, and created a file test.html in it.
I can access http://localhost/mytestdir/test.html
Is your url going to mytestdir, or to a specific page within it?
But better yet, try multihosting - I wrote a little article about it recently:
http://www.glatz.com/blog/building-local-drupal-development-environment-...
I use localhost just for the Xampp stuff. I would first create a new local domain name like local.drupal, add a virtual host for it in xampp, pointing it to a document root folder that you've installed your drupal site on. It should be somewhere other than your xampp folders.
Then create another local domain, call it something like phptest. That way you can keep your php stuff totally separate from the windows stuff, and avoid lots of confusion down the road.
Yeah, this seems like a lot of extra work, and may not be easy to get at first. But it is well worth it; when you set up a new external site like www.mysite.com, you can make a local version at local.mysite.com (on your computer).