The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

distiller --update is not working

Discussion in 'EasyApache' started by KHA, Sep 21, 2016.

  1. KHA

    KHA Member

    Joined:
    Aug 25, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Dubai
    cPanel Access Level:
    Root Administrator
    Hello,

    I need to update my Server httpd.conf file. so i did follwoings

    I run this command to find the httpd.conf file location
    httpd -V

    Now i have location as HTTPD_ROOT="/etc/apache2" so i got this directory as bellow command
    cd /etc/apache2/conf

    and i edit the file
    nano httpd.conf

    I change value of DocumentRoot /var/www/html to my domain directory under <VirtualHost *.*:80> as bellow
    <VirtualHost *.*.*.*:80>
    ServerName *.*.*.*
    DocumentRoot /home/myapp/public_html
    ServerAdmin email@gmail.com
    <IfModule suphp_module>
    suPHP_UserGroup nobody nobody
    </IfModule>
    </VirtualHost>

    now after saving file, i check my server and ever thing works as i need.

    now i run this command to keep the settings save in update or rebuild.

    /usr/local/cpanel/bin/apache_conf_distiller --update

    now after this command i build the httpd.conf again with bellow command
    /scripts/rebuildhttpdconf

    and after rebuild i check that my settings are gone.
    how to make changes and keep them save even after rebuild.

    Thanks
     
  2. KHA

    KHA Member

    Joined:
    Aug 25, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Dubai
    cPanel Access Level:
    Root Administrator
    Hello @cPanelMichael,
    in this link you ask for make configuration for mysite.com, but i want to change
    <VirtualHost *.*.*.*:80>

    how could i do it ?
    i could not follow as this is not any site, its server shared IP.

    Thanks
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,808
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you want to make the change for VirtualHosts with all shared IP addresses on the system? If so, this thread should help:

    Apache log format issue with EasyApache 4

    Here's the relevant section to edit:

    Code:
    ##################################################
    ##################################################
    #
    # Define default vhosts for shared IPs
    #
    ##################################################
    ##################################################
    
    [% FOREACH vh IN sharedips -%]
    <VirtualHost [% vh %]>
        ServerName [% parsed_ip(vh) %]
        DocumentRoot [% paths.dir_docroot %]
        ServerAdmin [% serveradmin %]
    
        <IfModule suphp_module>
            suPHP_UserGroup nobody nobody
        </IfModule>
    
    [%-     IF supported.mod_userdir && userdirprotect_enabled && defaultvhost.userdirprotect != '-1' %]
        UserDir disabled
    [%-         IF defaultvhost.userdirprotect != '' && !supported.mpm_itk && !supported.mod_ruid2 %]
        UserDir enabled [% defaultvhost.userdirprotect %]
    [%-         END -%]
    [%-     END %]
    </VirtualHost>
    
    [% END -%]
    Thank you.
     
  4. KHA

    KHA Member

    Joined:
    Aug 25, 2016
    Messages:
    6
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Dubai
    cPanel Access Level:
    Root Administrator
    Thanks and it works.
     
    cPanelMichael likes this.
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,808
    Likes Received:
    667
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page