How do I setup web pages on the Engineering/Linux web server?

Tags web linux

Setting up web pages on the Engineering web server involves logging into a Linux system, creating the necessary directory, and changing some permissions on the files and directories you create so that the web server can access your web documents.  Here are the steps you need to follow.

  1. Login to a Linux server (such as linuxremote1.bucknell.edu) and open a terminal window. See this article if you're on a Windows computer or this article if you're on a Mac if you need more information about how to do that.
  2. Create a directory called public_html:
    mkdir ~/public_html
  3. Change the permissions on your home directory:
    chmod go+x ~
  4. Change the permissions on your public_html directory:
    chmod go+x ~/public_html
  5. Place your web files (HTML documents, images, etc.) in this public_html directory.  Make sure to change the permissions on web content. Note that file and directory permissions are slightly different:
    chmod go+r file.html image.jpg
    chmod go+x directoryname

After following these steps, your documents should be available at either/both:

https://www.eg.bucknell.edu/~username/file.html

https://www.linux.bucknell.edu/~username/file.html

(where username is your Bucknell username and file.html is the name of the HTML file you create).

Details

Article ID: 287
Created
Mon 2/3/20 10:21 AM
Modified
Fri 2/28/20 9:47 AM