Install SpeedyCGI that makes CGI fast.(apache)
[1] Install
[root@www ~]# yum -y install perl-CGI-SpeedyCGI
[root@www ~]# ln -s /usr/bin/speedy /usr/local/bin/speedy
[root@www ~]#
[2] How to write a CGI scripts. Change PATH like follows. Reffer other options here.
[root@www ~]# vi /var/www/html/index.cgi
#!/usr/local/bin/speedy -- -t300 -M1
print "Content-type: text/html\n\n";
print <<"EOM";
CGI Test Page
EOM
exit;
阅读(1160) | 评论(0) | 转发(0) |