13,420
edits
Changes
no edit summary
It may seem obvious - but notice that the time doesn't change as you refresh the page.
=== PHP ===
We'll replace our '''index.html''' file with an '''index.php''' with the following contents:
Refresh the page, notice that you now see the date instead of the call to the date command. This is a trivial example of dynamic web content - it doesn't need to be the same every time you look at it.
=== MySQL ===
MySQL is used to allow storage and retrieval of structured data. SQL is used by countless services for all kinds of use cases. Again we won't spend much time learning the details of MySQL configuration but you need a basic server set up. You may remember setting up MySQL from OPS235 - we're doing the nearly identical thing here.
Note that MySQL has two root passwords - one for localhost and one for external requests. Just run the two commands you're given in the log. Use a password you make up yourself, but don't use a secret password - you'll be putting it in a plain text file later.
= = INVESTIGATION 2: INSTALL, CONFIGURE & RUN WEBMAIL APPLICATION (Roundcube Mail ) ==
We'll install Roundcube Mail. Download the tarball from their website directly into the html directory of your vm4 using wget. This part may take some effort depending on the Sourceforge website.