installing LAMP on Ubutnu server under root?

I just built a new Ubuntu 16.4 server and I want to install some software. The software is called MOODLE. It requires PHP, MySQL and Apache.

If I do the entire install under root am I in for trouble? If yes, what kind of trouble? Is it a file ownership trouble?
LVL 1
sqlagent007Asked:
Who is Participating?
 
gr8gonzoConsultantCommented:
Moodle is safe - don't worry about that.

Even if you install the LAMP pieces as root, they each run under different accounts by default.
0
 
arnoldCommented:
Please clarify your question.
Apt-get httpd php mysql|mariadb

Httpd/Apache runs under (nobody) Apache or httpd account, limited rights.
Php scripts inherit the rights based on the web server.
MySQL or mariadb will run under a limited user mysql....
0
 
Dr. KlahnPrincipal Software EngineerCommented:
If I do the entire install under root am I in for trouble?

You haven't really got a choice.  Only a superuser can install software, and it doesn't much matter if it's root or some other superuser; the dangers are pretty much the same.

I've never heard of this particular software before, though, so I would want a full image backup of the system before attempting this install.  Just in case.
1
 
sqlagent007Author Commented:
Thanks experts!!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.