Skip to content

Instantly share code, notes, and snippets.

@demagu
Last active September 21, 2021 08:58
Show Gist options
  • Save demagu/ffabf35985792a7f8a1e to your computer and use it in GitHub Desktop.
Save demagu/ffabf35985792a7f8a1e to your computer and use it in GitHub Desktop.
How to edit virtual host settings in cPanel

How to: How to edit virtual host settings in cPanel

Login to your server:

Then:

  • Step 1: mkdir -p /usr/local/apache/conf/userdata/std/2/{username}/{domain.com}

  • Step 2: cd /usr/local/apache/conf/userdata/std/2/{username}/{domain.com}

  • Step 3: nano extra.conf

  • Step 5: /scripts/ensure_vhost_includes --all-users

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment