主要的東西都放在Server那邊,處理手機客戶端與伺服器資料的溝通。
包含每位學生的學習資料、場地狀況、學習教材。以及處理學習路徑規劃。
- PHP5.3 以上,需要有以下Extension:
- pdo_mysql
- zip
- MariaDB 5.5.31 (可用MySQL)
已將整份專案使用PHPDocumentor產生出開發文件網站
產生指令:
phpdoc -d htdocs/ -t docs/apidocs --ignore htdocs/admin/,htdocs/API/,htdocs/assets/,htdocs/install/,htdocs/template/ --parseprivate --template="zend"
-
$ git clone [email protected]:CHU-TDAP/E-learning-Server.git
Cloning into 'E-learning-Server'... remote: Counting objects: 2275, done. remote: Compressing objects: 100% (820/820), done. remote: Total 2275 (delta 1503), reused 2164 (delta 1393) Receiving objects: 100% (2275/2275), 682.27 KiB | 89.00 KiB/s, done. Resolving deltas: 100% (1503/1503), done. Checking connectivity... done
-
$ cd E-learning-Server
-
$ git submodule init
Submodule 'htdocs/Material' ([email protected]:CHU-TDAP/E-learning-material.git) registered for path 'htdocs/Material'
-
$ git submodule update
Cloning into 'htdocs/Material'... remote: Counting objects: 322, done. remote: Compressing objects: 100% (261/261), done. remote: Total 322 (delta 143), reused 220 (delta 44) Receiving objects: 100% (322/322), 26.76 MiB | 76.00 KiB/s, done. Resolving deltas: 100% (143/143), done. Checking connectivity... done Submodule path 'htdocs/Material': checked out 'aff4987f61755f0f66fe1bf382b4a3250f080344'
-
開啟以下設定檔
- Windows: 到
C:\AppServ\Apache2.2\conf\httpd.conf
- Arch Linux: 到
/etc/httpd/conf/httpd.conf
將
LoadModule rewrite_module modules/mod_rewrite.so
取消註解 - Windows: 到
-
開啟以下設定檔
- Windows: 到
C:\Windows\php.ini
- Arch Linux: 到
/etc/php/php.ini
找到
output_buffering
那行修改成output_buffering = On
。(output_buffering = 4096
也OK)並將
extension=php_pdo.dll
和extension=php_pdo_mysql.dll
取消註解。(Linux請把.so
當成.dll
看待) - Windows: 到
-
啟用本站/重新啟動伺服器:
- Windows:
C:\AppServ\Apache2.2\apache_serviceuninstall.bat
C:\AppServ\Apache2.2\apache_serviceinstall.bat
- ArchLinux:
$ sudo systemctl restart httpd.service
- Ubuntu:
$ sudo service apache2 restart
- Windows:
-
編輯以下文件:
- ArchLinux:
/etc/httpd/conf/extra/httpd-vhosts.conf
- Ubuntu:
/etc/apache2/sites-available/chu-elearning.conf
加入以下內容:
# Chu E-learning Website <VirtualHost *:80> ServerName chu-elearning.yourdomain.name ServerAdmin [email protected] DocumentRoot /srv/http/website/chu-elearning/htdocs DirectoryIndex index.php index.shtml index.html </VirtualHost> <Directory /srv/http/website/chu-elearning/htdocs/> Options FollowSymLinks MultiViews AllowOverride All Allow from All Order allow,deny Require all granted </Directory>
- ArchLinux:
-
啟用本站/重新啟動伺服器:
- ArchLinux:
$ sudo systemctl restart httpd.service
- Ubuntu:
$ sudo a2ensite chu-elearning
$ sudo /etc/init.d/apache2 restart
- ArchLinux:
安裝前請先把/htdocs/config.php
、/htdocs/config/db_config.php
砍掉,若之前有安裝過,請砍掉之前安裝的資料庫
- 請先把
/htdocs/
整個複製到你的網頁空間 - 設定你的網頁伺服器、資料夾權限,允許由網頁伺服器建立檔案(此步可略過,但安裝完後請手動建立安裝完成畫面提到的檔案)
- 打開你的瀏覽器,網址輸入 http://你的網站/install/ 進行安裝,接下來就按照畫面的提示去做
- 安裝完後,為了增加安全性,請刪除
/htdocs/install/
整個資料夾。
- 請先把
/htdocs/
整個複製到你的網頁空間 - 將內附的
chu-elearn.sql
匯入進你的資料庫 - 將
/htdocs/config.sample.php
檔案複製成config.php
,並依你的需求修改。 - 將
/htdocs/config/db_config.sample.php
檔案複製成db_config.php
檔案,並依你的資料庫狀況修改。
- Bootstrap Version 2.3.2
- JQuery v1.10.2
- /htdocs/lib/password.php 的
generatorText($password_len)
函式 - 網站介面套版 Bootstrap
- JQuery
- 網站: http://jquery.com/
- Github: http://github.com/jquery/jquery