Giter VIP home page Giter VIP logo

probability-theory-course-web's Introduction

CourseWeb

courseweb is an open php website for The Probability Theory course.

Requirement

To run couseweb, we need:

  • Apache
  • php
  • mysql

In short, our development environment is LAMP (Linux + Apache + Mysql + php). Usually, the order of setting up these software/source is apache --> mysql --> php.

Apache

To build apache, we need apr, apr-util, pcre:

  1. apr:
./configure --prefix=/usr/local/apr
make
sudo make install
  1. apr-util:
./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/apr
make
sudo make install
  1. pcre
./configure --prefix=/usr/local/pcre
make
sudo make install

Now we can install apache:

./configure --prefix=/usr/local/apache2 --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre
make
sudo make install

Next, you can customize your Apache HTTP server by editing the configuration files under PREFIX/conf/, such as ServerAdmin, ServerName.

Finally start up the apache: APACHEROOT/bin/apachectl -k start, You should then be able to request your first document via the URL http://127.0.0.1/.

Mysql

It's convenient to install mysql by referring to http://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/. download the dev file, then:

sudo apt-get update
sudo apt-get install mysql-server

PHP

http://php.net/manual/zh/install.unix.apache2.php. version: 5.6

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysqli
make
sudo make install

copy the configure:

cp php.ini-development /usr/local/lib/php.ini

change a configure in php.ini,

upload_max_filesize = 30M  //any size you need
post_max_size = 0M

modify the configure of apache, add:

LoadModule php5_module modules/libphp5.so
<FilesMatch \.php$>
    SetHandler application/x-httpd-php
</FilesMatch>

Restart your apache.

Write a test.php:

<?php
    phpinfo();
?>

To confirm whether success, input 127.0.0.1/test.php.

Install

cd APACHEROOT/htdocs
git clone [email protected]:TBXChina/courseweb.git
cd courseweb

customize your courseweb

vim include/configure.php include/new_configure.php

In your browser, input 127.0.0.1/courseweb/setup.php.

Enjoy! Don't forget to remove the setup.php and replace the include/configure.php by include/new_configure.php!

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.