Skip to main content

Feature Showcase CLI

Comments

6 comments

  • cPanelMichael
    For example - homedir htaccess optimization - how do you enable or disable that option from the command line?

    Hello @sparek-3, You can follow the instructions documented below to modify values under "WHM >> Apache Configuration >> Global Configuration":
    0
  • sparek-3
    Should /scripts/ensure_apache_local_config_has_defaults populate /var/cpanel/conf/apache/local with default values (i.e. a missing optimize_htaccess: directive) if it does not exist? Or is there a kosher way to add directives to /var/cpanel/conf/apache/local other than typical text file manipulation methods.
    0
  • cPanelMichael
    Should /scripts/ensure_apache_local_config_has_defaults populate /var/cpanel/conf/apache/local with default values (i.e. a missing optimize_htaccess: directive) if it does not exist?

    Hello, It does not, but I'm unable to reproduce a scenario where the "optimize_htaccess" entry isn't automatically populated in the /var/cpanel/conf/apache/local file. Can you provide some context or a specific scenario we can test in order to provide you with the best approach to manually setting up the entry? Thank you.
    0
  • sparek-3
    Upgrade from cPanel 60 to cPanel 66 or I suspect, whatever version optimize_htaccess was introduced. The directive does not get added to /var/cpanel/conf/apache/local until you log into the WHM and accept the Feature Showcase and/or adjust the value in the Apache Configuration section. It would seem that /scripts/ensure_apache_local_config_has_defaults is missing any potential value by not adding in default values to /var/cpanel/conf/apache/local. If default values could be set with something, then a simple regex replace could adjust those values from the default to the desired value.
    0
  • cPanelMichael
    Hello, If you are strictly making changes through the command line, then /scripts/ensure_apache_local_config_has_defaults will only populate the new .htaccess optimization entry if /var/cpanel/conf/apache/local is created as a blank file (as opposed to if it doesn't exist at all). Thus, to avoid any interaction at all with Web Host Manager, you'd need to directly add the new entries to /var/cpanel/conf/apache/local. Thank you.
    0
  • sparek-3
    Hmm, that's unfortunate then. /scripts/ensure_apache_local_config_has_defaults with an empty /var/cpanel/conf/apache/local seems to miss the directoryindex value. Seems there is a lot of cludginess to this - some things work, some things halfway work, some thing don't work at all. I'll work at it and see what I can cobble together. Seems this is something that's only affecting me anyway.
    0

Please sign in to leave a comment.