LAMP Environments

When you sign up for colgate.domains, you get space on a Web host that is associated with the project. There are a few things you need to know about the Web host that will make it easier to understand what you can do with your new space.

The Web Server

The Web server is the main computer that is associated with the colgate.domains hosting account. It is literally a computer – a computer that has special software on it that allows it to be accessible via the Web. The files that run your applications, images or video you upload, or any other files you upload into your Web space are stored on this server.

(For comparison’s sake, your desktop or laptop computer, by default, doesn’t allow this; I can’t access files on your computer through a Web browser by default. You CAN actually install Web server software on your own computer, essentially making your files accessible over the Web.)

In order to run, a Web server has an operating system installed and some kind of Web server software. The colgate.domains server runs the 'LINUX' operating system and an 'APACHE' Web server.

The Database Server

In addition to the Web server, there is also an associated database server. This is another computer, but it is configured with software that allows it to host databases. It is also connected to your Web server so that your applications (hosted on the Web server) can retrieve data (from databases hosted on the database server).

Databases come in LOTS of varieties. The kind of database you can use for a Web application depends on the kind of software that’s installed on the database server. The colgate.domains server can run 'MYSQL' databases.

The Programming Language

When you install open-source software on your Web account, it’s going to be written in some programming language. Your Web server has software installed on it that allows it to understand different languages. If you install software that’s written in a language that your Web server doesn’t read, it won’t work.

The colgate.domains server has software installed on it that allows it to understand 'PHP''PERL', and 'PYTHON'.

Add it Together: LAMP

If you take a look at all the descriptions above, you can determine that we are running what is known as a LAMP server for colgate.domains:

  • Linux (operating system)
  • Apache (Web server)
  • MySQL (database server)
  • PHP/PERL/PYTHON (programming language)

Applications that are written for LAMP environments will, presumably, run on the server. HOWEVER, some applications do require additional extensions or libraries that aren’t included, by default, in a LAMP environment. The applications you can install via Installatron (in cPanel) should work just fine.

What makes LAMP environments special is that all of the component parts are open-source. Linux, Apache, MySQL, PHP, PERL, and PYTHON are all open-source programs or systems. Anyone can download them (for free) and install them. Anyone can also modify them and redistribute them. As a result, there are lots of online resources for using these systems that have been built by their communities of users. But, also as a result, since you’re not paying for these systems, you can’t just call up a company and ask them to fix a problem.

Static and Dynamic Websites

Static Websites

In the early days of the Web, almost all Web sites were what is known as 'static sites.' Content (text, images, video, audio, etc), was placed or embedded in a file in which HTML tags were used to format it. If you looked at the actual contents of the file, you might see something like this:

example of static HTML code

The content and the tags lived side-by-side. To edit the page, you’d open up the file (on your own computer) in a program capable of editing HTML files and make changes to either the content or the presentation. Every page had to be edited individually, even if the edits you were making were for common elements that appeared on many pages (like menu bars).

From a technical perspective, accessing a static Web site is fairly straightforward. When your computer is connected to the Internet, you can use a Web browser to access files on a Web server (as long as you know the address). The Web server delivers the contents of those files to your browser, and your browser displays them.

Dynamic Websites

Over time, as the Web became more sophisticated, new systems emerged for creating and managing Web sites. These moved beyond the model of having content and HTML tags live in a simple HTML page which your browser accessed and displayed. Instead, these systems were Web applications – software that literally runs on the Web server and makes it possible to manage a Web site, often with very sophisticated features. One feature of these applications is that they separate content and presentation by storing most content (your text, images, etc) and data about the site (the title, options, etc). in a database.

On the Web server, the Web application installs files that are written in some kind of programming language. The server reads this code and obeys any requests in it to access data in the database (which lives on a separate server) and displays it according to the instructions in the code.

example of dynamic HTML code

Essentially, the data for the site (living in a series of tables in a database on the database server) is entirely separate from the actual presentation of the site (living in the code of the programmed files on the Web server). Special software on both the Web server and the Database server enable the two to speak to each other and work together.

One of the benefits of using a Web application is that you usually don’t need to touch (or even look at!) the code in order to make changes to your content. In addition, editing the site usually involves accessing some kind of control panel through your Web browser and filling out a form, instead of having to download and access files in software on your own computer.

Dynamic vs Static Content

Sometimes when we talk about the difference between dynamic and static content we get bogged down in the idea of whether or not the content is “fresh” (dynamic, regularly updated) or “old” (static, never updated). How frequently you update your content has nothing to do with what kind of system you are using to manage your site. You can manage a static Web site (as described above) and update the content every day. You can also have a dynamic Web site (running something like WordPress) and never change the content after you create it.

Generally speaking, it IS easier to regularly update content on a dynamic Web site because the Web application just makes it easier. Sometimes, even when you just want a very basic page or placeholder, it’s easier to install a Web application (and only put up a single page) then to manually create an HTML page and upload it.

A Side Note about Separating Content from Presentation: Style Sheets

Another aspect of separating content from presentation involves the use of 'Cascading Style Sheets' (CSS). These are special files that live on your Web server and are linked to your Web pages. They contain information (written in a special markup language) about how to make elements on your site look. They allow you, for example, to define in a single location what all Level 1 Headings look like on your site. They are an important aspect of understanding how to separate content from presentation, but they’re not really an aspect of the difference between static and dynamic sites. Both static and dynamic sites can use style sheets.

What Exactly is a Web Application?

In the most general terms, a Web application is a piece of software that runs on a Web server. A Web server is a just a specialized computer designed to host Web pages.

Most Web applications are comprised of two components: files and a database. When you install a Web application, you will need to make sure all of the files are copied over into the appropriate location AND that a database (and database user) has been set up to connect to those files. Often, you will have to do some configuration to make sure the application knows how to access the database.

The system we use for Colgate Domains uses a special script installer called Installatron (in cPanel) that allows you to automatically install dozens of open source applications. When you use Installatron, you don’t need to worry about moving files, creating databases, or doing the initial configuration. It’s all taken care of for you. You can find out more about Installatron here.

In order to run on the Colgate Domains server, Web applications must be able to run on a LAMP server, which is the particular kind of Web server that we use. Occasionally, a Web application may require additional components or modules that need to be installed on the server.

What Can You Do with Your Account?

Your ability to do things on Colgate Domains is dictated to a large degree by the limits of your imagination. That said, there are some technical requirements and limitations that you should be aware of and might want to review.

To spark your imagination, here are some ideas that might help you get started:

Install a Web Application in Your Space

Colgate Domains makes it very simple to install certain Web applications in your Web space. Web applications are just special software that run on a Web server. Usually they allow you to build and manage a Web site. The kind of site you can build depends on the type of application you install. Here are some examples of applications that you can easily install within the colgate.domains Web hosting interface:

WordPress LogoWordPress: WordPress is a blogging application. While it allows you to quickly and easily set up a blog, it also comes with a set of features that really make it possible to set up any kind of basic Web site without much difficulty. We have resources available that are focused on installing and using WordPress.

Mediawiki LogoMediawiki: If you’ve ever browsed or edited Wikipedia, you’ve already used Mediawiki. It is the open-source wiki software that runs the online encyclopedia, and you can install it on your Web space. It’s a good choice if you’re interested in publishing documents and then collaborating with others on them. We have instructions for installing Mediawiki.

ZenPhoto iconZenPhoto: This application is a good choice if you’re looking for a way to share images in your Web space. It’s also a quick install through Installatron in cPanel onto your Plymouth Create Web space.

OwnCloud iconOwnCloud: If you’ve used DropBox, the concept of OwnCloud will be familiar. It allows you to upload and access files from anywhere with Web access. You can also share those files and sync them to your devices. This Web application is another quick install through Installatron in cPanel.

These are just a FEW of the open-source applications that are available to you in your Colgate Domains Web space.  We encourage you to read more about what Web applications are and which ones are available to you through this project.

Organize Your Site with Subdomains and Folders

Through this project, you’ve received a domain name that you can actually subdivide and organize anyway you like. One easy way to organize your domain is to create subdomains, in which you can then install other applications. In addition, you can just set up subfolders for your site (which can also have their own applications installed in them). Here’s an example of how you might organize your site (using the subdomain vs. the subfolder approach)

Subdomain Approach Subfolder Approach
yourdomain.com (“root”) Install WordPress as your “main site” yourdomain.com (“root”)
course1.yourdomain.com Install a second WordPress instance for a course you’re taking yourdomain.com/course1
photos.yourdomain.com Install ZenPhoto for a public photo gallery of your photos yourdomain.com/photos
docs.yourdomain.com Install MediaWiki for a club you belong to that wants to collaboratively edit its bylaws yourdomain.com/docs
files.yourdomain.com Install OwnCloud so you can access your files on your laptop and at work yourdomain.com/files

This is just an EXAMPLE of a way to organize your site and then use different sections to do different things. There is no one solution to this challenge, and what you do should be driven by what makes sense to you. To start, you may just want to install one thing at the “root” of your domain, and then let the rest evolve as you get to know more about what’s possible.

Map Your Domain (or a Subdomain)

If you already have a digital presence that you’d like to pull into your Colgate Domains space, domain mapping is an option you may wish to explore. This allows you to assign your domain (or a subdomain) to another service. Some services that work with domain mapping are:

When you map a domain, users who visit your URL will automatically see your space on one of these services. It’s a great way to incorporate your activity elsewhere into your domain, and it might be a good first-step if you’ve already established a presence somewhere else and just want to point your new domain to that space.

Privacy

What you put up in your plymouthcreate.net space rests entirely with you. You can choose not to pick a domain that reveals your name. You can use a pseudonym on your actual site. However, when you sign up through the default process, your name does get published as part of the public record about your domain name. Anyone can find it by looking up details about the ownership of that domain name through a public “Whois” request.

This is NOT an issue if you’re already planning on using your name openly on your site (in your domain name or elsewhere). This option is aimed, specifically, at those who, for whatever reason, feel they want to take every precaution to hide their identity on their site.

Understanding Accounts & Passwords

One aspect of colgate.domains that users may find a bit complicated at first is understanding the different accounts (and associated passwords) that you can manage as part of your participation in the project. This article outlines the types of accounts that you are likely to have, what they are for, and how you go about resetting passwords on each of them.

Your cPanel Account

When you first sign-up for your domain and hosting, a cPanel account will be generated that provides you with access to your slice of the colgate.domains Web server. Your cPanel account is automatically associated with your Colgate username. Therefore, your Colgate user name will grant you access to your cPanel account.

Your Application Administrator Accounts

Every time you install a new application in cPanel, an Administrator Account for that application will be created. You will likely use these accounts very often – every time you need to login to your application to manage the associated Web site, you will use this account.

For example, if you install WordPress to manage your Web site, every time you need to add content to WordPress, change your theme, approve comments, etc. you will use this account to login.

Usually, you will be given the opportunity to choose the username and password for that account. We recommend choosing something that you are likely to remember but that is strong and secure.

Upon installation, you will likely receive an email confirming the user-id/password combination you chose. It will also have information about how to access the login page for that application. You may wish to make sure you don’t delete this message.

Depending on the application you’re working with, managing and resetting the password for this account will vary. If you’ve used Installatron (in cPanel) to install the application, however, you can always review the account credentials:

  • Login to cPanel through https://colgate.domains/dashboard/
  • Click the Installatron icon in the Software/Services section.
  • Find the application you installed under My Applications.
  • Click the Edit button (this looks like a blue wrench).
  • Scroll down to find the Administrator Username and Password.

In addition, most applications should have some kind of password reset link on the login page.

Other Types of Accounts

In addition to the three account types outlined above, there are a few other kinds of accounts you may have as part of colgate.domains:

  • FTP: If you set up FTP on your account, you will need to set up an account.
  • Application User Accounts: In addition to the Administrator Account that you set up when installing an application, most applications will also let you set up user accounts.

Signing Up

Review the Guidelines

Before you get started, we recommend that you review our information about Choosing a Domain Name.

The Sign-Up Process

Once you’ve reviewed the guidelines, you can proceed to the sign-up page.

  1. Click the “Get Started” Button
  2. You will be redirected to login for verification. You will use your Colgate username and password to log in.

Colgate Login Enter your Username and Password

Create Your Free Subdomain

  1. Enter the subdomain name you want for your Colgate Domains website. When you’ve found an available subdomain, click the button labeled Click to Continue.
    Continue button
  2. Review your subdomain and contact information. It should be your first name, last name, and Colgate email. Click Sign Up.
    Sign Up button

After you click Sign Up, you will see a page letting you know that your domain is ready. You will then be redirected to the cPanel where you are on your way to creating your own Colgate Domains space.

Choosing Your Domain Name

choose your domain at sites.haverford.edu

Choosing your domain name is the first step in getting started with staking your claim on the web. Your domain name is a unique Web address (e.g. yourname.colgate.domains) that can be used to build out your own digital presence. As you make your choice, there are a few considerations to keep in mind:

Your Domain Name Must Be Available: Domain names must be unique, which means in order for you to claim your own, you need to be sure that it is currently available (and not being used by any one else at Colgate University). There are lots of tools to check on domain availability, and when you sign up on colgate.domains, we’ll actually check the availability of your choice for you. All Colgate Domains domains contain “.colgate.domains,” but when you leave Colgate University, you can migrate your website to another hosting account or company.

Choose a Domain You Can Live With: You should choose a domain name that you feel you can live with for quite some time. You should pick something that you won’t find embarrassing in the future. A good rule of thumb is to pick a domain that you would be comfortable putting on a future job application.

You May Wish to Include Your Name in Your Domain: There is no requirement that your domain reflects your specific identity in the form of your first and last name. However, choosing a domain name that includes your name may make it easier for you to achieve higher rankings in search engines when someone queries your real name.

Pick a Domain you Like: At the end of the day, your domain should reflect you. Pick a domain you like and are proud of. It can reflect your interests, sports you play, or your hobby. Or it could just be your name. The “right” domain for you is the one you’re comfortable with.

Setting Up FTP

There may be times when you need to transfer files to or from your space on your Web server. There are a number of scenarios when this might be necessary:

    • You’re working with an application that allows you to install plugins/extensions, but the files need to be manually moved to the server in order to add them. (Note: This is NOT required with WordPress which allows you to install plugins through the backend in your browser.)
    • You’ve developed a custom site/pages using a Web design program, and you need to upload the files you created to the server

One way to upload files is by using the File Manager that is part of cPanel. However, sometimes you’ll find it easier/necessary to use FTP, or File Transfer Protocol, to move files to the server. This can be particularly useful if you’re working with a web space where you’re not the owner (so you don’t have access to the File Manager in cPanel) or if you need to provide file access to someone else to your space on the Web server.

What exactly is FTP?

File Transfer Protocol is a method that allows you to remotely move files between a Web server and another computer – usually your local/personal computer. Using a pre-defined FTP account (with a username and password), you can configure an FTP client (a program you run on your computer that allows you to transfer files via FTP.

Note: FTP is not a secure protocol!  Your password and all FTP file transfer traffic are not encrypted. You should therefore no

There are lots of FTP clients that you can use; some are free and some are not. A few free ones you might consider:

For the purpose of this tutorial, we’ll show you how to set up FTP in FileZilla, but you should be able to generalize these instructions to use in any FTP client.

Creating/Using Your FTP Accounts

If you need to FTP to your the Web server, or if you’re setting up an FTP account for someone else to use to FTP to your space, you’ll need to start in your cPanel:

    1. Login to your colgate.domains account cPanel
      Colgate Login Enter your Username and Password
    1. In the Search Box at the top of the page, search for “FTP”, and click the FTP Accounts icon that appears.screen shot of FTP accounts
    1. You’ll have the option to create a new FTP account or you can use the default master SSH/SFTP account. To create an account, fill out the Add FTP Account form with a username and password. By default, the new FTP account will be limited to a directory with the same name as the account you’re creating under your public_html (or subdomain) directory but you can change this before creation.
    2. NOTE: FTP is not a secure protocol!  Your password and all FTP file transfer traffic are not encrypted. You should therefore not re-use current passwords here. 
    3. When you’re done, click Create FTP Account.
      Add FTP account window
    1. Once you’ve created the new account, you’ll see it appear in the list at the bottom of the FTP Accounts page.
    2. In addition to this and similar accounts you’ve created, below in the Special FTP Accounts section you’ll see the default FTP Accounts. The username for the first of these accounts corresponds to your cPanel username (not your Colgate account name; you will find the username here but must find the password in your account creation email message). This FTP account has full privileges to access any space on your Web server.
    3. Further, this first Special FTP account can be configured to use the secure SFTP connection method which encrypts passwords and any transferred content.
    1. For whichever account you will be using for, click the Configure FTP Client link.
  1. Write down the username, server, and port information that appears. You will use this (or will provide this to the person you are giving FTP access) along with the password you set in order to configure your FTP client.

Configure FTP in Your FTP Client

Below are links to tutorials for setting up both FileZilla and CyberDuck to connect to you FTP account.

Note: When using the standard, non-secure FTP connection (required for any accounts that you create), FileZilla settings must be changed, even if you use the downloaded configuration file. The protocol for these connections must be simple FTP.

Scalar

Scalar is a content management system with the idea of creating non-linear books on the web.

Installation

  1. To get started you’ll need to login to your control panel (https://colgate.domains/dashboard) using your Colgate username and password.
    screen shot of sites login page
  2. Navigate to the Application section and select Scalar. You can also use the search function as well.scalar installer icon
  3. When you click on the Scalar icon, you will be taken to the Scalar information page. Click install this application.install Scalar
  4. On the next page, fill in the different sections. First in location, decide on the domain or sub-domain for your Scalar site. You can create a sub-domain by following directions in the section Setting up Subdomain. The directory is optional. If you are using a sub-domain, you may not need to use a sub-directory. You can learn more by reading Subdomains vs Subdirectories.Scalar install options--screen shot part 1
  5. In the version section, select to most recent version. By default the installer will automatically backup your website and update it anytime a new version comes out. While we recommend you keep this option, it is possible to only do minor updates, or turn them off completely. The installer will also create a database for you automatically, but if you’ve already created one for this website you can choose Let me manage the database settings and enter the details.
  6. Finally, in Settings, you’ll need to create a username and password for the Scalar install. A password can be generated for you, but you should try to create your own. Enter that information in the inal section and click Install.Scalar install options--screen shot part 2
  7. Once the installer is finished loading, you will be taken to the My Apps section of the dashboard. Here you’ll find links to login to your scalar installation.
    Scalar links via My Apps

Creating a book

To get started in Scalar, you will need to create a book.

  1. Go to your Scalar site via the My Apps link or the Scalar URL you established during the setup process.
    Access Scalar site and click the Sign-in link
  2. Log in to Scalar using the username and password you set up during the installation process.
    log into scalar with your email and Scalar password
  3. Go to the top right corner and click, Dashboard.

    Scalar landing page and dashboard link

  4. Select the My Account tab and at the bottom of the page type in a title for you book. Don’t worry this title can be changed later if needed. Click Create.
    Scalar create new book
  5. You now see your book in the “My books” list. From there you will be able to build your Scalar book.

    Scalar book list

We recommend visiting the Scalar guide (http://scalar.usc.edu/works/guide/index) and the Scalar forums for more support information (http://scalar.usc.edu/scalar/forums/).