Forum Moderators: phranque
Welcome to WebmasterWorld!
From the Apache documentation at [httpd.apache.org...] - VirtualHost Examples:
However, it is additionally useful to use * on systems where the IP address is not predictable - for example if you have a dynamic IP address with your ISP, and you are using some variety of dynamic DNS solution. Since * matches any IP address, this configuration would work without changes whenever your IP address changes.
Once this is configured, you can always access your own machine by the address 127.0.0.1 -- This IP address is universally defined to mean, "this computer here, the one that this keyboard plugs into."
Jim
You have set yourself a big project, and you can save yourself months of frustration by spending the next three weeks reading all of the Apache documention, as well as the documentation for the PHP and MySQL packages that you wish to install. There really aren't any shortcuts.
For a dynamic-IP situation like yours, the most basic steps are:
Register a domain name.
Point the domain name to your IP address (dyndns)
Configure your server to listen to port 80 on all IP addresses
Get your server working (Apache only)
Add or enable PHP and MySQL and get those working
Don't bother to start any of this until you check your ISP's terms of service -- Many ISPs do not allow customers to run servers on their networks, and will block those servers and terminate your internet service if you do so. This is because their networks are designed to support much more 'download bandwidth' than 'upload bandwidth.' While this works fine for clients (Web browsers) which send only a little data and receive a lot of data (a 10-to-1 ratio is typical), the situation is entirely reversed if you run a server, and can have a severe impact on their network. So check their terms of service first.
Jim