安裝 open conference system 中文版日誌

網路與網站相關議題和知識
回覆文章
dtchang
Site Admin
文章: 84
註冊時間: 2017-01-22, 16:54

安裝 open conference system 中文版日誌

文章 dtchang » 2018-03-13, 00:11

(註記: 不清楚布丁版是否有自動安裝的功能)
1. 下載原始版本的 open conference system (ocs)
https://pkp.sfu.ca/ocs/
實作時版本為 ocs 2.3.6 (2014年版)
2. 下載 open conference 中文版(布丁版)
google: open conference 中文版
http://blog.pulipuli.info/2016/02/open- ... ction.html
載點使用:
https://github.com/pulipulichen/ocs
實作時為 2016 年版本

3. 建立空的資料庫 ocs, 並建立 ocs 使用者帳號 (localhost)(ocs/ocs)並授權
4. 執行布丁版下的 database-xxxx.sql (布丁版有新加幾個欄位)
4. 先安裝原始版(勾選不用新建資料庫的資料)並啟動成功後, 設為 Alias /ocs2/
5. 安裝 布丁版, 設為 /ocs/
6. 弄好後即可使用 布丁版的 ocs 來操作系統
7. 布丁版使用到 .htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|docs|files|help|lib|styles|web-demo|LICENSE|public|plugins|favicon\.ico|robots\.txt)
RewriteRule ^(.*)$ /ocs/index.php/$1 [L]
Header set Access-Control-Allow-Origin "*"

使用布丁版時需要 rewrite 和 header 功能,需打開這二個 module
<Directory /home/ocs>
Options FollowSymLinks Includes ExecCGI
AllowOverride All
DirectoryIndex index.html index.htm index.php
</Directory>
-------------------------------------------------
以下為 Virtual host 的 vhost 參考設定

<Directory /home/drupal_1>
Options FollowSymLinks Includes ExecCGI
AllowOverride All
DirectoryIndex index.html index.htm index.php
</Directory>
<Directory /home/movies>
Options FollowSymLinks Includes ExecCGI
AllowOverride All
DirectoryIndex index.html index.htm index.php
</Directory>
<VirtualHost 192.168.100.142:80>
ServerAdmin serveradmin@bbgi.com
DocumentRoot /home/drupal_1
ServerName mysite.com
ServerAlias http://www.mysite.com
Alias /movies /home/movies/
ErrorLog /var/log/httpd/mysite.com_err_log
CustomLog /var/log/httpd/mysite.com_log special

# Rewrite Rules #####################
RewriteEngine On
RewriteRule ^/webmedia/(.*) / [R=301,L]
# end Rewrite Rules #################
</VirtualHost>

回覆文章