Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    16,311
    Likes Received:
    393
    Trophy Points:
    583
    Location:
    Pennsylvania
    cPanel Access Level:
    Root Administrator
    Twitter:
    Is Apache up and running already?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,396
    Likes Received:
    1,857
    Trophy Points:
    363
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice