Apache noob question

Discussion in 'Apache' started by bbrian017, Nov 10, 2008.

  1. #1
    I have created apache but to install many websites I need to always use the root username and password!

    Can I make it so each website is it's own root so if any one website gets hacked there not all at risk?

    so in general I would like to have a username password with each website database!
     
    bbrian017, Nov 10, 2008 IP
  2. Rashy

    Rashy Peon

    Messages:
    20
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are saying that you want a username n password for each DB... then yes it is possible just in case you are using cPanel goto MySQL Databases there you can create separate usernames and passwords for different databases... or in case you are not having cPanel goto phpMyAdmin, click the privileges button then create a username n password having different right n access to different databases... Hope this helps!
     
    Rashy, Nov 10, 2008 IP
    bbrian017 likes this.
  3. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170
    #3
    Thanks Rashy I took a closer look and after your explanation I got it and have now added a username and password to each separate database!

    Thanks so much
     
    bbrian017, Nov 11, 2008 IP
  4. vovaNux

    vovaNux Peon

    Messages:
    47
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Are you using any web hosting panel or it's just your local server?
     
    vovaNux, Nov 12, 2008 IP
  5. snortly

    snortly Peon

    Messages:
    28
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    as root do an 'adduser' command. This will create a user and password for each.
    In /etc/passwd you can then specify the users home directory.

    If you however want to limit SSH access you could setup an FTP server and grant each FTP user access to a specific site only.
     
    snortly, Nov 12, 2008 IP
  6. bbrian017

    bbrian017 Well-Known Member

    Messages:
    2,990
    Likes Received:
    66
    Best Answers:
    0
    Trophy Points:
    170