• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved How to get Perl running with OS alma8

Dork

Regular Pleskian
Server operating system version
Almalinux 8
Plesk version and microupdate number
18.0.60
I installed perl and it is not possible to run per scripts.
Can someone please help me?
 
Can you provide more details on what doesn't work for you? And it would also be helpful to know what you've already tried.
 
I installed perl via yum, fcgi from the domain dashboard/hosting is activated,
Options +ExecCGI
AddHandler cgi-script .cgi .pl
is addet to the Apache direcctives
I checked the permissions of the script files
and I get:

Internal Server Error​

End of script output before headers
 
Problem solved - but I can't find a resolved Button
That's limited to moderators. I'll set it to resolved for you.

Good to read you've been able to resolve the issue. Care to share what you've done to solve it?
 
Good to read you've been able to resolve the issue. Care to share what you've done to solve it?
With my scripts I used a BEGIN block:
BEGIN {
$0 =~ m~(.*)/[^/]+~ || $0 =~ m~(.*)\\[^\\]+~;
$1 ? (unshift @INC, $1) : (@INC = reverse @INC);
}
An user of the perl-community.de told me that the perl version which is shipped with alma8, doesn't deliver $0 and so the code of the block can't work.
I replaced the code with use lib "." and everything works fine now.
 
Back
Top