Running Shell Script from html webpage

I have a Nginx installed on Linux (Ubuntu or Centos) without any
scripting language such as PHP or Python (connected to the webserver).
Can I run Shell commands from a webpage (e.g. html)?

I mean is it possible to use nginx without script languages by shell

Posted at Nginx Forum:

Hello, well you can use a web anti-framework, that will enable you to
shell power. You can also use a RC templata to place the code into the
Here is a link to werc

I’am doing this with Debian Squeeze & fcgiwrap installed. I’ve seen
fcgiwrap present in Ubuntu.

Example script (Must be executable)


-- coding: utf-8 --

echo “Content-type:text/html\r\n”
echo “”
echo “$NAME”
echo ‘’
echo ‘’
echo ‘’
echo ‘’
echo “

echo “\nuname -a”
uname -a
echo “\ncpuinfo”
cat /proc/cpuinfo
echo “

Run it here

Also using this as an include file, not restricted to only shell

location ~ (.cgi|.py|.sh|.pl|.lua)$ {
gzip off;
root /var/www/$server_name;
autoindex on;
fastcgi_pass unix:/var/run/fcgiwrap.socket;
include /etc/nginx/fastcgi_params;
fastcgi_param DOCUMENT_ROOT /var/www/$server_name;
fastcgi_param SCRIPT_FILENAME /var/www/$server_name$fastcgi_script_name;