Apache server commands

Enable an Apache site The site must exist on the folder “/etc/apache2/sites-available”. The command “/etc/init.d/apache2 reload” needs to be executed after adding a new site in order to update Apache server configuration. Disable an Apache site The command “/etc/init.d/apache2 reload” needs to be executed after removing a site in order to update the Apache server configuration. Reload config files Whenever …

Managing Users and groups in Linux

Managing Users Create new user The -d option can be used to set the home directory for the user. The -m option will force to create the home directory: Change user’s password Delete user View user’s account info Change ownership of folder/files recursively Managing Groups Create new group Add an existing User to an existing Group The -a param means …