Skip to content

Instantly share code, notes, and snippets.

@MostafaNorzade
Created May 12, 2021 10:07
Show Gist options
  • Save MostafaNorzade/8f0e10d925d57bf9a23f616bb4d974da to your computer and use it in GitHub Desktop.
Save MostafaNorzade/8f0e10d925d57bf9a23f616bb4d974da to your computer and use it in GitHub Desktop.
1. upload all files to /home/user/public_html
2. edit /var/cpanel/userdata/$username/$domain.com
3. change the 'documentroot' path from 'public_html' to 'public_html/public'
4. /usr/local/cpanel/scripts/rebuildhttpdconf
5. /usr/local/cpanel/scripts/restartsrv_httpd
6. /usr/local/cpanel/scripts/restartsrv_apache
Done!
Check from cpanel > domains > your_domain_Document Root
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment