1,234
edits
Changes
→Make a proper PHP webpage
== Make a proper PHP webpage ==
OPS345 is not a web development course, but you should learn a couple of basic things about websites. # An HTML page (which is what your php file generates) really should follow a basic set of rules, even though technically it doesn't have to. The example below is a correctly structured HTML file.# While PHP is primarily used by programmers, you can make good use of it too. In the example below it's used to query your instance's metadata that AWS has but the instance itself does not. * make proper Replace your current contents of /var/www/html page/index.php with this:<source>
<html>
<head>
</html>
</source>
* No need to restart anything after you modify a webpage. Just reload it in Firefox. It should look like this:
[[File:AWSMetadataViaPHP.png|border|center]]
= Remove public IP from the web server =