On Ubuntu systems in order to reload a virtualhost’s configuration in Apache, you have to run four commands:

Since web developers will have to perform this task quite often, there’s clearly a need for a faster way of handling this process. This bash script will allow issue one command to do the same as the above four commands.

Place the script into a file and make that file executable:

You could name the file whatever you want the subsequent command to be, in my case I chose to name the command “resite”. So now I can just run one command: