felipekk

Member
Jun 18, 2013
7
0
1
cPanel Access Level
Root Administrator
Hello,

I tried to install CPanel several times, but every time I installed it, Apache crashed and stopped working and the IP:2086 was not acessible...

Fortunaly, this time I got it to work even without the Apache, but I keep getting errors like:
Code:
Can't fork at /usr/local/cpanel/Cpanel/SafeRun/Simple.pm line 40.
	Cpanel::SafeRun::Simple::_saferun_r('ARRAY(0x275aca0)', 1) called at /usr/local/cpanel/Cpanel/SafeRun/Errors.pm line 14
	Cpanel::SafeRun::Errors::saferunallerrors('date') called at whostmgr/bin/whostmgr line 4938
	main::edittime() called at whostmgr/bin/whostmgr line 878
And when I use the SSH and use
Code:
# service httpd restart
I get this message:
Code:
Stopping httpd:                                            [FAILED]
Starting httpd: grep: /etc/httpd/conf/httpd.conf: No such file or directory
httpd: Could not open configuration file /etc/httpd/conf/httpd.conf: No such file or directory
                                                           [FAILED]
I don't know what is going wrong, can anybody please give me some light here?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

It's possible the server is out of resources. Is this is a VPS server? If so, do you notice any failures in the /proc/user_beancounters file?

Thank you.
 

felipekk

Member
Jun 18, 2013
7
0
1
cPanel Access Level
Root Administrator
Hello Michael, thank you for the reply, I was trying to use the Easy Apache from CPanel to try to fix the problem, but I got this:
Code:
open3: fork failed: Cannot allocate memory at /var/cpanel/perl/easy/Cpanel/Easy/Utils.pm line 891
About your post, yes, it's a VPS server on my dedicated (A 16GB I7), the VPS is allocating 6.5GB and a 1 Core with 3.5GHZ (there is only 2 VPS's on my dedicated)

The Beancounter is with fails in the kmemsize, privvmpages and tcprcvbuf, but I m not really sure what those are...

Code:
Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
      105:  kmemsize                  8710258             11332843             11055923             11377049                 1505
            lockedpages                     0                    8                  256                  256                    0
            privvmpages                128245               261665              1441792              1441792                  100
            shmpages                     1921                 3599                21504                21504                    0
            dummy                           0                    0                    0                    0                    0
            numproc                        53                   74                  240                  240                    0
            physpages                   52756               147604                    0           2147483647                    0
            vmguarpages                     0                    0              1441792              1441792                    0
            oomguarpages                52756               147604              1441792              1441792                    0
            numtcpsock                     25                   58                  360                  360                    0
            numflock                        7                   16                  188                  206                    0
            numpty                          2                    5                   16                   16                    0
            numsiginfo                      0                    5                  256                  256                    0
            tcpsndbuf                  212936               593928              1720320              2703360                    0
            tcprcvbuf                  207312              1875184              1720320              2703360                 2957
            othersockbuf                77568               106664              1126080              2097152                    0
            dgramrcvbuf                     0                13128               262144               262144                    0
            numothersock                   45                   67                  360                  360                    0
            dcachesize                      0                    0              3409920              3624960                    0
            numfile                      1774                 2113                 9312                 9312                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            dummy                           0                    0                    0                    0                    0
            numiptent                      61                   61                  128                  128                    0
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
You will need to increase the parameters with fail counts from the VPS node. The method used to increase these parameters depends on the specific VPS software you are using. For example, with OpenVZ, their website may be helpful:

OpenVZ - Forums - VPS Parameters

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
It's a management application for the OpenVZ platform, yes.

Thank you.