Home > CMS Tutorial > PHPCMS > body text

What to do if the phpcms directory does not exist

藏色散人
Release: 2020-02-05 10:47:40
Original
3091 people have browsed it

What to do if the phpcms directory does not exist

What should I do if the phpcms directory does not exist?

phpcms upload prompt cannot find the temporary folder/directory (solution)

[phpcms background upload cannot find the temporary folder] This error message It is customized. For example, a certain shop program will prompt this when uploading, while a certain CMS will prompt "You did not choose the file to upload" when uploading. Each PHP system has different opinions, but in fact, it is all used by PHP. The error is caused by the temporary folder not having write permission. At this time, the error code value of $_FILES['XXX']['error'] is 6.

First you need to open the php.ini file and configure the PHP environment under IIS. The php.ini file is usually placed in %system%/windows. Here we open php.ini and search for

;upload_tmp_dir =;upload_tmp_dir =
Copy after login

There is no path behind this, that is, we have not set a temporary folder. The strange thing is that there are many Chinese servers that do not set this item in php.ini. This is normal, but it does not work on the English server.

Then set it yourself

Remove the (;) semicolon in front of the upload_tmp_dir item, and add the path after it, such as setting it to:

upload_tmp_dir ="C:/windows/temp"
Copy after login

to directory C :/windows/temp adds read and write permissions to the website anonymous access user group.

One thing that needs to be noted here is that for the upper-level directory windows, the "list directory" permission of the users user must also be set, otherwise it will be invalid. I was confused about this problem for a long time, and finally the problem was solved!

PHP Chinese website, a large number of free PHPCMS tutorials, welcome to learn online!

The above is the detailed content of What to do if the phpcms directory does not exist. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template