Results 1 to 7 of 7

Thread: LAMP question:

  1. #1
    Join Date
    Dec 2007
    Location
    Tempe, AZ, USA
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    LAMP question:

    (Sorry in advance, but I don't know to which forum to take this question.)

    Right now, I am attempting to learn more about setting up LAMP systems. I am currently reading Sams' Teach yourself PHP, MySQL, and Apache. The book mentions that MySQL shouldn't be run as root (which I understand is a security 'no-no'), but I am confused: why do I need to direct the ISP to stop running MySQL as root - how do they (the ISP) figure into me running the program as root?

    Did I overlook something?

  2. #2
    Join Date
    May 2007
    Location
    The New Forest
    Beans
    Hidden!
    Distro
    Xubuntu

    Re: LAMP question:

    Thread moved to Server Platforms.

  3. #3
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: LAMP question:

    The short version is that MySQL does not need to be root since its default listening port is 3306. Above 1024, ports do not need root level access for listening. So following the principle of least privilege, it gets another user and should be anything other than root. Though it could have been any user already in use, following the idea of privilege separation it gets its own user, 'mysql' on Ubuntu.

  4. #4
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,741

    Re: LAMP question:

    out of the box LAMP works fine, no need for any special privileges

    the MySQL backup tool does need elevation only because it makes a full copy of the MySQL server

  5. #5
    Join Date
    Dec 2007
    Location
    Tempe, AZ, USA
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: LAMP question:

    I forgot to have mentioned: this is off of my own home server (as opposed to a remotely assigned server).

  6. #6
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    3,521
    Distro
    Ubuntu Development Release

    Re: LAMP question:

    Quote Originally Posted by Priest Apostate View Post
    I forgot to have mentioned: this is off of my own home server (as opposed to a remotely assigned server).
    O.K.
    Quote Originally Posted by Priest Apostate View Post
    but I am confused: why do I need to direct the ISP to stop running MySQL as root
    You don't.
    Quote Originally Posted by Priest Apostate View Post
    - how do they (the ISP) figure into me running the program as root?
    They don't.
    Any follow-up information on your issue would be appreciated. Please have the courtesy to report back.

  7. #7
    Join Date
    Dec 2007
    Location
    Tempe, AZ, USA
    Beans
    42
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: LAMP question:

    Gotcha - thanks!

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •