Solved

Apache / XAMPP  authorisation

Posted on 2016-10-26
10
45 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 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
 
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Google Crawl Errors Producing 404 Errors 4 80
XAMPP 3 54
Clearing cache in word press. 3 49
NGINX/Apache redirect on 403 and 404 5 72
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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

21 Experts available now in Live!

Get 1:1 Help Now