發表文章

目前顯示的是有「server」標籤的文章

Ubuntu 安裝 Apache2 加上 PAM管理

參考連結: http://blog.xuite.net/gbisland/linux/14229857 ^^注意在新版的Ubuntu 中 安裝套件的指令要修正為: sudo apt-get install apache2 apache2.2-common apache2-utils apache2-doc libapache2-svn subversion http://icephoenix.us/linuxunix/apache-and-http-authentication-with-pam/

CentOS5 安裝 bugzilla 筆記(2): LDAP 帳號認證設定

1  以管理者帳號登入,並進入"Administion->Parameters" 2  選擇「User Authentication」,修改下列參數: user_verify_class:LDAP,DB 此參數設定 Bugzilla 先以 LDAP 進行身份驗證,若驗證失敗則向 Bugzilla DB 進行身份驗證。 3 選擇「LDAP」,修改下列參數: LDAPserver:ldap://IPA.IPB.IPC.IPD/ <輸入 AD 主機的 IP> LDAPbinddn:cn=buguser,ou=Users,dc=company,dc=com:pass123 <輸入可搜尋 AD 資訊的使用者帳號密碼, 如果是匿名登入請保持這個欄位空白> LDAPBaseDN:ou=Users,dc=company,dc=com <輸入欲開始搜尋的根路徑, 依據LDAP server的資訊填入> 4 緊急狀況自救術 如果設定LDAP後發現資訊填錯導致完全無法登入Bugzilla 自然也無法進入後台設定 請修改這個檔案 "/var/lib/bugzilla/data/params" 搜尋 "user_verify_class"  然後把數值改成 'DB', 存檔離開後, 就可以再次登入Bugzilla了  延伸閱讀: CentOS5 安裝 bugzilla 筆記(1) http://riverhippo.blogspot.com/2010/09/centos5-bugzilla.html 架設 Bugzilla 與 AD 帳號整合(適用 Fedora Core 4 及 5 ) http://blog.yam.com/gavint/article/2676451 In Bugzilla, how can I change the password used for LDAP integration if I can’t login? http://rhyous.com/2010/04/19/in-bugzilla-how-can-i-change-the-password-used-for-ldap-integration-if-i-can...

CentOS5 安裝 redmine 1.0.2 筆記

1 增加RubyWorks 的Repo, 把以下內容存成  /etc/yum.repos.d/rubyworks.repo # Link file for RubyWorks yum repository # Place this file in /etc/yum.repos.d [rubyworks] name=RubyWorks baseurl=http://rubyworks.rubyforge.org/redhat/$releasever/RPMS/$basearch enabled=1 gpgcheck=1 gpgkey=http://rubyworks.rubyforge.org/RubyWorks.GPG.key priority=1 2 安裝 Ruby on Rails yum install ruby ruby-devel ruby-libs ruby-irb ruby-rdoc ruby-mysql 3 下載 Ruby Gems 並安裝 wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz tar xvfz rubygems-1.3.7.tgz cd rubygems-1.3.7 ruby setup.rb 4 安裝 Rails gem update -–system gem install rails -v=2.3.5 5 下載 RedMine 主程式 wget http://rubyforge.org/frs/download.php/72627/redmine-1.0.2.tar.gz tar xvzf redmine-1.0.2.tar.gz 6 建立redmine使用者 useradd redmine passwd redmine 7 建立redmine資料庫 mysql -u root -p create database redmine character set utf8; create user 'redmine'@'localhost' identified by 'my_password'; grant all privileg...

CentOS5 安裝 bugzilla 筆記

1 安裝相關必須套件(可能有些是多餘的, 因為後面會自動處理?!): yum install gd gd-devel httpd mysqld gcc g++ make yum  install  perl-XML-Twig ImageMagick-perl mod_perl perl-HTML-Parser perl-Email-MIME-Attachment-Stripper perl-Chart perl-PatchReader perl-Net-LDAP yum install httpd mysql-server 2 安裝bugzilla套件 yum install bugzilla 3 建立 資料庫使用者 bugs useradd bugs passwd bugs 4 建立資料庫 4.1 建立server資料表 CREATE TABLE `servers` ( `Server_name` char(64) NOT NULL, `Host` char(64) NOT NULL, `Db` char(64) NOT NULL, `Username` char(64) NOT NULL, `Password` char(64) NOT NULL, `Port` int(4) DEFAULT NULL, `Socket` char(64) DEFAULT NULL, `Wrapper` char(64) NOT NULL, `Owner` char(64) NOT NULL, PRIMARY KEY (`Server_name`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COMMENT='MySQL Foreign Servers table'; 4.2 建立bugs 資料庫 # mysql -u root –p Enter password: mysql> create database bugs; mysql> use bugs; mysql>GRANT SELECT,INSERT,UPDATE,DELETE,INDEX,ALTER,CREATE, LOCK TABLES,DROP,REFERENCES ON bugs.* TO...