Solved

Apache / XAMPP  authorisation

Posted on 2016-10-26
10
19 Views
Last Modified: 2016-11-18
Hi all, I haven't logged in to the admin area of my Apache/XAMPP development site on my PC for a while and as I've forgotten the userid and password it won't let me in!   There is a working authorisation on the production site but I don't need any auth for the version on my PC.

Is there a file in Apache I should be editing to sort this out?  

Cheers,

  Col
0
Comment
Question by:colinspurs
  • 6
  • 4
10 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41860743
I have never had to login to either of my XAMPP installations.  But you do have to be on that computer so you can use 'localhost' as the URL.  You can't do it remotely.
0
 
LVL 3

Author Comment

by:colinspurs
ID: 41860756
Hi Dave, it is on my PC.  I'm locked out of my own PC's localhost website admin section!  I get a 500 error...

From the log:

127.0.0.1 - - [26/Oct/2016:17:49:10 +0100] "GET /admin/menu2.php HTTP/1.1" 500 1076 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36"
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41860842
"/admin/menu2.php" is not part of XAMPP itself, it must be an application you have installed.  It's not Wordpress either.
0
 
LVL 3

Author Comment

by:colinspurs
ID: 41860860
I don't think I was clear with the question then.

It is a website application I have built myself.

For the production version I have put the admin folder under authorisation using the host company's web functionality.

For this development version I don't want any authorisation at all.  I am wondering where Apache is picking up the requirement for an ID and password - I have not programmed that in at all.  I am wondering if there is a setting in Apache on my PC where it is controlled.
0
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 41860991
No, you weren't clear.  A 500 error is not a login error but a 'server error' meaning that it was asked to do something that it didn't understand.  https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#5xx_Server_Error
1
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 
LVL 3

Author Comment

by:colinspurs
ID: 41861037
OK thanks.
0
 
LVL 3

Author Comment

by:colinspurs
ID: 41861434
Why am I being asked for id and password?  I have tried a Hello world html page as the index to the admin folder and I'm being asked for ID and password; when I cancel, I get a 401, Authorisation required, when I put in wrong info I get the 500 error.
0
 
LVL 82

Accepted Solution

by:
Dave Baldwin earned 500 total points
ID: 41861527
Do you have an '.htaccess' file in that directory that asks for authentication?  Does the form say Authentication Required?  Info on Authentication here:  https://httpd.apache.org/docs/2.2/howto/auth.html   You may be able to just remove that section from your .htaccess file.
1
 
LVL 3

Author Comment

by:colinspurs
ID: 41861906
That's it!  No idea why I put all that in for my own PC, but thanks.
0
 
LVL 3

Author Closing Comment

by:colinspurs
ID: 41893007
Sorry, I was sure I had closed this question weeks ago.

Good answer.  Thanks.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now