The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache's not running

Discussion in 'EasyApache' started by felipekk, Jun 18, 2013.

  1. felipekk

    felipekk Member

    Joined:
    Jun 18, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  3. felipekk

    felipekk Member

    Joined:
    Jun 18, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    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
    
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
  5. felipekk

    felipekk Member

    Joined:
    Jun 18, 2013
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Really thanks for the help Michael, is VePortal the same as OpenVZ?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page