Are you accessing the script through the webserver eg: ( http://localhost/~yourhome/cgi-bin/script.cgi)? The webserver isn't doing anything if you're just opening the file in the browser directly.
Also the httpd.conf information I gave you in the other thread was an example. I apologize for not being clearer but you'll need to read the docs so you'll know how all the configuration values you need for your specific setup. For instance if you're installing Apache in your home directory you'll likely not have permission to run it on the default port and you'll have to use a different one.
And FYI, in the future you should add to the existing thread instead of starting a new one