Skip to main content

Addon Domain: Changing log file location

Comments

3 comments

  • sarath8372
    Domlogs are defined in Apache main configuration file : /usr/local/apache/conf/httpd.conf . Look for CustomLog defined for the domain under its virtual host entry.
    # grep yourdomain.com /usr/local/apache/conf/httpd.conf | grep CustomLog
    You can modify the virtual host container for the domain by creating an include file as mentioned in : Modify Virtualhost Containers With Include Files - EasyApache - cPanel Documentation You can look for the include file path for your domain in Apache configuration by :
    # grep yourdomain.com /usr/local/apache/conf/httpd.conf | grep Include
    Create an include file in the directory shown in the output of last command (file should end with .conf). Define your custom domlog file in the include file. Then run :
    /scripts/verify_vhost_includes --commit

    /scripts/ensure_vhost_includes --all-users
    If verify script returns, "OK" finally rebuild Apache configuration file :
    /scripts/rebuildhttpdconf
    0
  • Oranuf
    Brilliant, this all makes perfect sense. THANK YOU!!
    0
  • cPanelMichael
    Hello, I'm happy to see the information provided to you was helpful. Thank you for replying to let us know it helped.
    0

Please sign in to leave a comment.