打開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