使用者工具

網站工具


tech:install_owl

安裝 OWL 檔案 web 分享管理系統(尚未完成)

  • OS : CentOS release 5.4 (Final)
  • apache : httpd-2.2.3-31.el5.centos.2
  • mysql : mysql-5.0.77-4.el5_4.1
cd /var/www/html
wget http://downloads.sourceforge.net/project/owl/Owl/Owl%200.9x/owl-0.96.tar.gz?use_mirror=ncu
tar -zxvf owl-0.96.tar.gz
mv owl-0.96 owl
 
wget http://ncu.dl.sourceforge.net/project/owl/Owl%20Language%20Packs/Owl%200.9x/Owl-0.9x-locale-Chinese_b5.tar.gz
tar -zxvf Owl-0.9x-locale-Chinese_b5.tar.gz
mv Chinese_b5 owl/locale/Chinese
 
chown -R apache:apache owl
cd owl
mysqladmin -p create intranet
mysql -p intranet < DOCS/sql/mysql-tables.sql
  • 透過 phpMyAdmin 新增 user : intranet 並將 db : intranet 的完整權限指定給 intranet
vi config/owl.php
:
$default->owl_root_url          = "/owl";
:
$default->owl_lang = "Chinese";
:
:
$default->owl_db_id[0]           = "0";
$default->owl_db_user[0]           = "intranet";
//$default->owl_db_user[0]           = "postgres";
$default->owl_db_pass[0]           = "xxxxxxxx";
$default->owl_db_host[0]           = "localhost";
$default->owl_db_name[0]           = "intranet";
$default->owl_db_display_name[0]   = "Intranet";
:
  • 解決中文問題
cd DOCS
wget http://blog.orz101.net/attachments/2008/10/utf8_list_valid_chars.zip
unzip utf8_list_valid_chars.zip
 
vi config/owl.php
:
#$default->list_of_valid_chars_in_file_names
include($default->owl_fs_root ."/DOCS/utf8_list_valid_chars.php");
vi download.php
:
      $filename = rawurlencode($filename);
   }

   #header("Content-Disposition: attachment; filename=\"$filename\"");
   $str = $download_name;
   $str_result = mb_convert_encoding($str,"big5","utf-8");
   header("Conent-Disposition: attachment; filename = \"$str_result\"");

   header("Content-Location: $filename");
:

參考網頁

tech/install_owl.txt · 上一次變更: 2010/02/08 18:51 由 jonathan