Fedora 14
Sponsored Link

Install SpeedyCGI2010/11/06

[1] Install SpeedyCGI that makes CGI fast.
[root@www03 ~]#
yum -y install perl-CGI-SpeedyCGI


# create a link

[root@www03 ~]#
ln -s /usr/bin/speedy /usr/local/bin/speedy
[2] How to write a CGI scripts. Change PATH like follows. Reffer other options on SpeedyCGI site.
[root@www03 ~]#
vi /var/www/html/speedy.cgi


#!/usr/local/bin/speedy -- -t300 -M1

print "Content-type: text/html\n\n";
print <<"EOM";
<html>
<body>
<div style="width: 100%; font-size: 40px; font-weight: bold; text-align:center;">
SpeedyCGI Test Page
</div>
</body>
</html>
EOM
exit;


[root@www03 ~]#
chmod 705 /var/www/html/speedy.cgi
Matched Content