Difference between revisions of "PHP Setup"
(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...") |
(→Your own webserver) |
||
Line 24: | Line 24: | ||
https://opensource.com/article/17/3/building-personal-web-server-raspberry-pi-3 | https://opensource.com/article/17/3/building-personal-web-server-raspberry-pi-3 | ||
+ | |||
+ | ===Port Forwarding=== | ||
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. | 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. | ||
+ | ===Dynamic IP Issues=== | ||
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. | 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): | + | DuckDNS Install Instructions (click pi): |
http://http://www.duckdns.org/install.jsp | http://http://www.duckdns.org/install.jsp |
Revision as of 19:36, 12 March 2017
Contents
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
Port Forwarding
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.
Dynamic IP Issues
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.
DuckDNS Install Instructions (click pi):