Solved

Apache / XAMPP  authorisation

Posted on 2016-10-26
10
84 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
The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

 
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

Technology Partners: 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!

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

717 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