[solved] plugin cpanel from 11.36 error 500 during install

DoM

Well-Known Member
#1
Hello.
From 11.36 cPanel does not provide perl anymore.

You need to adjust your perl path to /usr/bin/perl inside:

/usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi

instead of /usr/local/bin/perl for new installation on fresh CentOS.


Best regards
 
Last edited by a moderator:

DraCoola

Well-Known Member
#5
some of my servers got the same error 500, but some are fine.
to fix that perl error just reinstall all perl modules via the command line by running this command :

Code:
/scripts/perlinstaller Task::Cpanel::Core
i already did that and now feel very happy :)
 
#6
some of my servers got the same error 500, but some are fine.
to fix that perl error just reinstall all perl modules via the command line by running this command :

Code:
/scripts/perlinstaller Task::Cpanel::Core
i already did that and now feel very happy :)

root@xxx [~]# /scripts/perlinstaller Task::Cpanel::Core
-bash: /scripts/perlinstaller: /usr/bin/perl: bad interpreter: No such file or directory

how? :rolleyes:
 

DraCoola

Well-Known Member
#7
seems like you don't have /usr/bin/perl at all?
perhaps you could try just one from both above answers:

1. edit /usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi to point to Cpanel perl

replace :
Code:
#!/usr/bin/perl
with :
Code:
#!/usr/local/cpanel/3rdparty/bin/perl
Or.....

2. create perl symlink

Code:
ln -s /usr/local/cpanel/3rdparty/bin/perl /usr/bin/perl
 

NiteWave

Administrator
#11
update: a user still experience 500 error after following above instruction.

when run addon_lsws.cgi directly on command line:
#/usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi
-bash: /usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi: /usr/local/cpanel/3rdparty/bin/perl^M: bad interpreter: No such file or directory

so the addon_lsws.cgi is in MS-DOS text format!

after run
#dos2unix /usr/local/cpanel/whostmgr/docroot/cgi/addon_lsws.cgi

500 error finally gone and WHM lsws plugin installed with success
 
Top