How to run cgi script on apache server

后端 未结 3 793
遥遥无期
遥遥无期 2020-12-11 08:40

This is my program:

[root@localhost cgi-bin]# locate first.pl 
/home/Ram/Desktop/work/first.pl
/usr/local/apache2/cgi-bin/first.pl
[root@localhost cgi-bin]#          


        
3条回答
  •  醉梦人生
    2020-12-11 09:22

    Yes, the above process works but the easy way is:

    1. Enable the CGI- sudo a2enmod cgi
    2. Restart the Apache and it works -service apache2 restart
    3. Run the cgi file http://localhost/cgi-bin/1.sh

    Best Of Luck !!

提交回复
热议问题