Knowledge Base

PHP Web Hosting on cPanel

Getting Started

Create a cPanel Account

  1. Go to https://support.sse.reading.ac.uk/forms/cpanel/ – you may be asked to authenticate, Give your University username and password (please note: you will need to prefix your ITS username with “rdg-home\” i.e. rdg-home\ab012345) .
  2. Click PHP Hosting
  3. Click Create cPanel Account
  4. Enter a password you want to use for your account (Min 8 Characters, At least one letter and one number)
    Click Submit
  5. Wait for the page to return a verdict on the success of your account creation
  6. Once your account has been created you can log into the management portal and explore the options available

 

Howto’s

Transfer files to/from my account

You can transfer files using any of the following three services;

FTP

This service is currently turned off due to a large number of brute force attacks.

File Transfer Protocol is a network protocol used to transfer data between computers over the network/internet.

You can transfer files to your cPanel account using any FTP program that supports authentication. When connecting you will need the following information:

Transferring files with “core FTP” : WATCH THE DEMO

WebDAV

Please note: WebDAV from Vista/7 is very unreliable!

Web-based Distributed Authoring and Versioning is a set of extensions to the Hypertext Transfer Protocol that allows users to edit and manage files on remote server.

Most modern operating systems provide built-in support for WebDAV. To make a WebDAV connection from Windows, Linux or MacOS(10.4+);

  1. Login into the management portal
  2. In the “Files” section, Click “Web Disk
  3. In the “Web Disk Account Management” section, Click the “Access Web Disk” button
  4. Follow the on-screen instructions

On-line “File Manager”

A web based file manager

  1. Login into the management portal
  2. In the “Files” section, Click “File Manager”
  3. Select the directory to open and Click Go

For a detailed look at File Manager, see this Video Tutorial

Setup/Manage a MySQL Database

Setup via MySQL Wizard

  1. Login into the management portal
  2. Follow this Video Tutorial

Setup/Manage Manually

  1. Login into the management portal
  2. Follow this Video Tutorial

Create a Subdomain

You may want to create a subdomain if you wish to put a project into a separate area. I.e http://project1.ab012345.webs.sse.reading.ac.uk

  1. Login into the management portal
  2. Follow this Video Tutorial

Password Protect Directories

Learn how to limit access to a certain part of your site by requiring a user name and password to access a folder or folders from the web.

  1. Login into the management portal
  2. Follow this Video Tutorial

Take a Backup

Download (to your computer) a zipped copy of either your entire site (your home directory, databases) or one of the previously mentioned parts of your site.

  1. Login into the management portal
  2. Follow this Video Tutorial

Install WordPress

  1. Login into the management portal
  2. In the “Software / Services” section, Click “Site Software
  3. In the “Blogs” section, Click “WordPress” button
  4. Follow the on-screen instructions

WATCH THE DEMO

Send Email from a PHP script

A lot of code out there uses the php mail() function to send mail. You will see code like

This will work but by default the mail server on the cpanel site sends email from nobody@cpanel.sse.reading.ac.uk and if you do not specify a FROM address people will not be able to reply to you.

Using Native PHP Mail Function