Mantis VM virtual machine installed under UBUNTU

<< Mantis specification .pdf >>

Reference: http://www.linuxidc.com/Linux/2016-01/127180.htm (second reference main line)

     http://www.jb51.net/article/91098.htm

"Install Package" and "Installing mantis"; Linux

 

Ubuntu under LAMP environment to build the Apache , MySQL , PHP

Reference:  http://www.linuxidc.com/Linux/2016-01/127180.htm

Problems encountered in the installation process:

After installation restart apache2 Apache:

Type sudo will /etc/init.d/apache2 restart the following questions:

apache2: Could not reliably determine the server's fully qualified domain name 解决方法

 vim /etc/apache2/apache2.conf

Finally, adding a ServerName localhost: 80

2. Install location PHP test scripts stored Note:

sudo apt-get install php5 libapache2-mod-php5

Testing PHP

sudo vim /var/www/html/info.php   directory path must be correct.

Writes the following

<?php

 echo phpinfo();

?>

Input 127.0.0.1/info.php or serverIP / info.php

         

Ubuntu under build Mantis

http://blog.chinaunix.net/uid-563939-id-5757398.html (Mantis main reference)

1. Download mantisbt-1.2.19.tar.gz, copied to /var/www/html/mantisbt-1.2.19.tar.gz

2. After decompression, change the file name: mv mantisbt-1.2.19 mantisbt

3. Modify the permissions chmod 777 mantisbt -R

4. Look at /etc/php/5.0/apache2/php.ini "; extension = msql.so" will delete the semicolon in front

5. Access http: //localhost/mantisbt/admin/install.php, you can complete the configuration (the same username to access the database needs to be configured with the installation mysql)

With the Administrator password when registering new users

* If enabled, the user sends the password or password reset (this requires mail settings correctly configured) when you create an account. * If you turn off, the administrator must provide the password to create a new account, password is set to blank when reset. @ Global Integer $ g_send_reset_password

$ G_send_reset_password config_defaults_inc.php found in the file directory under Mantis

Before modifying: $ g_send_reset_password = ON;

Modified: $ g_send_reset_password = OFF;

 

 

Mailbox configuration: /var/www/html/mantisbt/config_defaults_inc.php

g_administrator_email = $ '[email protected]';   // administrator setting mailbox, mailbox configuration can be used to test

$g_webmaster_email                = '[email protected]';

$g_from_email                        = '[email protected]';

$g_from_name                        = '[email protected]';

$g_return_path_email            = '[email protected]';

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;

$g_smtp_host = 'smtp.163.com';

$g_smtp_username = '[email protected]';

$ g_smtp_password = 'BBBB'; // This is the mail service authorization code instead of the mailbox login password ;

163 E-mail authorization code acquisition method:

Reference: https://jingyan.baidu.com/article/495ba841ecc72c38b30ede38.html

E-mail verification:

Mantis comes mailbox validation script http: //localhost/mantisbt/admin/test_email.php

 

/*****************************************************************************

Note : I am not only the configuration above, as well as the following, and in LINUX is not configured in WIndows under Wampserver built Mantis:

php.ini file lookup smtp, to the localhost your sending server, such as SMTP = smtp.163.com, in php.ini find sendmail_from file, remove the semicolon in front of and behind the e-mail address fill

[mail function]

; For Win32 only.

; http://php.net/smtp

SMTP = smtp.163.com

; http://php.net/smtp-port

smtp_port = 25

; For Win32 only.

; http://php.net/sendmail-from

sendmail_from = BBBB@163.com

******************************************************************************/

 

Accessories upload settings:

Reference: http: //www.dedecms8.com/os/linux/49997.html

The default configuration, without making any changes. Upload attachments to the database

 

If you need to save changes to the local DISK, you need to modify the configuration file

/var/www/html/mantisbt/config_defaults_inc.php

$g_allow_file_upload= ON;

g_file_upload_method DISK = $;               # uploaded to your hard drive

$g_max_file_size=52428800;                  #附件大小限制默认为2MB

$g_allowed_files= 'ttxt,jpg,png,jepg,gif,bmp,zip,tar.gz,doc';    #允许上传的文件类型

$g_disallowed_files='exe,com';                    #不允许上传的附件类型

$g_absolute_path_default_upload_folder = '/var/www/html/mantisbt/upload/'; ##注意“/”结尾,此处与Windows环境下的配置不同  #默认的文件上传的绝对路径在Mantis目录下新建目录如 upload ,在Mantis的项目管理中对项目的附件上传路径添上这个路径,比如:/var/www/html/mantisbt/upload/   样上传的文件就会存放在upload目录中。

$g_preview_attachments_inline_max_size=99999; #直接显示任何小于这个字节大小的bmp,png,gif,jpg格式的上传文件。

注意:上传文件的大小受到 Mantis/config_default_inc.php 和 php.ini 的双重限制php.ini 中

Apache

修改:/etc/httpd/conf.d/php.conf

LimitRequestBody 52428800 ###50M

PHP:

修改:/etc/php.ini

post_max_size = 50M;

upload_max_filesize = 50M; ### 所上传的文件的最大大小

 

 

查看上传的附件在upload文件夹下

 

Guess you like

Origin www.cnblogs.com/mickey-double/p/12148688.html