Community Forums
Connect with us on LinkedIn
Ips
  
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default Ips

    Hello i have cpanel running on two ips:
    81.171.98.120
    81.171.98.121

    I also have a apache2 running on port 8080, i was told by someone that i could setup the apache2 to run on 81.171.98.121:80

    I have configured apache1 to just lisen to 81.171.98.120 by editing httpd.conf to Listen 81.171.98.120 and i have also tried 81.171.98.120:80

    When ever i go to restart apache is fails, i have also tried the Bind in httpd.conf and that still stops apache starting. Does anyone know how i can do this?

    Thanks in Advance.

  2. #2
    Member
    Join Date
    Jul 2004
    Posts
    496

    Default

    AFAIK cpanel doesn't support apache2 yet.

  3. #3
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    I know it does not support it thats why i have it running from a complete different setup, but i want the apache2 to listen to one of the ips, how can i stop apache 1 and whm from listen to both ips. I have tried what i said in my first post but just stops apache starting.

  4. #4
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Did you check for multiple entries of Listen 80?

  5. #5
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    I have check, when i go to add the Listen alue to listen to just one ip it fails to restart apache. All im doing is adding a Listen and then the ip.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    How can i make apache 1 only use one ip , when ever i tell it to just use one ip it fails to start saying that port 80 on the ip is already used, i have run netstat and all and nothing is running on port 80 on that list.

    Please help, as i would like to get this running soon.

  7. #7
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    Sorry Double Post
    Last edited by WEB-PROS; 04-03-2006 at 11:17 AM.

  8. #8
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Since its failing on restart, please post the error message.

  9. #9
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    Sorry, thanks everyone with many hours of worked i eventually managed to config the http.conf file right, apache 1 sure does like taking both ips.

    Well thanks for everyones help,if anyone ever wants to do this pm and i can help you

    Thanks

  10. #10
    Member
    Join Date
    Feb 2004
    Posts
    329

    Default

    Could you post the process?

  11. #11
    Member
    Join Date
    Feb 2006
    Posts
    111

    Default

    Well it took me many tried bu this is the basic idea.

    1) In Apache 1 httpd.conf change the Listen 80 to Listen ip:80
    2) In Apache 1 httpd.conf change the BindAddress to BindAddress ip

    Ip being the ip you just want apache 1 to listen to, if you have mulitiple ips just add another Listen but do not add another BindAddress as thats only your main ip.

    Now Apache 2
    1) In Apache 2 httpd.conf change the Listen 80 to Listen ip:80

    ip bein the ip you want apache 2 to listen to

    Now start Apache 2 first and then Apache 1, after the first startup it seems it does not matter which way you start them but i had to start Apache 2 on first go..

    Last thing is when you restart Apache 1 in whm it also stops Apache 2 as it ends all Apaches but does not restart Apache 2 so you need to make some kind of script or log into ssh and start manualy.

    i hope this helps anyone who needs it, pm if you need any more help.


    Ashley

Similar Threads & Tags
Similar threads

  1. Resellers - Delegated IPs & main/shared IPs?
    By Speedy059 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-18-2011, 01:37 PM
  2. Why WHM >> Networking Setup >> Nameserver IPs is not showing the IPs
    By Isamtron in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 08-17-2010, 08:09 PM
  3. /etc/ips
    By zigzam in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-07-2009, 10:22 AM
  4. Replies: 6
    Last Post: 02-21-2008, 05:26 PM
  5. Can't delete IPs from Manage Nameserver IPs?!?
    By ndj1022 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-28-2003, 05:28 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube