Complete New Server Cannot Run EasyApache

Doctor

Well-Known Member
Apr 26, 2003
180
0
166
I have just installed cPanel on a new server.

WHM 11.15.0 cPanel 11.18.0-R20595
CENTOS Enterprise 4.5 i686 on virtuozzo - WHM X v3.1.0

I logged in to WHM for the first time and completed all the mandatory initial setup. With those done, I immediately clicked 'Apache Update' but I get this error below:

Code:
-----------------------------------------------
Internal Server Error

      Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
      
cpsrvd/11.17.1 Server
-----------------------------------------------

Then, I logged in to SSH and type /scripts/easyapache and I get this error:

# /scripts/easyapache
Can't locate YAML/Syck.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
Compilation failed in require at (eval 13) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
 at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16.
Compilation failed in require at (eval 1) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
Compilation failed in require at /scripts/easyapache line 15.
-----------------------------------------------------
I have never experienced this error before with my previous servers. How do I fix this? Kindly include step-by-step instructions in your reply. Thank you in advance.
 
Last edited by a moderator:

owine

Active Member
Jan 10, 2007
44
0
231
Try running /scripts/checkperlmodules which will make sure you have the required Perl modules for cPanel and then running EasyApache again.
 

Doctor

Well-Known Member
Apr 26, 2003
180
0
166
I ran /scripts/checkperlmodules, as well as /scripts/checkperlmodules --full, but the same errors still come up when I try to run EasyApache. Thanks anyway, Owine!

The point is, this should not have been a problem in the first place. Is there any cPanel support tech reading this? Any help would be appreciated.
 

Infopro

Well-Known Member
May 20, 2003
17,076
523
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
I ran /scripts/checkperlmodules, as well as /scripts/checkperlmodules --full, but the same errors still come up when I try to run EasyApache. Thanks anyway, Owine!

The point is, this should not have been a problem in the first place. Is there any cPanel support tech reading this? Any help would be appreciated.
This is not the official means of support. If you're looking for cPanels help you need to put in a ticket.


Meantime, you could try this post to sort of all or most of that problem.

http://forums.cpanel.net/showthread.php?t=66166
 

lanmonkey

Member
Jun 7, 2007
12
0
151
I have just installed cPanel on a new server.

WHM 11.15.0 cPanel 11.18.0-R20595
CENTOS Enterprise 4.5 i686 on virtuozzo - WHM X v3.1.0

I logged in to WHM for the first time and completed all the mandatory initial setup. With those done, I immediately clicked 'Apache Update' but I get this error below:

Code:
-----------------------------------------------
Internal Server Error

      Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
      
cpsrvd/11.17.1 Server
-----------------------------------------------

Then, I logged in to SSH and type /scripts/easyapache and I get this error:

# /scripts/easyapache
Can't locate YAML/Syck.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DataStore.pm line 11.
Compilation failed in require at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 14.
Compilation failed in require at (eval 13) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
 at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16.
Compilation failed in require at (eval 1) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
Compilation failed in require at /scripts/easyapache line 15.
-----------------------------------------------------
I have never experienced this error before with my previous servers. How do I fix this? Kindly include step-by-step instructions in your reply. Thank you in advance.
I am getting EXACLTY the same.

Got my new server online today, tried to update apache... get the same as you.

I;m also getting the same when I click "cPHulk Brute Force Protection" in security center.

I could have really done without this, Anyone got any ideas whats causing this?

BTW I;m using:

WHM 11.15.0 cPanel 11.18.1-R20683
CENTOS Enterprise 5 i686 on standard - WHM X v3.1.0
 
Last edited:

internethosting

Well-Known Member
Aug 18, 2003
68
0
156
Same Here . . .

Internal Server Error

Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.

The server is just an hour old, so here is my entire error_log file.

Tried all the commands talked about above. :-/


Code:
Can't locate File/Copy/Recursive.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /scripts /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /var/cpanel/perl/easy/Cpanel/Easy/Utils/HttpdConf.pm line 15.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Utils/HttpdConf.pm line 15.
Compilation failed in require at (eval 36) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
 at (eval 34) line 3
 at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 16.
Compilation failed in require at (eval 12) line 3.
        ...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl line 47.
Internal Error: "GET /cgi/easyapache.pl?skip-cpanelsync=1 HTTP/1.1" Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check /usr/local/cpanel/logs/error_log for the exact error.
 
Last edited by a moderator:

its_joe

Well-Known Member
Feb 15, 2007
134
0
166
How did you fixed the issue, please give us the steps that need to follows to fix the issue.

its_joe
 

kostyukdv

Member
Jul 21, 2006
8
0
151
same errors at the new server after install centos 4.7 x86_64 cPanel 11.24.4-S33345 - WHM 11.24.2 - X 3.9

Code:
# /scripts/easyapache 
Can't locate URI.pm in @INC (@INC contains: /scripts /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at (eval 5) line 3.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/HTTP/Request.pm line 3.
Compilation failed in require at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 10.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/5.8.8/LWP/UserAgent.pm line 10.
Compilation failed in require at /scripts/cPScript/CPAN/Digest/MD5/File.pm line 8.
BEGIN failed--compilation aborted at /scripts/cPScript/CPAN/Digest/MD5/File.pm line 8.
Compilation failed in require at /scripts/cpanel_easy_sanity_check line 15.
BEGIN failed--compilation aborted at /scripts/cpanel_easy_sanity_check line 15.
Can't locate Cpanel/Easy/Apache.pm in @INC (@INC contains: /usr/local/cpanel /var/cpanel/perl/easy /usr/lib/perl5/5.8.8/x86_64-linux /usr/lib/perl5/5.8.8 /usr/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl .) at /scripts/easyapache line 23.
 

Arun

Active Member
Jan 28, 2006
29
1
153
We had a similar error when installing Fantastico in a new server yesterday. It showed a Perl module issue (Can't locate Template.pm) in the error logs. The perl version was 5.8.9 and we had to downgrade to 5.8.8 to resolve the issue. Is there some compatibility issue with current version of cPanel and Perl v 5.8.9?
 

WhmSonic

Well-Known Member
Mar 19, 2007
46
0
156
Perl v5.8.5 issues YAML/Syck.pm
Please upgrade your perl version, it should be v5.8.8 see the step one below.

Perl 5.8.9 issues YAML/Syck.pm
Downgrade your perl version to v5.8.8 or follow the steps.

Step 1)
cd /root
wget http://layer1.cpanel.net/perl588installer.tar.gz
tar -zxf perl588installer.tar.gz
cd perl588installer
./install

Step 2)
rm -fr /usr/local/lib/perl5/site_perl/5.8.9/i686*

cp -fr /usr/lib/perl5/site_perl/5.8.8/i686* /usr/local/lib/perl5/site_perl/5.8.9/
 
Last edited:

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
Code:
Can't locate Whatever/Module.pm in @INC
99.9% of the time all you have to do is install the missing module:

Code:
cpan Whatever::Module
moving modules by deleting one version and copying them over to another is a very very very bad idea. Any compiled code is likely to break unless the 2 version's are identically compiled, and even that is no gaurantee

To safely and properly upgrade perl:
  1. take a manifest of modules installed (perldoc ExtUtils::Installed)
  2. update perl
  3. re-install all the modules in your manifest
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
I found on CPAN site, thats it is one more YAML::Syck :
It is JSON::Syck
JSON::Syck and YAML::Syck are not the same thing (YAML and JSON are 2 different data structure representations)

If the error you are getting is

Can't find YAML/Syck.pm
then you need YAML::Syck

All you need to do to install it is:

Code:
/scripts/perlinstaller YAML::Syck
or even

Code:
cpan YAML::Syck
 

ovisopa

Member
Apr 12, 2007
18
0
151
I updated my cpanel a week ago, the process has run smothly on both of my servers, and now I have tried to see something in the easyApache Update page and I'm getting the same error.

My cpanel version is cPanel 11.24.4

The exact error is:

Internal Server Error
Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check / usr / local / cpanel / logs / error_log for the exact error.

I checked the log and got this error :

Compilation failed in require at (eval 30) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
at (eval 28) line 3
at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15.
Compilation failed in require at (eval 18) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl line 67.
Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check <b> /&nbsp; usr /&nbsp; local /&nbsp; cpanel /&nbsp;$

Any sugestions on how to fix the problem ? I checked both servers and I can see the same error AFTER UPGRADING TO 11.24

Thank you.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
13
313
Houston, TX
cPanel Access Level
Root Administrator
I updated my cpanel a week ago, the process has run smothly on both of my servers, and now I have tried to see something in the easyApache Update page and I'm getting the same error.

My cpanel version is cPanel 11.24.4

The exact error is:

Internal Server Error
Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check / usr / local / cpanel / logs / error_log for the exact error.

I checked the log and got this error :

Compilation failed in require at (eval 30) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
at (eval 28) line 3
at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15.
Compilation failed in require at (eval 18) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
BEGIN failed--compilation aborted at /var/cpanel/perl/easy/Cpanel/Easy/Apache.pm line 8.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl line 67.
Premature end of script headers: /usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl: Please check <b> /&nbsp; usr /&nbsp; local /&nbsp; cpanel /&nbsp;$

Any sugestions on how to fix the problem ? I checked both servers and I can see the same error AFTER UPGRADING TO 11.24

Thank you.
I recommend you let our technical analysts take a look at this for you. They will be able to determine what is causing this and resolve the isssue so you can once again use EasyApache. You can contact our technical analysts at: http://tickets.cPanel.net/submit
 

cPDan

cPanel Staff
Staff member
Mar 9, 2004
724
15
243
I checked the log and got this error :

Compilation failed in require at (eval 30) line 3.
...propagated at /usr/lib/perl5/5.8.8/base.pm line 85.
at (eval 28) line 3
at /var/cpanel/perl/easy/Cpanel/Easy.pm line 15
The part trimmed off with '...' is probably the pertinent bit :)

From what is there I'm assuming the problem can be had by running

perl -I/usr/local/cpanel -I/var/cpanel/perl/easy -e 'use Cpanel::CPAN::base::ball qw(Cpanel::Easy::Utils);'

Is there any output when you run that?