Giter VIP home page Giter VIP logo

mflux's Introduction

LICENSE

GPL V3. Copyleft 2014 to 2022 Forrest Sheng Bao et al.

SETUP

Assume root directory is /var/www/mflux.

Python environment

  1. sudo apt-get install python-dev
  1. sudo python3 -m pip install scikit-learn python-constraint sympy # need to be installed to system paths
  2. regenerate all models by running python get_model.py

Web server

sudo apt install apache2
sudo a2enmod cgi

Besure that cgi.conf and cgi.load are under /etc/apache2/mods-enabled

Add the following content to /etc/apache2/apache2.conf:

<Directory "/var/www/mflux">
AllowOverride None
Options +ExecCGI 
Require all granted
Allow from all
AddHandler cgi-script .py              # tell Apache to handle every file with .py suffix as a cgi program
AddHandler default-handler .html .htm  # tell Apache to handle HTML files in regular way
</Directory>

Be sure that DocumentRoot is set under /etc/apache2/sites-enabled, like

        DocumentRoot /var/www/mflux

And restart the web server:

sudo systemctl restart apache2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.