PHP Setup

From TRCCompSci - AQA Computer Science
Revision as of 20:33, 12 March 2017 by Admin (talk | contribs) (Created page with "==Local Option== You can use a webserver which runs on your local machine only. Some options are portable and require little to no installation or setup. Other options could i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Local Option

You can use a webserver which runs on your local machine only. Some options are portable and require little to no installation or setup. Other options could involve installing your own local LAMP, XAMP or WAMP system.

Portable WebServer

You can download a working portable webserver from this link:

http://www.usbwebserver.net/en/download.php

This is quite a simple program to use, and i would recommend it for most students. It works well on your own devices but less well on the college system.

WAMP etc

This essentially is the same as above but you have much more control on settings, versions etc:

http://http://www.wampserver.com/en/


Your own webserver

You can run a local raspberry pi or other webserver and port forward on your router. You can port forward port 80 to the local webserver.

Tutorials:

https://www.raspberrypi.org/documentation/remote-access/web-server/apache.md

https://opensource.com/article/17/3/building-personal-web-server-raspberry-pi-3

Remember never leave ports open other than port 80, ports are regularly sniffed to see what is open. NEVER PORT FORWARD SSH PORT 22 it seems like a good idea to allow you to login to your webserver from anywhere but it is very insecure.

Also you might need to use a service like DuckDNS (like this site) because your IP address might be dynamically allocated by your ISP. DuckDNS uses a script run on a regular basis on your server to update your IP address. You direct people to use the DuckDNS address and it diverts everything to your current IP. Other services are available but DuckDNS is allowed through any college firewall or filtering.

Install Instructions (click pi):

http://http://www.duckdns.org/install.jsp