Bod
New Pleskian
- Server operating system version
- Debian 12
- Plesk version and microupdate number
- Version 18.0.59 Update #2
I'm new to Plesk, having only installed Obsidian Version 18.0.59 yesterday on a Debian 12 VPS. We are moving from shared hosting, which we have outgrown.
Many of our web pages are dynamically generated with Perl. This does not just run in the cgi-bin but sits in many directories as the default file. However, we are having great difficulty executing these scripts. I've set up a staging area where we will move each site to before copying it to the final location and then moving the DNS. The first site to move is purely static and is now up and running. But as soon as I try to run a Perl script on the next site, I run into trouble.
I've put a very simple Perl script at
Using SSH I have checked that the script works properly outside of a web server environment - it does
But...when I access it in a browser, I see the Perl code. So I've put the following in the site's Apache HTTPS handler
I think this automagically goes into the
But this causes a 500 Error.
I've checked
What else do I need to do to get Perl scripts to execute but still allowing HTML pages to display statically?
What should I check next?
Many of our web pages are dynamically generated with Perl. This does not just run in the cgi-bin but sits in many directories as the default file. However, we are having great difficulty executing these scripts. I've set up a staging area where we will move each site to before copying it to the final location and then moving the DNS. The first site to move is purely static and is now up and running. But as soon as I try to run a Perl script on the next site, I run into trouble.
I've put a very simple Perl script at
/var/www/vhosts/example.com/httpdocs/index.pl
Using SSH I have checked that the script works properly outside of a web server environment - it does
But...when I access it in a browser, I see the Perl code. So I've put the following in the site's Apache HTTPS handler
Code:
<Directory /var/www/vhosts/example.com/httpdocs>
<Files ~ (\.pl$)>
SetHandler cgi-script
Options ExecCGI
allow from all
</Files>
</Directory>
vhost_ssl.conf
file.But this causes a 500 Error.
I've checked
cgid
is on in 'Apache Web Server Settings'What else do I need to do to get Perl scripts to execute but still allowing HTML pages to display statically?
What should I check next?