Changes

Jump to: navigation, search

OPS335 Lab 5

108 bytes added, 13:23, 21 July 2016
m
Clarifying instructions for page that accesses database.
*Since this test will involve storing the database password in a plain-text html file, we want to make sure no one else can access it.
*Modify the Directory statement for your private directory to prevent any machine other than your vm1 from accessing it.
*Re-start the web-server and try to access the page from another machine. Make sure that you can '''not ''' do so before you continue.*Install the '''php-mysql''' module so that the installation of php your web server is using can execute sql statements. You will have to restart the service after intalling installing it.*Create a page like the one described [http://php.net/manual/en/mysqli.quickstart.connections.php here] to test that your web server can connect to the database (replace the user, password, and database with values appropriate for your machine). Note that only the first connection (using '''localhost''') on that page should be able to connect.
*once that page shows a successful connection on your VM this step is complete.
932
edits

Navigation menu