Solved

Apache / XAMPP  authorisation

Posted on 2016-10-26
10
68 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 83

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 83

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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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 83

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
 
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 83

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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

740 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