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.

Change the default apache port

Discussion in 'EasyApache' started by Bkmz, May 20, 2011.

  1. Bkmz

    Bkmz Registered

    Joined:
    May 20, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi. I'm newbie in cPanel. I need to change the default port of Apache's VirtualHosts. So, I going to tweak settings, change there default value to 0.0.0.0:81. After that I execute following commands:
    Code:
    /usr/local/cpanel/whostmgr/bin/whostmgr2 --updatetweaksettings
    /usr/local/cpanel/bin/apache_conf_distiller --update
    /scripts/rebuildhttpdconf
    
    And the last command exiting with following error:
    Code:
    This tool unavailable until Apache is built by EasyApache 3.x at ./buildhttpdconf line 42.
    How can i rebuild the httpd.conf?
    PS i can use sed, but it's not cPanel way, as i understand
     
    #1 Bkmz, May 20, 2011
    Last edited: May 20, 2011
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    Joined:
    May 20, 2003
    Messages:
    14,453
    Likes Received:
    195
    Trophy Points:
    63
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is Apache up and running already?
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,685
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    This message typically indicates Apache has been installed via your system package manager rather than via EasyApache.

    Could you post the output of the following command:

    Code:
    # /usr/sbin/httpd -v
    Thank you.
     
Loading...

Share This Page