打开mantis地下的config_inc.php.samp文件。同样的更名为config_inc.php。其实就是config_default_inc.php内容的缩短版,具体能够先看deafult里面的内容。 里面的原貌是: # --- database variables --------- # set these values to match your setup $g_hostname = "localhost"; $g_db_username = "root"; $g_db_password = ""; $g_database_name = "bugtracker"; $g_db_type = "mysql"; # --- email variables ------------- $g_administrator_email = 'administrator@example.com'; $g_webmaster_email = 'webmaster@example.com'; # the "From: " field in emails $g_from_email = 'noreply@example.com'; # the return address for bounced mail $g_return_path_email = 'admin@example.com'; # --- file upload settings -------- # This is the master setting to disable *all* file uploading functionality # # The default value is ON but you must make sure file uploading is enabled # in PHP as well. You may need to add "file_uploads = TRUE" to your php.ini. $g_allow_file_upload = ON; 能够进行修改: # --- database variables --------- # set these values to match your setup $g_hostname = 'localhost'; $g_db_username = 'mantis'; $g_db_password = 'mantis'; $g_database_name = 'bugtracker'; $g_db_type = 'mysql'; $g_default_language ='chinese_simplified'; $g_window_title = 'mantis BUG管理系统'; $g_page_title = '欢迎使用Mantis BUG '; $g_show_queries_count = OFF; # --- email variables ------------- $g_use_phpMailer = ON; #使用phpMailer $g_phpMailer_path = 'C:/EasyPHP 2.0b1/php5/phpmailer'; //phpMailer路径(由于用的是xampp安装,因此默认不 须要在装个右键发送的,直接写邮箱的设置就能够) $g_phpMailer_method = 2; #使用SMTP服务 $g_smtp_host = 'smtp.163.com'; #使用SMTP服务 $g_smtp_username = 'fanxin1029'; $g_smtp_password = 'XXXXXX'; $g_administrator_email = 'fanxin1029@163.com'; $g_webmaster_email = 'fanxin1029@163.com'; $g_from_email = 'fanxin1029@163.com'; $g_return_path_email = 'fanxin1029@163.com'; # --- file upload settings -------- $g_allow_file_upload = ON; //使用上传文件功能 $g_file_upload_method = DISK; $g_max_file_size = 100000000; # 100 MB #设置文件空间 # --- jpgraph settings -------- $g_use_jpgraph = ON; 使用jpgraph $g_jpgraph_path = 'C:/EasyPHP 2.0b1/php5/jpgraph-1.21b/src/'; 指定jpgraph的路径 $g_graph_font = 'chinese_gbk'; 设置jpgraph图形字体 # --- time settings -------- $g_short_date_format = 'Y-m-d'; $g_normal_date_format = 'Y-m-d H:i'; $g_complete_date_format = 'Y-m-d H:i';
http://www.blogjava.net/qileilove/archive/2011/10/27/362169.htmlphp