Thanks for the response Yehuda Katz :)Also, to run python scripts we need to use the WSGI module. So how do we implement that with mod_fcgid?RegardsAnanyaOn Thu, Aug 9, 2018 at 6:50 PM, Yehuda Katz <yehuda@xxxxxxxxxx> wrote:The difference between FastCGI and regular CGI is that regular CGI runs the program directly and FastCGI is expected to run continuously and handle requests. If you want to use FastCGI in Perl, you might want to start with a library like PSGI or a framework like Catalyst.- YSent from a device with a very small keyboard and hyperactive autocorrect.On Thu, Aug 9, 2018, 8:10 AM Ananya Dey <ananyadey.95@xxxxxxxxx> wrote:Hi,I am trying to run a perl script using fcgid module.I have loaded mod_fcgid module.I have created a directory in apache called fcgi-bin and added the below snippet to my httpd.conf file.<Directory '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'>AddHandler fcgid-script .plAllowOverride AllOptions +Indexes +FollowSymLinks +ExecCGIRequire all granted</Directory>And have also added -ScriptAlias /fcgi-bin/ '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'My perl program is a simple hello world programme as follows-#!/usr/bin/perlprint("Content-Type: text/plain\n\n");print "Hello world";But the problem that I am facing is that the 'Hello World' output is getting printed in my Apache error logs and not in the browser as a perl script. Can someone please help me out with this?ThanksAnanyaOn Aug 9, 2018 8:10 AM, "Ananya Dey" <ananyadey.95@xxxxxxxxx> wrote:Hi,I am trying to run a perl script using fcgid module.I have loaded mod_fcgid module.I have created a directory in apache called fcgi-bin and added the below snippet to my httpd.conf file.<Directory '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'>AddHandler fcgid-script .plAllowOverride AllOptions +Indexes +FollowSymLinks +ExecCGIRequire all granted</Directory>And have also added -ScriptAlias /fcgi-bin/ '/home/ananya/apache-http-connector/apache-2.4.29/fcgi-bin/'My perl program is a simple hello world programme as follows-#!/usr/bin/perlprint("Content-Type: text/plain\n\n");print "Hello world";But the problem that I am facing is that the 'Hello World' output is getting printed in my Apache error logs and not in the browser as a perl script. Can someone please help me out with this?ThanksAnanya