Win 7 - no access to htdocs subdirectories

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Win 7 - no access to htdocs subdirectories

Postby thom_s » 09. January 2013 21:34

I've installed XAMPP Portable 1.8.1 on H:/xampp
It works all right - in htdocs - but not in sub directories.
I can install a Virtual host, and it works - but not in sub directories.

I am asked to give user and password. How do I change it? I want to get direct access to all directories

I've seen some different lines in the log, such as:
127.0.0.1 - - [09/Jan/2013:20:59:57 +0100] "GET /lx/ HTTP/1.1" 401 1362 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"
(also 401 1371)
or
127.0.0.1 - - [09/Jan/2013:21:21:33 +0100] "GET /lx/ HTTP/1.1" 500 1135 "-" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0"

Anyone have a clue to help me get this working.
Win 7 Enterprise 64 bit
thom_s
 
Posts: 5
Joined: 09. January 2013 21:01
Operating System: Windows 7, 64--bit

Re: Win 7 - no access to htdocs subdirectories

Postby hackattack142 » 10. January 2013 04:05

is there a .htaccess file in there?

Are you trying to create arbitrary directories and putting test files in it, trying to copy in other entire websites, or trying to access the existing subdirectories?

HTTP 401 = Unauthorized
HTTP 500 = Internal Server Error
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Win 7 - no access to htdocs subdirectories

Postby thom_s » 10. January 2013 10:29

I'm creating new subdirectories, both copying a file to it, and creating a file straight into it. Nothing works. Both php- and html-files works fine at the top level (htdocs) but not in a subdirectory.

No .htaccess files

Starting the shell form control panel (3.1.0.3.1.0) tell me file permissions are
Code: Select all
rw-rw-rw-
(but it's Windows files and directories, so...?)

Today - at work - I've installed the same version of xampp on two computers, laptop and desktop. Both with the same Windows version as my home machine. The difference: they don't have 64 bit operating system. No problem what so ever here. Works very fine with sub directories!

To me it seems that my 64-bit machine /Windows is the problem. I don't know of any other difference in configuration.

Any idea???
thom_s
 
Posts: 5
Joined: 09. January 2013 21:01
Operating System: Windows 7, 64--bit

Re: Win 7 - no access to htdocs subdirectories

Postby hackattack142 » 11. January 2013 01:37

I am not exactly sure with this one. I primarily use XAMPP on Win 7 64-bit Ultimate and have used it on multiple Win 7 64-bit enterprise so I don't think that by itself is the issue.

This is a clean install (no changes to any configs)?
Do you get any startup warnings/errors (red text) anywhere in the XAMPP Control Panel log when you start it?
Did you use the portable version on all of them you tested?
Do you really need the portable version?
Have you tried a sanity check to see if a different version would work (installer or zipped)?
Can you even access the default XAMPP directories (http://localhost should redirect to http://localhost/xampp by default unless you changed things)?
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Win 7 - no access to htdocs subdirectories

Postby thom_s » 11. January 2013 16:54

First, a correction: I use Win 7 Home Premium SP1 (Forgot that it was pre-installed on my new computer, I've used Enterprise before).

This is a clean install (no changes to any configs)?

Yes, a clean install, nothing done.

Do you get any startup warnings/errors (red text) anywhere in the XAMPP Control Panel log when you start it?

Just this:
Code: Select all
15:37:36  [main]    Initializing Control Panel
15:37:36  [main]    Windows Version: Windows 7 Home Premium SP1 64-bit
15:37:36  [main]    XAMPP Version: 1.8.1
15:37:36  [main]    Control Panel Version: 3.1.0 Beta 6 [ Compiled: September 20th 2012 ]
15:37:36  [main]    Running with Administrator rights - good!
15:37:36  [main]    XAMPP Installation Directory: "h:\xampp\"
15:37:36  [main]    Checking for prerequisites
15:37:36  [main]    All prerequisites found
15:37:36  [main]    Initializing Modules
15:37:36  [main]    Starting Check-Timer
15:37:36  [main]    Control Panel Ready
15:38:39  [Apache]    Attempting to start Apache app...
15:38:39  [Apache]    Status change detected: running


Did you use the portable version on all of them you tested?
Do you really need the portable version?
Have you tried a sanity check to see if a different version would work (installer or zipped)?

This time I tried the zip "large" version - and the behaviour is the same.
I simply need nothing else than php, mysql, and I'd rather not install one more program on Windows...

Can you even access the default XAMPP directories (http://localhost should redirect to http://localhost/xampp by default unless you changed things)?

Yes, I can open localhost. It redirects me to /xampp. I can open a test .php- and .html-file in the root (htdocs) - no problem.
But - when I try in a subdomain the dialog box says "Server says: Restricted area" - translated from Swedish).

You can see it in action here: http://kurs-resurs.se/demo/strul/xampp.html ##--deleted as the problem was solved--##
Last edited by thom_s on 11. January 2013 22:02, edited 1 time in total.
thom_s
 
Posts: 5
Joined: 09. January 2013 21:01
Operating System: Windows 7, 64--bit

Re: Win 7 - no access to htdocs subdirectories

Postby thom_s » 11. January 2013 16:59

I just installed wampserver. Strange - it's the exact same behaviour there! No access to subdiretories, but it works fine in root.

It must be some configuration on my computer... But WHAT?
I have no idea?
thom_s
 
Posts: 5
Joined: 09. January 2013 21:01
Operating System: Windows 7, 64--bit

Re: Win 7 - no access to htdocs subdirectories

Postby Altrea » 11. January 2013 18:15

Hi thom_s,

In your \htdocs\lx\ folder i can see a .htaccess file.
It is very common that this file contents code that restricts access to that folder.
You can simply test this by renaming the file.

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Win 7 - no access to htdocs subdirectories

Postby thom_s » 11. January 2013 21:57

I can't believe it!

My father always said: "The first part of you that will be blind is the eyes".

.htaccess sure is a "hidden file". It was (mentally and physically) hidden for me

Sorry to disturb you with what was only a sight problems on my own computer screen...

Thanks for being my eyes!!!
thom_s
 
Posts: 5
Joined: 09. January 2013 21:01
Operating System: Windows 7, 64--bit

Re: Win 7 - no access to htdocs subdirectories

Postby Altrea » 11. January 2013 22:35

No problem. I'm glad your problem could be solved :D
Have fun with XAMPP (of course) 8)
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 103 guests