Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2008
    Posts
    16

    Default Running apache on two ports?

    According to this:
    http://httpd.apache.org/docs/2.0/bind.html
    Apache can be set to different port on another ip,with this example:
    Listen 192.170.2.1:80
    Listen 192.170.2.5:8000
    But since whm uses own config file for apache port,what i need to change there?
    In file cpanel.config this determine apache port-apache_port=0.0.0.0:80
    so what i need to add to set port 80 to 4 ip adress and port 81 to last ip adress.

  2. #2
    Member
    Join Date
    Apr 2007
    Location
    Bakersfield, California
    Posts
    270

    Default

    You need to make changes to /usr/local/apache/conf/httpd.conf, or one of the available include files, and update/re-distill the apache configuration afterward. If you look at the very top of httpd.conf it tells you exactly how to do it.

  3. #3
    Member
    Join Date
    Mar 2008
    Location
    Karachi,Pakistan
    Posts
    49

    Default Yaseen

    Hello ,

    You will be able to install many apaches and then you can assisgn different through httpd.conf and what ever, you can every web site on different ports

    Quote Originally Posted by lukas1234 View Post
    According to this:
    http://httpd.apache.org/docs/2.0/bind.html
    Apache can be set to different port on another ip,with this example:
    Listen 192.170.2.1:80
    Listen 192.170.2.5:8000
    But since whm uses own config file for apache port,what i need to change there?
    In file cpanel.config this determine apache port-apache_port=0.0.0.0:80
    so what i need to add to set port 80 to 4 ip adress and port 81 to last ip adress.

  4. #4
    Member
    Join Date
    Jan 2008
    Posts
    16

    Default

    Yes but with file cpanel.config ?That is what bothers me.Editing httpd.conf and update is no problem i already know for that.But if you for example change port in cpanel.config that port will stop working same second after click on save in whm.So i think in that file need to be something added as well otherwise it wont work properly.

  5. #5
    Member
    Join Date
    Jan 2008
    Posts
    16

    Default

    Looks like i will need to send ticket.

  6. #6
    Member
    Join Date
    Mar 2008
    Location
    Karachi,Pakistan
    Posts
    49

    Thumbs down Yaseen

    Hello ,

    This sounds very strange...see this
    ================
    root@fedora [/]# cd /usr/local/cpanel
    root@fedora [/usr/local/cpanel]# ls
    ./ apache/ cpconf* htdocs/ optflags* startup*
    ../ api.txt cpdavd@ img-sys/ perl/ sys_cpanel/
    .cpanelsync* base/ cphulkd@ install/ perlapi.txt tests/
    .cpanelsync.md5s* bin/ cphulkd.pl* install.list perlver* uninstall*
    3rdparty/ bsdconf/ cpkeyclt* installtheme* perlversion* var/
    APACHE_CONFIG build-tools/ cpldapd java-sys/ php/ version
    AcctLock.pm cPanelRPM.pm cpsanitycheck.so* lang/ redhat/ vsrvmgr/
    Cpanel/ cgi-sys/ cpsrvd* lib/ rollback.conf* vsrvmgrd*
    Cpanel.pm checkrsync* cpsrvd-ssl* libexec/ safetybits.pm@ vsrvmgrqd*
    ExampleModule.test.html core cpupdatepatches/ liscerr* setupapache* vstartup*
    FastImport.pm cpaddons/ docs/ logs/ share/ whostmgr/
    LICENSE cpanel* ea2-tools/ mail/ spamassassin_sandbox/
    RcsRecord.pm* cpanel-email* entropychat/ modules-install/ sqloptimizer/
    SafeFile.pm* cpanel.lisc etc/ move_lang_tags_to_x src/
    Whostmgr/ cpanellogd* hooks/ obj/ startstunnel*
    =====================
    i do not find any thing like cpanel.config
    Quote Originally Posted by lukas1234 View Post
    Yes but with file cpanel.config ?That is what bothers me.Editing httpd.conf and update is no problem i already know for that.But if you for example change port in cpanel.config that port will stop working same second after click on save in whm.So i think in that file need to be something added as well otherwise it wont work properly.

  7. #7
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    11,189
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    cpanel.config is in /var/cpanel, and is essentially the text file that stores the settings set in Tweak Settings.

Similar Threads & Tags
Similar threads

  1. Bandmin monitoring other ports not only default ports.
    By ovidiub in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-20-2008, 08:39 AM
  2. running PHP 4.x and 5.x in apache 2.2.x
    By nitaish in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-21-2008, 10:02 AM
  3. Apache running as apache user and group?
    By bsasninja in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 07-18-2006, 03:34 PM
  4. Not running webmail through ports
    By n000b in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-30-2006, 02:53 AM
  5. Apache running as nobody
    By hostmedic in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 10-11-2005, 11:22 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube