cd /var/www/html wget http://sourceforge.net/projects/mantisbt/files/mantis-stable/1.2.15/mantisbt-1.2.15.tar.gz/download tar xvf mantisbt-1.2.15.tar.gz mv mantisbt-1.2.15 mantis chmod 777 -R mantis
mysql -u root create database mantis; grant all privileges on mantis.* to fang@'%' identified by 'fang'; flush privileges; exit;
http://ip/mantis/admin/install.php 数据库地址:ip 账号:fang 密码:fang 数据库名:mantis 账号:fang 密码:fang 填入基本信息,在提交的时候可能报错 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' 解决方式,给个链接:ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock 配置的时候很容易错误,确定造作正确的话,多试几遍就好了。
cd /var/www/html/mantis vim config_inc.php 复制这5行内容 <?php $g_hostname = 'xxx.xxx.xxx.xxx'; $g_db_type = 'mysql'; $g_database_name = 'mantis'; $g_db_username = 'fang'; $g_db_password = 'fang'; ?> rm -rf config_inc.php // 删除临时配置文件 cp config_inc.php.sample config_inc.php // 复制一个配置文件样板 vim config_inc.php // 黏贴,替换 样板中相应的5行
解决方式:在config_inc.php中加上 $g_default_timezone='UTC';
解决方式,防止以后用到这个目录,暂时将他重命名就行了 ce /usr/local/apache/htdocs/mantis/ mv admin admin_back
解决方式:在config_inc.php中加上 $g_default_language = 'chinese_simplified';
/usr/local/apache/htdocs/mantis vim config_inc.php 添加如下几行 $g_login_method = LDAP; $g_ldap_server = 'ldap://localhost'; $g_ldap_root_dn = 'ou=People,dc=1v,dc=cn'; 所有用户的根后缀 $g_use_ldap_email = ON;
vim config_inc.php vim config_defaults_inc.php 在这2个文件的最后加上(只有放在最后才能覆盖前面这些参数的默认值) $g_phpMailer_method = PHPMAILER_METHOD_SMTP; $g_smtp_host = 'smtp.exmail.qq.com'; # used with PHPMAILER_METHOD_SMTP $g_smtp_username = 'luxfang@1v.cn'; # used with PHPMAILER_METHOD_SMTP $g_smtp_password = '******'; # used with PHPMAILER_METHOD_SMTP $g_administrator_email = 'luxfang@1v.cn'; $g_webmaster_email = 'luxfang@1v.cn'; $g_from_email = 'luxfang@1v.cn'; # the "From: " field in emails $g_return_path_email = 'luxfang@1v.cn'; # the return address for bounced mail
对ldap的更多支持见:http://www.mantisbt.org/wiki/doku.php/mantisbt:active_directory