I installed CWP in Centos 7 using minimal install option in VM with 2core and 4GB RAM.
After installation, I enabled the mod_cgid.so in Apache module.
Default it is not enabled.
And I have installed Perl and Perl-CGI in the OS.
I also added this to my /usr/local/apache/conf/httpd.conf
<Directory "/home/*/public_html/">
AllowOverride All
Options +ExecCGI
AddHandler cgi-script .cgi .pl
</Directory>
When I try to execute .cgi, it will show 500 error.
Log said is [cgid:error] End of script output before headers.
It seems the permission issue. but the file is also 755 in permission.
I run in terminal is without any error.
Please advise how I can fix this issue.