Creating a new Public_html

Shortleap

Verified User
Joined
Dec 10, 2004
Messages
8
How would I go about creating a new Public_Html folder? I guess I really screwed up, because I was deleting a forum's directory, and somhow that deleted my public_html folder. So I am wondering if it is possible to create a new public_html folder?
thanks.
Brett
 
You can create it through the filemanager or ssh just as if you were creating a normal directory. And then chmod it 750.
 
I make it in the same place as the domain folder.. right? if so, then when i try to make public_html, it doesnt make it.
 
YOu would make it in the same folder as private_html

Here is an example if your username was 'lucky' and your domain was 'tootsie.com'

You would want to create the public_html directory in /home/lucky/domains/tootsie.com/
So that you could cd into the public_html directory and have it look like this:
/home/lucky/domains/tootsie.com/public_html
 
thanks, I'll give that a shot, but I dont have a private_html either.. I havent for a while, Still dont know why.
 
Sorry for the double post. But heres a visual. And when i try that, and go to www.mydomain.com it comes up saying forbidden.
webpage.JPG
 
The domains directory belongs to username:username
The domain directory within the domains directory belongs to username:username
And finally the public_html which is chmod'ed to 750 does belong to username:apache (NOT username:username) right?

If yes to all of those, then I don't know what to say without actually getting into it to see whats up. Maybe someone else has some ideas? Do other domains work properly (from other accounts)
 
Last edited:
Chmoding the directories that don't belong to the right group to 777 will also work but it is a security risk.
 
Back
Top