[2] ErrorException in File.php line 80

mkdir(): Permission denied

  1. // 使用子目录
  2. $name = substr($name, 0, 2) . DS . substr($name, 2);
  3. }
  4. if ($this->options['prefix']) {
  5. $name = $this->options['prefix'] . DS . $name;
  6. }
  7. $filename = $this->options['path'] . $name . '.php';
  8. $dir = dirname($filename);
  9. if (!is_dir($dir)) {
  10. mkdir($dir, 0755, true);
  11. }
  12. return $filename;
  13. }
  14. /**
  15. * 判断缓存是否存在
  16. * @access public
  17. * @param string $name 缓存变量名
  18. * @return bool

Call Stack

  1. in File.php line 80
  2. at Error::appError(2, 'mkdir(): Permission ...', 'D:\wwwroot\wxomcom\w...', 80, ['name' => '35\ced42b7b2cac9413a...', 'filename' => 'D:\wwwroot\wxomcom\w...', 'dir' => 'D:\wwwroot\wxomcom\w...'])
  3. at mkdir('D:\wwwroot\wxomcom\w...', 493, true) in File.php line 80
  4. at File->getCacheKey('35\ced42b7b2cac9413a...') in File.php line 105
  5. at File->get('think:xy_article|40', false) in Cache.php line 115
  6. at Cache::get('think:xy_article|40') in Query.php line 2227
  7. at Query->update(['click' => ['exp', 'click+1']]) in Query.php line 581
  8. at Query->setField('click', ['exp', 'click+1']) in Query.php line 610
  9. at Query->setInc('click') in Product.php line 187
  10. at Product->productDetail([['image' => '', 'thumb_image' => '']]) in Product.php line 40
  11. at Product->index('')
  12. at ReflectionMethod->invokeArgs(object(Product), ['']) in App.php line 197
  13. at App::invokeMethod([object(Product), 'index'], []) in App.php line 414
  14. at App::module(['index', 'Product', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], false) in App.php line 296
  15. at App::exec(['type' => 'module', 'module' => ['index', 'Product', 'index'], 'convert' => false], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 124
  16. at App::run() in start.php line 18
  17. at require('D:\wwwroot\wxomcom\w...') in index.php line 49

Exception Datas

Error Context
name 35\ced42b7b2cac9413a45629c936c747
filename D:\wwwroot\wxomcom\wwwroot\runtime\cache\35\ced42b7b2cac9413a45629c936c747.php
dir D:\wwwroot\wxomcom\wwwroot\runtime\cache\35

Environment Variables

GET Data
empty
POST Data
empty
Files
empty

Cookies

PHPSESSID
3hsd3c9e5igclogm9ba8qru4e2

Session

index_lang_id
1
index_lang_name
CN
index_lang_template
default

Server/Request Data

_FCGI_X_PIPE_
\\.\pipe\IISFCGI-0a1ef176-6ab9-495f-88e0-a71dd67e37a2
PHP_FCGI_MAX_REQUESTS
1000
PHPRC
C:\php_70
ALLUSERSPROFILE
C:\ProgramData
APPDATA
C:\Windows\system32\config\systemprofile\AppData\Roaming
APP_POOL_CONFIG
C:\inetpub\temp\apppools\wxomcom\wxomcom.config
APP_POOL_ID
wxomcom
CommonProgramFiles
C:\Program Files (x86)\Common Files
CommonProgramFiles(x86)
C:\Program Files (x86)\Common Files
CommonProgramW6432
C:\Program Files\Common Files
COMPUTERNAME
EBS-24507
ComSpec
C:\Windows\system32\cmd.exe
DriverData
C:\Windows\System32\Drivers\DriverData
LOCALAPPDATA
C:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS
4
OS
Windows_NT
Path
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\php_52;D:\mysql\bin;c:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;C:\Windows\system32\config\systemprofile\AppData\Local\Microsoft\WindowsApps
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
x86
PROCESSOR_ARCHITEW6432
AMD64
PROCESSOR_IDENTIFIER
Intel64 Family 6 Model 63 Stepping 2, GenuineIntel
PROCESSOR_LEVEL
6
PROCESSOR_REVISION
3f02
ProgramData
C:\ProgramData
ProgramFiles
C:\Program Files (x86)
ProgramFiles(x86)
C:\Program Files (x86)
ProgramW6432
C:\Program Files
PSModulePath
C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
PUBLIC
C:\Users\Public
SystemDrive
C:
SystemRoot
C:\Windows
TEMP
C:\Windows\TEMP
TMP
C:\Windows\TEMP
USERDOMAIN
WORKGROUP
USERNAME
EBS-24507$
USERPROFILE
C:\Windows\system32\config\systemprofile
windir
C:\Windows
ORIG_PATH_INFO
/index.php/sbzs/show_40.html
URL
/index.php
SERVER_SOFTWARE
Microsoft-IIS/10.0
SERVER_PROTOCOL
HTTP/1.1
SERVER_PORT_SECURE
0
SERVER_PORT
80
SERVER_NAME
SCRIPT_NAME
/index.php
SCRIPT_FILENAME
d:\wwwroot\wxomcom\wwwroot\index.php
REQUEST_URI
/sbzs/show_40.html
REQUEST_METHOD
GET
REMOTE_USER
REMOTE_PORT
55980
REMOTE_HOST
127.0.0.1
REMOTE_ADDR
127.0.0.1
QUERY_STRING
PATH_TRANSLATED
d:\wwwroot\wxomcom\wwwroot\index.php\sbzs\show_40.html
PATH_INFO
/sbzs/show_40.html
LOGON_USER
LOCAL_ADDR
127.0.0.1
INSTANCE_META_PATH
/LM/W3SVC/10412
INSTANCE_NAME
WXOMCOM
INSTANCE_ID
10412
HTTPS_SERVER_SUBJECT
HTTPS_SERVER_ISSUER
HTTPS_SECRETKEYSIZE
HTTPS_KEYSIZE
HTTPS
off
GATEWAY_INTERFACE
CGI/1.1
DOCUMENT_ROOT
d:\wwwroot\wxomcom\wwwroot
CONTENT_TYPE
CONTENT_LENGTH
0
CERT_SUBJECT
CERT_SERIALNUMBER
CERT_ISSUER
CERT_FLAGS
CERT_COOKIE
AUTH_USER
AUTH_PASSWORD
AUTH_TYPE
APPL_PHYSICAL_PATH
d:\wwwroot\wxomcom\wwwroot\
APPL_MD_PATH
/LM/W3SVC/10412/ROOT
IIS_UrlRewriteModule
7,1,1993,2336
WEBSOCKET_VERSION
13
UNENCODED_URL
/sbzs/show_40.html
IIS_WasUrlRewritten
1
HTTP_X_ORIGINAL_URL
/sbzs/show_40.html
HTTP_X_REAL_IP
173.247.227.74
HTTP_X_FORWARDED_FOR
173.247.227.74
HTTP_USER_AGENT
Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.92 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
HTTP_HOST
HTTP_COOKIE
PHPSESSID=3hsd3c9e5igclogm9ba8qru4e2
HTTP_ACCEPT
*/*
HTTP_CONTENT_LENGTH
0
HTTP_CONNECTION
close
FCGI_ROLE
RESPONDER
PHP_SELF
/index.php/sbzs/show_40.html
REQUEST_TIME_FLOAT
1591125728.533
REQUEST_TIME
1591125728
Environment Variables
empty

ThinkPHP Constants

APP_PATH
D:\wwwroot\wxomcom\wwwroot/application/
BIND_MODULE
index
THINK_VERSION
5.0.11
THINK_START_TIME
1591125728.5363
THINK_START_MEM
361208
EXT
.php
DS
\
THINK_PATH
D:\wwwroot\wxomcom\wwwroot\tp123\
LIB_PATH
D:\wwwroot\wxomcom\wwwroot\tp123\library\
CORE_PATH
D:\wwwroot\wxomcom\wwwroot\tp123\library\think\
TRAIT_PATH
D:\wwwroot\wxomcom\wwwroot\tp123\library\traits\
ROOT_PATH
D:\wwwroot\wxomcom\wwwroot\
EXTEND_PATH
D:\wwwroot\wxomcom\wwwroot\extend\
VENDOR_PATH
D:\wwwroot\wxomcom\wwwroot\vendor\
RUNTIME_PATH
D:\wwwroot\wxomcom\wwwroot\runtime\
LOG_PATH
D:\wwwroot\wxomcom\wwwroot\runtime\log\
CACHE_PATH
D:\wwwroot\wxomcom\wwwroot\runtime\cache\
TEMP_PATH
D:\wwwroot\wxomcom\wwwroot\runtime\temp\
CONF_PATH
D:\wwwroot\wxomcom\wwwroot/application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
true