change password of xampp server

Discussion in 'PHP' started by mahdi_fci3, Nov 9, 2010.

  1. #1
    Hi all,
    I am using xampp server in NETWORK, so I need to use a password to protect my server any help ???
     
    mahdi_fci3, Nov 9, 2010 IP
  2. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #2
    password protect database? or the apache???

    if apache, you need to integrate .password together with .htaccess
    if mysql, you need to grant access to user with password
     
    bartolay13, Nov 9, 2010 IP
  3. mahdi_fci3

    mahdi_fci3 Peon

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks bartolay13
    but I don't know how to integrate .password with .htaccess ?
     
    mahdi_fci3, Nov 10, 2010 IP
  4. bartolay13

    bartolay13 Active Member

    Messages:
    735
    Likes Received:
    14
    Best Answers:
    1
    Trophy Points:
    98
    #4
    reqouting again your question, using .password will only filter a domain, you can ALSO do this, search for http.conf in apache, look for the "Listen 80" where 80 is your http port.

    Listen 80
    <VirtualHost *>
    DocumentRoot /wamp/www/yourmaindirectory
    ServerName localhost
    </VirtualHost>


    about the apache .password
    http://httpd.apache.org/docs/2.2/misc/password_encryptions.html
     
    bartolay13, Nov 10, 2010 IP