Final project repository for Mizzou CS 4320.
Check out our wiki for more information.
The easiest way to deploy our software is through AWS.
From https://aws.amazon.com/ create an EC2 instance running Ubuntu 16.04.
Once you create your instance, the site provides instructions for connecting via command line.
Our project runs using MongoDB Enterprise 3.2.11, so follow this guide to install it on your server.
Then follow this guide to install and switch php from version 7.0 to 5.6 because there isn’t a php mongodb driver for php7.0.
Finally, run sudo apt-get install php5.6-mongo
from the command line to install the driver
Note: This was our eventual solution to correctly configuring the server. Due to the nature of setting up a server, especially if you have not done it before, this may not work exactly right the first time. Troubleshooting may be necessary.
Clone the master branch of this repository.
Using FileZilla, connect to your instance. FileZilla download can be found here.
- Go to File -> Site Manager... -> New Site
- Copy and paste your instance's url into the host field.
- Set Protocol to SFTP.
- Set Logon type to Keyfile.
- Set User to "ubuntu".
- Browse for the .pem keyfile that you downloaded when you created your instance.
- Hit connect.
Run sudo chmod 777 /var/www/html
from the command line.
Remove the "index.html" file located in the /var/www/html
directory on your instance.
Move all the files from the Website_Files
directory of the repository into the /var/www/html
directory.
Access your instance via a web browser and you should be good to go!
To create an admin user for the site, you must edit the "createUser.php" file in Website_Files
.
Note: Once you create an admin account, they can promote other users to admin from the navbar.
- On line 72, uncomment the switch option for an admin user. The file has an instruction comment for it too.
- Using FileZilla, upload the edited "createUser.php" to the site (in
/var/www/html
). - Access the createUser page of the site and create your admin user.
- Comment back out what you uncommented in step 1.
- Using FileZilla, upload "createUser.php" to the site.