Skip to content

Latest commit

 

History

History
executable file
·
43 lines (28 loc) · 1.84 KB

INSTALL.md

File metadata and controls

executable file
·
43 lines (28 loc) · 1.84 KB

Install Guide

(written using Ubuntu as dev server)

Requirements: PHP,MySQL,Git,Screen,grpcurl

  1. Setup an Ubuntu Server (If you use other flavors/OSs, you are on your own)
  2. Ensure there is a LAMP stack on your server and you can access it
    Let's assume your server ip is 192.168.0.1;
    http://192.168.0.1

3a. Install git (sudo apt-get install git)
3b. Install screen (sudo apt-get install screen)

  1. cd to your apache web root folder. (ex: cd /var/www/html)

  2. Run the following command: git clone https://github.com/ChuckTSI/BetterThanNothingWebInterface.git
    Let's assume your install path is /var/www/html/BetterThanNothingWebInterface

  3. Modify the config.inc.php file and update the path to where the repo was installed.
    $_CONFIG["path"] = '/var/www/html/BetterThanNothingWebInterface';

  4. Run the following command: sudo chmod 777 /var/www/html/BetterThanNothingWebInterface/data

    ** if you want to reduce writes to your drive, set up a ramdrive.
    7a (Optional) Create a ramdisk folder in the install folder. mount -t tmpfs -o size=64m tmpfs /var/www/html/BetterThanNothingWebInterface/ramdisk
    7b Run: mount -t tmpfs -o size=64m tmpfs /var/www/html/BetterThanNothingWebInterface/ramdisk

  5. run: sudo crontab -e
    insert the following line:

    */5 * * * * php /var/www/html/BetterThanNothingWebInterface/scripts/cron/php/speedtest.cron.php

You should then be able to access this tool via your browser: http://192.168.0.1/BetterThanNothingWebInterface

Good luck!

Docker

If you don't want to figure that stuff out and are comfortable with docker, you can just run the following:

docker-compose build && docker-compose up -d

Once built and running, you can view the status page at http://localhost/