This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

Introducing Cloudways Community Forum. Start Discussions and Get Instant Help From Cloudways Community. JOIN NOW

Enable CGI Scripts Execution on Your Cloudways ServerJune 13, 2017

 

In this KB

  • What are CGI scripts
  • How to allow CGI script execution on Cloudways

 

Common Gateway Interface (CGI) is a standard way for web servers to interface with executable programs. If your application makes use of it, then you can enable CGI script execution completing the following steps. 

Step 1: Launch SSH terminal from Your Cloudways Console

SSH Terminal is available in the Master Credentials section under the Server Management area.

Launch ssh terminal

Step 2: Edit Your .htaccess File

Now edit your .htaccess file as shown in the figure below.

  1. Use vim .htaccess command
  2. Now press i to start editing. Copy and paste the following code in your .htaccess file.

Options +ExecCGI

AddHandler cgi-script .cgi .pl

To save the changes, press Esc then :wq and then press Enter. It is now complete, and you can test your script.

Before executing the script, ensure that it has execution privileges. If you have not provided it yet, then use the code mentioned below.

chmod 775 scriptname

.htaccess file

 

Please insert Content
Have Questions? Ask From Our Helpful Community

Comments are closed.

Do you still need help?

Our Technical Support team is always at work.