I installed LAMP server on Ubuntu 13.04 using this tutorial word to word. It worked nicely. But I am hardly able to understand these steps :
$ sudo usermod -a -G www-data your_user
$ sudo chgrp -R www-data /var/www
$ sudo chmod -R g+w /var/www
$ sudo apt-get install php5-curl
$ sudo a2enmod rewrite
- What is this
usermod
? - Why it is used here?
- Why is the group changed?
- What is this
a2enmod
? - How secure is this installation?
- Is there anything else I have to do to make it more secure?
- If the original author has already taken care of security then how did he do it?
- Why did he change
AllowOverride None
toAllowOverride All
?