server code for group project app
All code on server and backups are located in this repo.
Setting up the server for use with the app located bellow
-
use any machine that has a ubuntu partition on it
- Video link to setting up Ubuntu partition for reference
- boot into a usb flash drive that has been formated with ubuntu and follow instructions to install
- boot into a usb flash drive that has been formated with ubuntu and follow instructions to install
- Video link to setting up Ubuntu partition for reference
-
set up a LAMP(Linux Apache MySQL Php) server on the machine that is hosted on localhost
- Video link to setting up LAMP server for reference
- summary of video
- open terminal and update to latest Ubuntu packages
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get update
- install tasksel
- sudo apt-get install tasksel
- sudo apt-get install tasksel
- run tasksel and select the 'Basic Ubuntu server,' 'LAMP server," and 'print server' options and hit 'ok'
- follow prompts to set up passwords while tasksel sets up and installs the packages
- follow prompts to set up passwords while tasksel sets up and installs the packages
- install phpMyAdmin
- sudo apt-get install phpmyadmin
- sudo apt-get install phpmyadmin
- give your user (Ubuntu user) all rights to edit the /var/www/html/ directory
- sudo chown -R %UbuntuUser%:www-data /var/www/html/
- sudo chmod 775 /var/www/html/
- sudo chmod g+s /var/www/html/
- switch to /var/www/html/ directory and run umask
- cd /var/www/html/
- umask
- if you get 0002 back permissions are set up correctly
- if you get 0002 back permissions are set up correctly
- cd /var/www/html/
- sudo chown -R %UbuntuUser%:www-data /var/www/html/
- open terminal and update to latest Ubuntu packages
- Video link to setting up LAMP server for reference
-
add the function calls to the server
- copy the files from this github repo into the /var/www/html/ directory
- edit the $connection vars in all files to the login info you created for your MySQL admin
- open firefox on the server
- go to localhost/phpmyadmin
- login and select import table
- import the MySQLBuild.sql file
- go to localhost/phpmyadmin