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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sqlagent007Author Commented:
Thanks experts!!!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.