Solution for Discuz being unable to upload images after PHP environment configuration

Source: Internet
Author: User
Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.

Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.

Today, a server is configured in the PHP environment. After Discuz is installed, the image cannot be uploaded successfully. Tip: A total of one file fails to be uploaded after the file is uploaded.


After trying other programs, you cannot upload images. It seems that the PHP environment configuration is still a problem. The solution is simple:


1. find the php. ini file;


2. find upload_tmp_dir and remove the comment and set an address, for example:


Upload_tmp_dir = D: \ temp


3. set the temp folder to be the same as the website user;


For example, if the user accessing the website is IUSR_aaa, the temp folder will also be given the same user permission;


4. restart iis


5. log on to the discuz background as an administrator and click "Tools> update cache" to upload images again!


Analysis: because it is a server, the permission settings are strict. Generally, this problem does not occur on your computer, because it is basically the permission of everyone.

 

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: [email protected] 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.