First do basic Apache Configuration Then execute the following steps : 1. Create a cgi file using gedit and save it with .pl extension eg. cgiscript.pl save in the folder of cgi-bin eg. /var/www/cgi-bin/ 2. On Terminal make it executabe using follwing command [root@server ~]# cd var [root@server var]# cd www [root@server www]# cd cgi-bin [root@server cgi-bin]# chmod 755 cgiscript.pl 3.In mozilla http:/cgi-bin/cgiscript.pl