How to run a CGI server


I’m sorry - this is all new to me (Linux, programming, etc. I’m using Cloud9 for a class on Perl) - I follow the complete instructions (Running a Python CGI Server - have tried 5 times now), but when I attempt to click on the cgi-bin folder I get the following error message:

‘403 Forbidden: You don’t have permission to access /cgi-bin/ on this server.’

It doesn’t do this until I enable CGI mode (with ‘sudo a2enmod cgi’). I can access the folder fine when I run the Apache server up until that point. After hours of Googling, I still can’t figure out what to do. Any help would be much appreciated!