Before we can use the module, we will need to register the extension into the database, we will let the joomla installer do this for us.
Create a .zip file of the mod_foo folder
This is the zip file
Log into the joomla administrator section of the website and go to "Extension" menu and click "Extension Manager"
Upload the mod_foo.zip file and click Upload and Install
The module now has been registered in the database