From the course: Linux System Engineer: Web Servers and DNS Using Apache, NGINX, and BIND

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

About CGI scripts

About CGI scripts

- [Instructor] With web service we can execute scripts to create HTML content using the CGI, or common gateway interface. These scripts are often written in C, Python, Ruby, or Perl, but can be written in just about any other language. There are security concerns surrounding CGI scripts as you don't wanna use her to execute just any script. The Apache web server uses a ScriptAlias directive to determine where CGI scripts can reside. SELinux also limits whether Apache can run CGI scripts. And script directories need a special security context. Scripts run as the Apache user and can only access resources that the Apache user can access. CGI Scripts can be used to gather input from the user, query or update databases, email or even run system commands. So the possibilities are nearly endless.

Contents