Linux + apache2.52 + cgi (perl)

xiaoxiao2021-03-06  44

Press the cgi.pm-2.74.tar.gz reference website; http://web.niwote.com/bjbs_270/soft/cgi.pm-2.74.tar.gz1. Putting #adddhandler cgi-script .cgi # 去, and change to AddHandler CGI-Script .cgi .pl

2. Put #scriptalias / cgi-bin / "/ usr / local / apache2 / cgi-bin / change to scriptalias / cgi-bin /" / usr / local / www / cgi-bin / with] That is to say Add a folder that supports CGI 3. Add ALOWOVERRIDE All Options Execcgi Order Allow, Deny Allow from All 4. each user to build a CGI directory support AllowOverride all Options ExecCGI Order allow, deny Allow from all or Options Execcigi AddHandler CGI-Script .cgi .pl 5. Test example: Test.pl ----------------------- -------------------------------------------- #! / usr / bin / Perlprint "Content-Type: Text / HTML / N / N"; Print "Hello World !!"

转载请注明原文地址:https://www.9cbs.com/read-76388.html

New Post(0)