6
Tell me, usually anonymous users have access to modules?
If not, then you may have a corrupted sessions table.
If yes, then check if your mainfile.php has this lines:
define('XOOPS_GROUP_ADMIN', '1');
define('XOOPS_GROUP_USERS', '2');
define('XOOPS_GROUP_ANONYMOUS', '3');