Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When I was using Plesk it was simply under /var/www, however it is empty when I have at least 2 sites now on a cPanel machine. What is cPanel's architecture in terms of storing files?

share|improve this question

2 Answers 2

up vote 1 down vote accepted

Assuming you are using a plain vanilla install on a Centos server, then cPanel accounts are created under /home

The actual website root will be under: /home/accountname/public_html and a helpful link: /home/accountname/www

Edit: thanks for that hint re not using angle brackets in these comments

share|improve this answer
I think you must have put username in angle brackets and it was stripped out. try *username* instead of <username> –  Josh Apr 5 '10 at 22:25

The path is usually /home/USERNAME for a user's cPanel-related files. The public-html directory is where web files actually sit (i.e. http://example.org/index.html would be pulled from /home/example/public_html/index.html assuming the cPanel username would be example and that the user would be hosting example.org on his occount).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.