Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I had a production server which used to authenticate user before granting access. I setup a new machine and copied files from the old server. Now, I can access pages fine, but it does not ask for username and password. When I checked the value of $_SERVER['PHP_AUTH_USER'] is returns nothing.

Is a way to activate it on the server or I missed any file while copying it from old server ?

share|improve this question
    
Did you make sure to copy hidden files as well? –  John Gardeniers May 2 '12 at 21:41
add comment

1 Answer

So, where is the list of user names and passwords? is it a flat file, in a database? you can't implement something you cant find.

share|improve this answer
    
The list of username and password are stored in DB. –  vinny May 2 '12 at 20:42
    
I noticed this is tagged .htaccess have you enabled mod_auth_mysql? (modauthmysql.sourceforge.net) What does your .htaccess file look like? –  foocorpluser May 2 '12 at 20:53
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.