Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Sep 2007
    Posts
    9

    Default Chkserv.d - Can't change default httpd port

    Hello!

    I use nginx server as frontend and apache as backend on port 80.
    I trying to change httpd monitoring script - /etc/chkserv.d/httpd

    After I change port 80 to port 3000, I restarted checkservd from WHM, but always if I restart this service from WHM all changes in /etc/chkserv.d/httpd restored by default (port 80).

    How to permanently change this settings?

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

    Root Administrator

    Default

    Quote Originally Posted by Sys3X View Post
    Hello!

    I use nginx server as frontend and apache as backend on port 80.
    I trying to change httpd monitoring script - /etc/chkserv.d/httpd

    After I change port 80 to port 3000, I restarted checkservd from WHM, but always if I restart this service from WHM all changes in /etc/chkserv.d/httpd restored by default (port 80).

    How to permanently change this settings?
    I recommend you let Apache continue to be monitored and instead add monitoring for nginx on port 3000.

    You can find information on how to do this beginning on slide 42 of the Customizing cPanel presentation from our 2007 cPanel Conference, which is available at: http://twiki.cpanel.net/twiki/pub/Al...ing_cPanel.pdf

  3. #3
    Member
    Join Date
    Sep 2007
    Posts
    9

    Default

    Thank you for link.
    Unfortunately I can't use nginx as frontend at port 3000, because this port
    maybe blocked at some ISP's.

    I can't find any information regarding my question...
    How to prevent "httpd" changes?
    Last edited by Sys3X; 04-22-2009 at 06:51 AM.

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

    Root Administrator

    Default

    Quote Originally Posted by Sys3X View Post
    Thank you for link.
    Unfortunately I can't use nginx as frontend at port 3000, because this port
    maybe blocked at some ISP's.

    I can't find any information regarding my question...
    How to prevent "httpd" changes?
    I am confused. You are running Apache on port 80 as mentioned in the original post. You can have chkservd check anything on any port you want, it's not arbitrarily limited to only monitoring port 3000.

  5. #5
    Member
    Join Date
    Sep 2007
    Posts
    9

    Default

    Quote Originally Posted by Sys3X View Post
    Hello!

    I use nginx server as frontend and apache as backend on port 80.
    Sorry, typo.
    Apache running as backend on port 3000
    Nginx running on port 80 as frontend.

    I use "/etc/chkserv.d/httpd" file to Apache monitoring.
    Also, I create "/etc/chkserv.d/nginx" file to monitor nginx (on port 80).

    The problem is cpanel change "httpd" file..
    I need to prevent this changes because Apache running on non-default port 3000.

    I can't understand, why Cpanel rewrite this file. I specify in "Tweak Settings" that apache running on port 3000, but cpanel continues to monitoring Apache on port 80 and rewrite /etc/chkserv.d/httpd file.
    Last edited by Sys3X; 04-22-2009 at 04:48 PM.

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

    Root Administrator

    Default

    Quote Originally Posted by Sys3X View Post
    Sorry, typo.
    Apache running as backend on port 3000
    Nginx running on port 80 as frontend.

    I use "/etc/chkserv.d/httpd" file to Apache monitoring.
    Also, I create "/etc/chkserv.d/nginx" file to monitor nginx (on port 80).

    The problem is cpanel change "httpd" file..
    I need to prevent this changes because Apache running on non-default port 3000.

    I can't understand, why Cpanel rewrite this file. I specify in "Tweak Settings" that apache running on port 3000, but cpanel continues to monitoring Apache on port 80 and rewrite /etc/chkserv.d/httpd file.
    You will need to disable monitoring for HTTPD in the WHM interface by going to WHM -> Service Configuration -> Service Manager and unchecking HTTPD from the monitor column.

    You can then copy /etc/chkserv.d/httpd to something like /etc/chkserv.d/myapache then edit your myapache file to change port 80 to 3000.

    Further information about customizing the services chkservd monitors can be found in the 2008 cPanel Conference presentation on Troubleshooting which is available at: http://twiki.cpanel.net/twiki/pub/Al...leshooting.pdf

    I have advised our Quality Assurance team regarding your statement about being allowed to change the port Apache is running on but it not updating the monitoring for Apache to use that different port. As that file is not dynamically generated at this time, it will be a while before such a capability can become supported. In the meantime, you are welcome to file a feature request for this at:

    http://bugzilla.cPanel.net

Similar Threads & Tags
Similar threads

  1. Change default cpanel and whm port from 2086 and 2082 to custom port
    By alok86 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-05-2011, 03:01 PM
  2. Change the default apache port
    By Bkmz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 05-23-2011, 01:28 AM
  3. change mysql default port
    By jcorreia in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 04-05-2007, 02:38 AM
  4. change default port
    By majidnt in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 09-20-2005, 01:58 PM
  5. change default pop mail port
    By ne0shell in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-15-2004, 03:49 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube