Resolve Mantis cannot upload attachment issues

Source: Internet
Author: User

1. Modify the mantis/config_inc.php configuration file
$g _allow_file_upload = on;
$g _file_upload_method = DISK;
Add these two lines manually.

Mantis installation path: Var/www/mantis

2. Add upload_max_filesize = 10M in php.ini

Step: Search php.ini file path, under etc Search:

Find. -type F | Xargs grep "PHP.ini"

Search out the path is:/etc/php5/apache2

3, in the Mantis directory under the new directory, such as upload, and then in the mantis set up the file upload path set to "Upload" (in the web to enter Mantis, access management-project management-Open the project-upload file storage path:/var/www/ mantis/upload/). The uploaded files are then stored in the upload directory.

Change the Upload folder to share permissions: chmod 777 Upload

Resolve Mantis cannot upload attachment issues

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.