Cant run .cgi and .pl files


I have installed CyberPanel on a new Ubuntu 20.04, whenever I try to run a .cgi or .pl file (inside cgi-bin or outside it) the browser downloads the file instead of executing it!

Any help on this would be appreciated.

Hello @msamavi

This is very simple. Check this tutorial Guide to OpenLiteSpeed’s CGI Setup – OpenLiteSpeed

Hi @josephgodwinke

Thanks for the prompt reply.
I now get the following error page after a long delay when trying to visit /chi-bin/test.cgi


Service Unavailable

The server is temporarily busy, try again later!

Any advise please?

503 Service Unavailable error is a server-side error. Run the following command:

$ systemctl restart lsws && systemctl restart lscpd

If this doesnt help enable detailed dynamic logging

$ touch /usr/local/CyberCP/debug && reboot
## visit /chi-bin/test.cgi
$ nano /home/cyberpanel/error-logs.txt
## post the contents here

Also do this with extreme caution but helps rule out CyberPanel issues

$ nano /usr/local/CyberCP/CyberCP/

find DEBUG = False and change it to DEBUG = True and then do systemctl restart lscpd

Visit the /chi-bin/test.cgi and post a screenshot of the outcome. Afterwards change DEBUG = False