How to enable ExecCGI through the .htaccess file?

In this article, we will learn to enable ExecCGI through the .htaccess file in cpanel.

What is ExecCGI?

The CGI (Common Gateway Interface) defines a way for a web server to interact with external content-generating programs, which are often called CGI programs or CGI scripts. It is a simple way to put dynamic content on your website, using whatever programming language you’re most familiar with.

How to enable ExecCGI via the .htaccess?

You can enable ExecCGI by adding the below line to the file .htaccess:

Options +ExecCGI

Note: .htaccess file will be in your public_html folder. By default, this file is hidden.

Follow the below steps to go to the .htaccess file in the cPanel.

  1. Login into your cPanel account.
  2. Under the Files section, click on File Manager.
    cPanel file manager
  3. Click Settings and Check the ‘Show Hidden Files (dotfiles)’ box and click on Save.
    show hidden files cpanel

Now you should be able to view .htaccess hidden file in the file manager.

If you enjoyed this tutorial, then you would love our support! All Kemuhost hosting plans include 24/7 support from our amazing support team. Check out our web hosting plans and have your website migrated for free today!

Add a Comment

Your email address will not be published. Required fields are marked *