I've installed XAMPP (1.7.3), including MySQL and PHP - all that seems to work fine. I created the (empty) db for drupal - no problems.

I copied the contents of drupal-6.15 to xampp\htdocs\drupal; I checked the file permissions on that folder, and specifically for install.php; when I try to open http://localhost/drupal/install.php, I get the 403 access forbidden error. A simple test.php (hello world, basically) in that drupal sub-directory also fails in the same way; that same test.php one level up (i.e., in htdocs) works fine.

I can't find anything in httpd.conf or httpd-xampp.conf that seems obviously wrong - but I'm certainly no expert.

Any help will be greatly appreciated!

Thx - SM

Comments

qasimzee’s picture

Add a virtual host in xampp\apache\conf\extra\httpd-vhosts.conf like the one given below


DocumentRoot [YOUR DRUPAL DIRECTORY]
ServerName drupal6

Add a host in your 'hosts' file in 'C:\WINDOWS\system32\drivers\etc'

127.0.0.1 drupal6

Now check your browser with http://drupal6

I hope it will work

--
Qasim Zeeshan
http://qasimzeeshan.com

SleazyOtto’s picture

I had done that - I saw the instructions for virtual hosts, and set that up.

Except, of course, I had to fight Vista *and* my Panda AV to change that hosts file. Once I finally got that line in the hosts file, I couldn't get Apache to start again. So I had to fight Vista & Panda again to let me change the hosts file back to its original config - and then Apache started OK. sigh...

I can try that again, on the chance I had a typo - but I suspect there's something else going on.

Thanks!

-- SM

SleazyOtto’s picture

Tried the suggestions again, got past the issues with Vista "protecting" me from changing the hosts file. Still no luck.

If I change the name of the folder from
C:\xampp\htdocs\drupal
to
C:\xampp\htdocs\drupal2
then I can run a test.php script just fine; if the folder is named drupal, no such luck.

What setting(s) do I have wrong?

Thx... SM

dman’s picture

Well something is a bit odd - and very much to do with your very local setup.
But the only useful place to look is your Apache logs. that will tell you exactly which rule is forbidding you.

SleazyOtto’s picture

I can't interpret this, but here's the most recent attempts:
127.0.0.1 - - [27/Jan/2010:23:07:00 -0700] "GET /drupal/install.php HTTP/1.1" 403 1190 "http://drupal.org/node/307956" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
127.0.0.1 - - [27/Jan/2010:23:12:46 -0700] "GET /drupal/test.php HTTP/1.1" 403 1190 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
127.0.0.1 - - [27/Jan/2010:23:13:06 -0700] "GET /drupal_orig/test.php HTTP/1.1" 404 1202 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"
127.0.0.1 - - [27/Jan/2010:23:13:21 -0700] "GET /drupal_orig/test.php HTTP/1.1" 200 16 "-" "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)"

The 3rd one, I'd forgotten to copy test.php into drupal_orig, thus the 404 error; once I copied it there, it worked fine. The first two are the failures to run install.php and then test.php in the drupal folder.

I'm lost - but that's not so odd (heh).

SleazyOtto’s picture

I gave up; I downloaded XAMPP 1.7.1 and started over. Maybe 1.7.3 just won't work with drupal, like 1.7.2; maybe I did something right this time - but it's working now.