PDA

View Full Version : how to create Public_html folder



Biff
06-02-2007, 03:48 AM
Hey all,

Newb here and I have a quick (and probably stupid) question.

I accidentally deleted my Public_html folder today... long story!! Anyway, how can i create a new one? :o

smtalk
06-02-2007, 04:31 AM
cd /home/user/domains/domain
mkdir public_html
chown user:user public_html
chmod 755 public_html


Change words in bold.

floyd
06-02-2007, 04:53 AM
You can also do it from the File Manager. And also its public_html not Public_html. Case matters.

Biff
06-02-2007, 05:02 AM
Thanks for replying guys






cd /home/user/domains/domain
mkdir public_html
chown user:user public_html
chmod 755 public_html




Change words in bold.

Like i said, i'm a total newb so where would i enter this??



You can also do it from the File Manager. And also its public_html not Public_html. Case matters.



And i tried this but when i uploaded the new files the site still hasn't changed. The old public_html file had a red arrow on it in the File Manager, the one i created doesn't?

Any more ideas??

smtalk
06-02-2007, 05:04 AM
Just execute these commands in ssh.

Biff
06-02-2007, 05:08 AM
Whats that?? :o I'm sorry to be such a pain in the ass but I know very little about computers.... :o

floyd
06-02-2007, 05:08 AM
The one with the red arrow was the symlink to the real public_html folder. It is not necessary. The real public_html folder is supposed to be in /home/your_username/domains/your_domain_name/ Check that.

Also its helpful to tell us what the domain is so we can check it. You may have a problem you don't know about like the domain expired or its not a registered domain or not pointing to the correct nameservers. That is the main reasons my customers domains don't work.

Biff
06-02-2007, 05:43 AM
All sorted. The folder wasn't deleted :o just the link to it like you said Floyd. :)

Thanks a million guys, i owe you one!

Antonina
06-28-2007, 12:34 AM
Hi!
I have same problem, but could not find answer yet here.
I accidentally deleted my Public_html folder today.
How to create it?
:confused:
I dont know how to use code, but maybe I can create it by File Manager?
I checked already here : /home/your_username/domains/your_domain_name/ .
Help me please! :)

floyd
06-28-2007, 03:49 AM
but maybe I can create it by File Manager

Yes you can.