Book: Drupal 7 Module Development (directions caused weirdness)
You just have to follow the steps which I am writing below to create a module.


Go to folder SITES/ALL/MODULES
Create a folder for module, suppose mymodule
Inside that folder create a file name mymodule.info
Write these lines in there:

name = My Custom Module

core = 7.x

description = Custom module created for testing.
Create another file named mymodule.module
Just open the PHP tag like &lt;?php and save the created .module file
Visit your module list &amp; you will find this module in the list over there. If not then clear the cache for once.


Problem with your process which I saw is with the path which you followed for creating the folder for your module which SITES/DEFAULT/MODULES, which is not correct.