Recreating default public html

From SHellium Wiki
Jump to: navigation, search
Geographylogo.png In other languages: English | Afrikaans | Albanian | Arabic | Brazilian | Bulgarian | Catalan | Chinese | Croatian | Czech | Danish | Dutch | Esperanto | Estonian | Filipino | Finnish | Flemish | French | German | Greek | Hebrew | Hindi | Hungarian | Indonesian | Italian | Japanese | Latvian | Lithuanian | Macedonian | Malay | Malayalam | Norwegian (Bokmål) | Norwegian (Nynorsk) | Persian | Polish | Portuguese | Romanian | Russian | Serbian | Slovak | Slovenian | Spanish | Swedish | Turkish | Ukrainian | Urdu

This article will show you how to recreate your public_html directory if you have accidentally deleted it.

Creating default public_html

cd
mkdir public_html
chmod 711 public_html
cd public_html
mkdir cgi-bin
chmod 711 cgi-bin
echo 'Hi' > index.html
chmod 644 index.html

After issuing these commands you should now have a public_html folder as it was when you created your shell account, with an index file containing 'Hi' (without quotes).

Personal tools
Namespaces

Variants
Actions
Navigation
Indexes
SHellium Sites
Toolbox