Question

Should I use root to start my website?

  • Posted January 23, 2015

Hi,

I’m in the process of learning how to use VPS to host my website. I have created LAMP stack and phpmyadmin and have my code ready. Aside from that, I haven’t created any additional users or set any additional security checkpoints yet.

I just wonder, is it ok to start my website, by using this “root” to upload all the file to the “/var/www/” folder and keep moving on from this? Or should I create another user?

Thank you so much!

Subscribe
Share

This comment has been deleted


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

Your server works from www-data user (by default) and this user will not be able to access root’s files, so create new user (for example ‘myuser’) and add myuser to www-data usergroup. Anyway You shouldn’t use root access as default.