1. (required)搭建httpd+mysql+php
可选方法:yum install xxx,比如(copy form. history):J
15 yum install mysql mysql-server
16 yum install php php-*
17 yum install php-gd
18 yum -y install mysql-connector-odbc mysql-devel libdbi-dbd-mysql
19 yum -y install httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql php-mcrypt php-gd php-xml php-mbstring php-ldap php-pear php-xmlrpc mysql-connector-odbc mysql-devel libdbi-dbd-mysql
20 yum install ntp httpd mysql-server php php-mysql php-mbstring rpm-build gcc mysql-devel openssl-devel cyrus-sasl-devel pkgconfig zlib-devel phpMyAdmin pcre-devel openldap-devel postgresql-devel expect libtool-ltdl-devel openldap-servers libtool gdbm-devel pam-devel gamin-devel postfix
21 yum install php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-eaccelerator php-magickwand php-magpierss php-mapserver php-mbstring php-mcrypt php-mhash php-mssql php-shout php-snmp php-soap php-tidy curl curl-devel perl-libwww-perl ImageMagick libxml2 libxml2-devel phpmyadmin
(有时间可精简下)
Php version upgrade:
yum --disablerepo=* --enablerepo=c5-testing check-update php*
yum --disablerepo=* --enablerepo=c5-testing update php*
2. (optional)优化下os
方法各异,可参照自己方法设置,或参考此处:http://www.zftown.com/centos/index.html
3. (required)下载mantis,解压
[root@mantis2 home]# ll /var/www/html/
total 0
lrwxrwxrwx 1 root root 20 Jan 21 13:05 mantis -> /home/mantisbt-1.2.3
这不是方法,供参考
进入http://yourip/mantis/admin/install.php
把需要改的目录权限改好
添加config_inc.php文件
4. (required)设置LDAP
这样设置即可: config_inc.php
<?php
$g_default_language = 'chinese_simplified';
$g_logo_image = 'images/xxx.gif';
$g_webmaster_email = 'xxx@xxx.com'; #change to what you wantJ
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = '';
$g_login_method = LDAP;
$g_ldap_protocol_version = 3;
$g_ldap_server = 'ldap://192.168.100.14/';
$g_ldap_port = '389';
$g_ldap_organization = '';
$g_use_ldap_email = 'OFF';
$g_validate_email = 'OFF';
$g_ldap_uid_field = 'sAMAccountName';
$g_ldap_root_dn = 'OU=开发部,OU=SH,OU=1_UserAccount,DC=xxx,DC=com';
$g_ldap_bind_dn = 'CN=temp001,CN=Users,DC=xxx,DC=com';
$g_ldap_bind_passwd = 'xxxx';
?>
5. (required)添加fonts
Google msttcorefonts-2.0-1.noarch.rpm:
wgethttp://physics.bgu.ac.il/DOWNLOADS/RPMs/msttcorefonts-2.0-1.noarch.rpm
rpm -ivh msttcorefonts-2.0-1.noarch.rpm
6. (required)admin权限
Login with your domain account;
Change config_inc.php and comment$g_login_method = LDAP;
Login with administrator and change your domain user to admin.
Change back config_inc.php