" echo "The current date and time : ${now}
" echo '' echo ''
Set execution rights on /usr/lib/cgi-bin/hello.cgi with chmod and chown:
$ sudo chmod +x -v /usr/lib/cgi-bin/hello.cgi mode of '/usr/lib/cgi-bin/hello.cgi' changed from 0644 (rw-r--r--) to 0755 (rwxr-xr-x)
Check by opening the web browser and entering the url:
https://your-domain-here/cgi-bin/hello.cgi ## For instance ## https://www.cyberciti.biz/cgi-bin/hello.cgi
You can write CGI applications or scripts in any programming language. CGI for applications / scripts can appear simple and easy, but to write those applications is not simple.