Public html HOWTO

From Global Shellz Wiki
Jump to: navigation, search

Welcome to the public_html HOWTO. In this section we will provide all the information required to help you successfully setup your own personalized website on the Global Shellz servers. public_html is the folder that is hosted for each user. If you do not wish others to see a file, DO NOT place it inside the public_html folder.

Contents

Setup

In order to create a personal website on your gshellz shell account, the public_html folder needs to be created. Run the following command to create the folder:

mkdir ~/public_html

The public_html folder needs to have the permissions changed to allow the web server daemon to server the contents. Run the following command to modify the permissions:

chmod a+rx ~/public_html

Anything that you wish to display via your personal website, whether it is HTML pages, images, etc., should be placed inside the public_html folder. Remember: The contents of this folder are public. The URL that the contents of the public_html folder appear is http://us.gshellz.org/~yourusername (or http://eu.gshellz.org/~yourusername, depending on which server you chose for your shell account) where yourusername is replaced with the username you use to login to your shell account.

Troubleshooting

403:Forbidden

If you attempt to access your personal website, or any file inside of the public_html folder, and receive a 403: Forbidden error, please check the permissions for the file and the folder containing the file. Every file in the public_html folder should have u+rw,go+r (0644) permissions set. Every folder in the public_html folder should have u+rwx,go+rx (0755) permissions set. If you have questions about permissions, please read the chmod man page or ask on the gshellz IRC channel.

404:Not Found

If you attempt to access your personal website and get redirected to the main wiki page or receive a 404: Not Found error, please check the URL that you are using. The tilde ('~') is required just before yourusername in the URL.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox