Mobile app version of vmapp.org
Login or Join
LarsenBagley505

: Locking subdomain document root folder name (cpanel) I have moved the document root on one of my domains to serve content from RAM and as a result, the Time to First Byte on average dropped

@LarsenBagley505

Posted in: #Cpanel #DocumentRoot #Domains

I have moved the document root on one of my domains to serve content from RAM and as a result, the Time to First Byte on average dropped 10ms when I tested my server from the other end of North America.

In order for me to do this, I had to manually enter the shell and navigate to /var/cpanel/userdata/(username)/(domain) and find my domain and edit a couple of lines.

I basically followed instructions here: www.inmotionhosting.com/support/website/file-management/changing-the-document-root-with-root-access
I then saved the file and attempted to lock it by assigning file permissions 400 to the domain file instead of file permissions 755. I'm not sure if this will be sufficient to prevent the domain from being changed.

I went in cpanel after to check the document root folders for my domain and the document root that shows up is the old one (before I made the manual changes described above).

So my question is, how can I ensure that if someone (who is authorized) goes into the cpanel control panel that the document root folder can't be changed at all for any sub-domain I want?

10% popularity Vote Up Vote Down


Login to follow query

More posts by @LarsenBagley505

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme