[2] ErrorException in File.php line 56

mkdir(): Permission denied

  1. /**
  2. * 初始化检查
  3. * @access private
  4. * @return boolean
  5. */
  6. private function init()
  7. {
  8. // 创建项目缓存目录
  9. if (!is_dir($this->options['path'])) {
  10. if (mkdir($this->options['path'], 0755, true)) {
  11. return true;
  12. }
  13. }
  14. return false;
  15. }
  16. /**
  17. * 取得变量的存储文件名
  18. * @access protected

Call Stack

  1. in File.php line 56
  2. at Error::appError(2, 'mkdir(): Permission ...', '/home/liuftp123748dl...', 56, [])
  3. at mkdir('/home/liuftp123748dl...', 493, true) in File.php line 56
  4. at File->init() in File.php line 44
  5. at File->__construct(['type' => 'File', 'path' => '/home/liuftp123748dl...', 'prefix' => '', ...]) in Cache.php line 65
  6. at Cache::connect(['type' => 'File', 'path' => '/home/liuftp123748dl...', 'prefix' => '', ...]) in Cache.php line 88
  7. at Cache::init() in Cache.php line 119
  8. at Cache::has('site_config') in HomeBase.php line 23
  9. at HomeBase->getSystem() in HomeBase.php line 14
  10. at HomeBase->_initialize() in Product.php line 12
  11. at Product->_initialize() in Controller.php line 59
  12. at Controller->__construct(object(Request))
  13. at ReflectionClass->newInstanceArgs([object(Request)]) in App.php line 359
  14. at App::invokeClass('app\index\controller...') in Loader.php line 479
  15. at Loader::controller('product', 'controller', false, 'Error') in App.php line 581
  16. at App::module(['index', 'product', 'index'], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...], null) in App.php line 457
  17. at App::exec(['type' => 'module', 'module' => ['index', 'product', 'index']], ['app_host' => '', 'app_debug' => true, 'app_trace' => false, ...]) in App.php line 139
  18. at App::run() in start.php line 19
  19. at require('/home/liuftp123748dl...') in index.php line 31

Environment Variables

GET Data
empty
POST Data
empty
Files
empty
Cookies
empty
Session
empty

Server/Request Data

REDIRECT_REDIRECT_UNIQUE_ID
ZgXFy61gJm81CBY0ivC8xgAAAAM
REDIRECT_REDIRECT_PHPRC
/home/liuftp123748dlfiruifvtqp9172r3h7d438/others
REDIRECT_REDIRECT_STATUS
200
REDIRECT_UNIQUE_ID
ZgXFy61gJm81CBY0ivC8xgAAAAM
REDIRECT_PHPRC
/home/liuftp123748dlfiruifvtqp9172r3h7d438/others
REDIRECT_HANDLER
php-cgi
REDIRECT_STATUS
200
UNIQUE_ID
ZgXFy61gJm81CBY0ivC8xgAAAAM
PHPRC
/home/liuftp123748dlfiruifvtqp9172r3h7d438/others
HTTP_X_FORWARDED_FOR
3.90.205.166
HTTP_X_REAL_IP
3.90.205.166
HTTP_HOST
lucktoto.com
HTTP_CONNECTION
close
HTTP_ACCEPT
*/*
HTTP_USER_AGENT
claudebot
PATH
/sbin:/usr/sbin:/bin:/usr/bin
SERVER_SIGNATURE
<address>Apache Server at lucktoto.com Port 80</address>
SERVER_SOFTWARE
Apache
SERVER_NAME
lucktoto.com
SERVER_ADDR
127.0.0.1
SERVER_PORT
80
REMOTE_ADDR
3.90.205.166
DOCUMENT_ROOT
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public
REQUEST_SCHEME
http
CONTEXT_PREFIX
/php-run-as-cgi
CONTEXT_DOCUMENT_ROOT
/usr/php5.6/bin
SERVER_ADMIN
webmaster@liuftp123748
SCRIPT_FILENAME
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public/index.php
REMOTE_PORT
60542
REDIRECT_URL
/index.php/product/index/pid/4.html
GATEWAY_INTERFACE
CGI/1.1
SERVER_PROTOCOL
HTTP/1.0
REQUEST_METHOD
GET
QUERY_STRING
REQUEST_URI
/product/index/pid/4.html
SCRIPT_NAME
/index.php
PATH_INFO
/product/index/pid/4.html
PATH_TRANSLATED
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public/product/index/pid/4.html
ORIG_PATH_INFO
/index.php/product/index/pid/4.html
ORIG_SCRIPT_NAME
/php-run-as-cgi/php-cgi
ORIG_SCRIPT_FILENAME
/usr/php5.6/bin/php-cgi
ORIG_PATH_TRANSLATED
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public/index.php/product/index/pid/4.html
PHP_SELF
/index.php/product/index/pid/4.html
REQUEST_TIME_FLOAT
1711654347.2963
REQUEST_TIME
1711654347
Environment Variables
empty

ThinkPHP Constants

APP_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public/../application/
BIND_MODULE
index
TPCMS_VERSION
2.0
THINK_VERSION
5.0.24
THINK_START_TIME
1711654347.2976
THINK_START_MEM
232328
EXT
.php
DS
/
THINK_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/
LIB_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/
CORE_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/
TRAIT_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/traits/
ROOT_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/
EXTEND_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/extend/
VENDOR_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/vendor/
RUNTIME_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/runtime/
LOG_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/runtime/log/
CACHE_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/runtime/cache/
TEMP_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/runtime/temp/
CONF_PATH
/home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/public/../application/
CONF_EXT
.php
ENV_PREFIX
PHP_
IS_CLI
false
IS_WIN
false
Fatal error: Uncaught exception 'think\exception\ErrorException' with message 'mkdir(): Permission denied' in /home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/log/driver/File.php:52 Stack trace: #0 [internal function]: think\Error::appError(2, 'mkdir(): Permis...', '/home/liuftp123...', 52, Array) #1 /home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/log/driver/File.php(52): mkdir('/home/liuftp123...', 493, true) #2 /home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/Log.php(179): think\log\driver\File->save(Array, true) #3 /home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/Error.php(93): think\Log::save() #4 [internal function]: think\Error::appShutdown() #5 {main} thrown in /home/liuftp123748dlfiruifvtqp9172r3h7d438/wwwroot/thinkphp/library/think/log/driver/File.php on line 52