Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEric Swenson
1,916 PointsI am using GoDaddy for hosting and I do not see a public_html folder. Do I need to create it?
Where is the public_html folder?
4 Answers
Jeff Busch
19,287 PointsI'm going to guess your file view is because it's a Windows account. Unless you are going to use some Microsoft functionality like asp, I would suggest switching to a Linux account. I started off years ago with a Windows account but switched to a Linux account. I was talking to Godaddy support one time and the tech. person told me that 95% of the hosting accounts were Linux.
Anyhow, login to Godaddy and use their file manager and see what it looks like that way.
Erica n
16,461 PointsHi,
I have godaddy as well. Do you see your cpanel > file manager > list of files/folders to the left side?
Eric Swenson
1,916 PointsYes I do.
Jeff Busch
19,287 PointsHi Eric,
I also use Godaddy, Your root directory should be public_html. Are you viewing the file structure with the cPanel file manager or an ftp client like FileZilla?
Jeff
Eric Swenson
1,916 PointsI am using FileZilla. So it is just the root directory and doesn't need to say public_html?
Jeff Busch
19,287 PointsWhen I connect with FileZilla I just point it towards my website ie. website.com, and I'm able to view all the directories. Below is an example view when connected with FileZilla.
Login FileZilla--
├── .bash_logout
├── .bash_profile
├── .bashrc
├── .contactemail
├── etc
├── logs
├── mail
├── public_ftp
├── public_html
│ ├── css
│ ├── img
│ ├── index.html
│ ├── index.php
│ └── otherStuff
├── .ssh
├── .trash
└── tree.txt
Also, what type of account do you have? Linux or Windows. Most people have a Linux hosting account. And, are you hosting more than one domain?
Jeff
Eric Swenson
1,916 PointsIt is a windows account with one domain. I point FileZilla to my website also and I see only cgi-bin, error_docs, httpdocs, and logs.
Eric Swenson
1,916 PointsOk, I just switched over to Linux OS and now everything is looking good and public_html is there. Thank you very much!