Vmail.cgi problem

I hv this problem with vmail.cgi. I tried disabling SELinux and chmod +x vmail.cgi. What other configurations should I need to do? I think it’s a problem with permission and apache. Thanks

does the user that runs apache have execute permissions on the cgi file ? does the directory the file is in have the apache config to allow execution ?

The file vmail.cgi is in the folder /var/ww/cgi-bin. I think I’ve tried all the permission. Are there any futher configurations?
chown root:apache /var/www/cgi-bin
chmod 775 /var/www/cgi-bin

Are there anything else I should be doing to get vmail.cgi to work?

check your httpd config to make sure that directory has scripting permissions, and look in the log file that apache maintains.