Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Hosting Subscription / Supported Technology / Can I run my own CGI scripts?

Can I run my own CGI scripts?

Summarize this article with:
Last update: Aug 19, 2021

To run CGI scripts, create a file named .htaccess in the scripts’ directory and place this line inside:

AddHandler cgi-script .pl .py .htm .shtml .sh .cgi

If you already have a .htaccess file, add the corresponding lines by editing the file through Site Tools > Site > File Manager or using an external text editor locally on your computer.

After that access the script from your browser to run it.

Share this article

Found this article useful?

Add SiteGround to your preferred Google sources