Php Warning: Unknown: open (C: \ WINDOWS \ TEMP \ error Solution

Source: Internet
Author: User

Www.2cto.com: In a word, the Temporary Folder permission is insufficient. Add the Temporary Folder write permission to the anonymous web account or group.

 

I just installed php in IIS. After the installation is complete, the test is displayed on the page, but the following error occurs at the bottom of the page:

Warning: Unknown: open (C: \ WINDOWS \ TEMP \ sess_e8digff7draam519u52941s7u7, O_RDWR) failed: Permission denied (13) in Unknown on line 0

Then I went online to Baidu. I only had one or two answers, all of which were about folder permissions, but the solution was too complicated. I 'd like to share my approach below.

First Open C: \ WINDOWS, because the prompt is C: \ WINDOWS \ TEMP \ This folder does not have the write permission, then we find the TEMP folder right-click -- "properties --" security, as shown in

In this case, we can add two IIS accounts and grant the write permission

Once again, haha, it's normal. Of course, you can also create a temporary directory on your own, but configuring the php. ini file is troublesome, and other problems may also occur if the configuration is not good.

Related Article

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.