轉到正文

YHLin.tw blog

If I have seen further it is only by standing on the shoulders of giants

1.
SVN加入LDAP(CentOS DS)設定方式
假設LDAP為 dc=tpe, dc=abc, dc=com,上有一OU為fae
vi /etc/httpd/conf.d/subversion.conf

<Location /svn/>
DAV svn
SVNParentPath /usr/local/svn/
SVNListParentPath On
AuthzSVNAccessFile /etc/httpd/conf.d/svnaccess
AuthzLDAPAuthoritative off
AuthType Basic
AuthBasicProvider ldap
AuthName “tpe.abc.com 2″
AuthLDAPURL “ldap://localhost/ou=fae,DC=tpe,DC=abc,DC=com?uid”
Require valid-user
</Location>

2.新增一專案,ex: pandora

cd /usr/local/svn/
svnadmin create pandora
chown -R apache:apache pandora

3.設定權限,使用LDAP account/password
vi /etc/httpd/conf.d/svnaccess
[groups]

fae = daniel.lin,sam.wang,jeff.fang

[/]
* =
daniel.lin = rw

[pandora:/]
daniel.lin = rw

Ans: After login bugzilla,go to Administration=>Parameters=>Administrative Policies

Set allowbugdeletion to ON.

allowbugdeletion
The pages to edit products and components can delete all associated bugs when you delete a product (or component). Since that is a pretty scary idea, you have to turn on this option before any such deletions will ever happen.

Q: After install the KnowledgeTree, open browser point to your knowledgetree(ex: http://localhost/knowledgetree/
but appear the following error message.


Warning
: include_once(DB/.php) [function.include-once]: failed to open stream: No such file or directory in /usr/share/knowledgetree-ce/thirdparty/pear/DB.php on line 371

Warning: include_once() [function.include]: Failed opening ‘DB/.php’ for inclusion (include_path=’/usr/share/knowledgetree-ce/search2:/usr/share/knowledgetree-ce/ktapi:/usr/share/knowledgetree-ce/thirdparty/xmlrpc-2.2/lib:/usr/share/knowledgetree-ce/thirdparty/simpletest:/usr/share/knowledgetree-ce/thirdparty/Smarty:/usr/share/knowledgetree-ce/thirdparty/pear:/usr/share/knowledgetree-ce/thirdparty/ZendFramework/library:.:/usr/local/zend/share/ZendFramework/library:/usr/local/zend/share/pear:/usr/share/knowledgetree-ce/thirdparty/pear’) in /usr/share/knowledgetree-ce/thirdparty/pear/DB.php on line 371

Warning: Cannot modify header information - headers already sent by (output started at /usr/share/knowledgetree-ce/thirdparty/pear/DB.php:371) in /usr/share/knowledgetree-ce/config/dmsDefaults.php on line 315

Answer:
To edit the knowledgetree/config/config-path file and remove all lines except for the one pointing to your actual config.ini path (in this case: /etc/knowledgetree/config.ini).

Bugzilla 4.0 RC1 released on 2/11,2010,跟著眾多bugzilla 分支release.

從Bugzilla 3.7版以來,就不再使用CVS,而是改用bzr ,所以我們就直接用bzr來安裝

Step 1

#bzr co -r tag:bugzilla-4.0rc1 bzr://bzr.mozilla.org/bugzilla/4.0 bz-4.0rc1
上述指令執行後會產生一個 bz-4.0rc1  folder

Step2
#cd bz-4.0rc1
#./checksetup.pl
#/usr/bin/perl install-module.pl –all
直接將全部perl modules 安裝起來

Step3
設定Apache for Bugzilla 4.0RC1

#vi /etc/httpd/conf/httpd.conf

Alias /bugs40 “/var/www/html/bugzilla/bz40rc1/”
<Directory “/var/www/html/bugzilla/bz40rc1″>
AddHandler  cgi-script  .cgi
Options +Indexes +ExecCGI
DirectoryIndex index.cgi
AllowOverride All
</Directory>

Step4
重點在於目錄下AllowOverride All的設定,目前設定成All可以讓apache access .htaccess 檔
之前設定為(舊bugzilla 都一樣)AllowOverride Limit時,會造成
500 Internal Server Error,這部份安裝時要小心.

Step5
Open browser,visit http://localhost/bugs40
應該就可以看到全新的Bugzilla 4.0 RC1 的UI了.

Question:

The problem appear when I am inside a folder and then I click over the link “Bulk Download” or “Download All”. The system go to the url:
http://www.myserver.com/dms/action.php? … olderId=84

and kt says:
——————-
Creating zip file. Compressing and archiving in progress …
Warning! Please wait for archiving to complete before closing the page.
Note: Closing the page before the download link displays will cancel your Bulk Download.
——————-

But  nothing happen !

Answer:

Under the administration ->system configuration->general settings
In the export section ,changed to false the option “Use Bulk Download Queue”.

If you take over Bugzilla server or want to assign somebody as the administrator.

C:\Bugzilla> ./checksetup.pl –make-admin your.admin.email@yourdomain.com

The default testlink 1.8.5 upload attachment is 1MB,if you want to upload more than 1 MB,please change

testlink folder\config.inc.php

and find the $tlCfg->repository_max_filesize

$tlCfg->repository_max_filesize = 5; //MB

# cd ~bugzilla/skins/standard
# vi index.css

/* Hide from NN4 */
div#page-index .intro
{
width: 250px;
height: 200px;

margin-top: 2.3em;
margin-right: 2.3em;
float: right;

background: transparent no-repeat url(index/front.png);
}

把front.png(那個螞蟻bug 圖案)改成自己想要的即可.

CentOS Directory Server就是 RedHat Directory Server,網路上看到較多是 openldap,其實centos 內建就有.
其實這篇主題很簡單,就是給一篇教學,裡面很詳細,照著設定就能把 CentOS Directory Server(LDAP)設定好.

1.Setting up CentOS Directory Server on CentOS 5.4

2.Red Hat Directory Server Documentation

最主要還是要整合帳號,之後再來整合samba server.

要更改MySQL root password如下

[CentOS 5]

#service mysqld stop
#mysqld_safe –skip-grant-tables&
#mysql
mysql> update mysql.user set password=PASSWORD(’1234′) where user=’root’;  (Change password to 1234)
mysql> flush privileges;
mysql> quit
#service mysqld restart

[Windows]

1. 請將mysql server shutdown請察看工作管理員內「處理程序」是否
仍有
mysqld-nt程式存在。

2. 開啟終端機,輸入mysqld-nt -u root –skip-grant-tables &

3. 輸入mysqlenter(因為忽 略權限資料表,所以此時不需輸入帳號密碼)

4. 輸入use mysql; (使用mysql資料庫, 請記得後面的;

5. 輸入UPDATE user SET password=password(’1234′) where user=’root’; (變更root密碼為1234

6. 輸入FLUSH PRIVILEGES;(將立即更新,若無輸入此行,則當您重新啟動mysql才會更新)

7. 輸入exit;(離開mysql畫面)

8. 請將mysqld-nt關閉,請 察看工作管理員內「處理程序」是否仍有mysqld-nt程式存在。

9. 重新啟動mysql server

10. 測試密碼: mysql -uroot -p

ref: http://www.cyberciti.biz/tips/recover-mysql-root-password.html