Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 39
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    32

    Angry After create an new account the apache settings are reset

    Hello,
    Another bug in whm destroy my live.
    I have custom settings in apache httpd.conf (maxclients, keepalive , etc..) after i create an new account in whm this settings are gone and replaced with default. In this case the default settings are not good for me.

    What can i do?

    Apache 1.3.39 EA3
    RHE4 & FedoraCore 5 - same problem .

    Waiting for an urgently solution...
    Marian Cursaru

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Make your changes to httpd.conf, then run /usr/local/cpanel/bin/apache_conf_distiller --update --main

    it should preserve your settings then.

  3. #3
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Make your changes to httpd.conf, then run /usr/local/cpanel/bin/apache_conf_distiller --update --main

    it should preserve your settings then.
    Can you explain (just a little) what that does? It sounds as if apache conf settings are actually being set somewhere else?

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    In brief, we have consolidated all management of httpd.conf into a "cPanel" database, found in /var/cpanel/useradata apache_conf_distiller is used to create and maintain that data. httpd.conf is rebuilt based upon that data. We don't recommend modifying the data in /var/cpanel/userdata

  5. #5
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    Thanks, that's what I was looking for.

  6. #6
    Member verdon's Avatar
    Join Date
    Nov 2003
    Location
    Northern Ontario, Canada
    Posts
    792

    Default

    So a new protocal would be to run /var/cpanel/useradata apache_conf_distiller whenever any manual edit is done to httpd.conf?

  7. #7
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by verdon View Post
    So a new protocal would be to run /var/cpanel/useradata apache_conf_distiller whenever any manual edit is done to httpd.conf?
    You need to run it with --update --main, otherwise it won't do anything.

    Otherwise, correct. After making changes to the global values, run:

    Code:
    /usr/local/cpanel/bin/apache_conf_distiller --update --main
    to preserve the changes.

  8. #8
    Member Rafaelfpviana's Avatar
    Join Date
    Mar 2004
    Location
    Brazil
    Posts
    142

    Default

    was this suppose to keep the modified or added values that where added between <VirtualHost></VirtualHost> ????
    ..........*...*
    ......*......... *
    ....*...........0/
    ....RJHOST./||
    ................/ \

    RJHost Hospedagem 5 Estrelas *****
    www.RJHost.com.br - Hospedagem de Sites

    Registro de domínios .com.br a R$ 45, e .com a partir de R$ 38,00 - www.E-Registros.com.br

    ScriptFacil.cOm - A melhor em JavaScript - Tudo para o seu site. - www.ScriptFacil.cOm

    Personal site adn Blog - visit: www.rafaelfpviana.com

  9. #9
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,768
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    No, changes to VirtualHost will not be preserved. Those changes need added to /usr/local/apache/conf/userdata/std/<apache version>/<user name>/custom.conf

    The file doesn't actually need to be named customer,conf, as long as it end with .conf

    After adding such a file, run:
    Code:
    perl /scripts/ensure_vhost_includes
    once that is done, the Include directives will be added to the vhost and retained across httpd.conf regenerattions.

    On a side note, there is a bug in 17046 (Current and Edge) that causes the httpd.conf be regenerated by anything that modifies the httpd.conf. Thus, adding a subdomain will cause the entire file be regenerated. This will be fixed in the next build.

  10. #10
    Member
    Join Date
    Nov 2002
    Posts
    124

    Default

    Quote Originally Posted by cpanelkenneth View Post
    No, changes to VirtualHost will not be preserved. Those changes need added to /usr/local/apache/conf/userdata/std/<apache version>/<user name>/custom.conf

    The file doesn't actually need to be named customer,conf, as long as it end with .conf

    After adding such a file, run:
    Code:
    perl /scripts/ensure_vhost_includes
    once that is done, the Include directives will be added to the vhost and retained across httpd.conf regenerattions.

    On a side note, there is a bug in 17046 (Current and Edge) that causes the httpd.conf be regenerated by anything that modifies the httpd.conf. Thus, adding a subdomain will cause the entire file be regenerated. This will be fixed in the next build.

    This would've been good as part of documentation, or maybe included in the changelog or something. This is the first I've seen of it, and this was after doing some searching.

    Also, how would this work if I wanted to say, change the secure web path for a domain? Rather than serving the pages from /home/username/public_html/ the client would like it served from /home/username/secure_html/

    In what way is this possible?
    Last edited by thedavid; 09-17-2007 at 04:38 PM.

  11. #11
    Member Rafaelfpviana's Avatar
    Join Date
    Mar 2004
    Location
    Brazil
    Posts
    142

    Default

    kenneth, i didn't find /usr/local/apache/conf/userdata/std/<apache version>/<user name>/custom.conf, in fact /usr/local/apache/conf/userdata doesn't exist for me.

    By the way, would this be the correct way:

    Code:
    perl /scripts/ensure_vhost_includes  --all-users
    ..........*...*
    ......*......... *
    ....*...........0/
    ....RJHOST./||
    ................/ \

    RJHost Hospedagem 5 Estrelas *****
    www.RJHost.com.br - Hospedagem de Sites

    Registro de domínios .com.br a R$ 45, e .com a partir de R$ 38,00 - www.E-Registros.com.br

    ScriptFacil.cOm - A melhor em JavaScript - Tudo para o seu site. - www.ScriptFacil.cOm

    Personal site adn Blog - visit: www.rafaelfpviana.com

  12. #12
    Member
    Join Date
    Apr 2006
    Posts
    62

    Default

    Is this distiller something that cpanel came up with or is it new to apache? This seems like an aweful lot of work just to make a few changes here and there and i can see it leading to a whole slew of problems

  13. #13
    cPanelBilly
    Guest

    Default

    Quote Originally Posted by mtech-hosting View Post
    Is this distiller something that cpanel came up with or is it new to apache? This seems like an aweful lot of work just to make a few changes here and there and i can see it leading to a whole slew of problems
    This is a cPanel thing and it is needed because of the multiple apache versions

  14. #14
    Member
    Join Date
    Nov 2002
    Posts
    124

    Default

    Quote Originally Posted by cPanelBilly View Post
    This is a cPanel thing and it is needed because of the multiple apache versions
    Does this reply mean that there's no way of making the changes I mentioned above?

  15. #15
    Member
    Join Date
    Sep 2003
    Posts
    50

    Default

    Quote Originally Posted by cpanelkenneth View Post
    No, changes to VirtualHost will not be preserved. Those changes need added to /usr/local/apache/conf/userdata/std/<apache version>/<user name>/custom.conf
    The userdata directory does not exist on my system, if this is manually created will cPanel pick it up, for instance if I created:

    /usr/local/apache/conf/userdata/std/1.3/a_user/custom.conf

    then ran perl /scripts/ensure_vhost_includes

Similar Threads & Tags
Similar threads

  1. Create Account Wizard - ASP.net Framework settings
    By chrisbuk in forum Enkompass Discussions
    Replies: 0
    Last Post: 07-31-2011, 03:25 PM
  2. Reset WHM settings
    By TheReliableHost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 01-28-2010, 11:34 AM
  3. How do i reset back to default settings
    By kinlungchan in forum New User Questions
    Replies: 2
    Last Post: 05-22-2006, 11:57 PM
  4. Tweak Settings reset every week
    By Cristian99 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-02-2005, 04:57 AM
  5. reset the server settings
    By sphost in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-18-2004, 05:16 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube