[2] ErrorException in File.php line 188

file_put_contents(/var/www/html/runtime/cache/1b/1c734d889dfc99f8dc486993e74531.php): failed to open stream: Permission denied

  1. $data = $this->serialize($value);
  2. if ($this->options['data_compress'] && function_exists('gzcompress')) {
  3. //数据压缩
  4. $data = gzcompress($data, 3);
  5. }
  6. $data = "<?php\n//" . sprintf('%012d', $expire) . "\n exit();?>\n" . $data;
  7. $result = file_put_contents($filename, $data);
  8. if ($result) {
  9. isset($first) && $this->setTagItem($filename);
  10. clearstatcache();
  11. return true;
  12. } else {
  13. return false;
  14. }
  15. }

Call Stack

  1. in File.php line 188
  2. at Error::appError(2, 'file_put_contents(/v...', '/var/www/html/thinkp...', 188, ['name' => '3.238.79.169', 'value' => 2, 'expire' => 86400, ...])
  3. at file_put_contents('/var/www/html/runtim...', '<?php //000000086400...') in File.php line 188
  4. at File->set('3.238.79.169', 2, 86400)
  5. at call_user_func_array([object(File), 'set'], ['3.238.79.169', 2, 86400]) in Cache.php line 130
  6. at Cache->__call('set', ['3.238.79.169', 2, 86400])
  7. at call_user_func_array([object(Cache), 'set'], ['3.238.79.169', 2, 86400]) in Facade.php line 123
  8. at Facade::__callStatic('set', ['3.238.79.169', 2, 86400]) in Index.php line 43
  9. at Index->index()
  10. at ReflectionMethod->invokeArgs(object(Index), []) in Container.php line 395
  11. at Container->invokeReflectMethod(object(Index), object(ReflectionMethod), []) in Module.php line 131
  12. at Module->think\route\dispatch\{closure}(object(Request), object(Closure), null)
  13. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  14. at Middleware->think\{closure}(object(Request))
  15. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  16. at Middleware->dispatch(object(Request), 'controller') in Module.php line 136
  17. at Module->exec() in Dispatch.php line 168
  18. at Dispatch->run() in App.php line 432
  19. at App->think\{closure}(object(Request), object(Closure), null)
  20. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  21. at Middleware->think\{closure}(object(Request)) in sys.php line 145
  22. at {closure}(object(Request), object(Closure), null)
  23. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  24. at Middleware->think\{closure}(object(Request)) in common.php line 247
  25. at {closure}(object(Request), object(Closure), null)
  26. at call_user_func_array(object(Closure), [object(Request), object(Closure), null]) in Middleware.php line 185
  27. at Middleware->think\{closure}(object(Request))
  28. at call_user_func(object(Closure), object(Request)) in Middleware.php line 130
  29. at Middleware->dispatch(object(Request)) in App.php line 435
  30. at App->run() in index.php line 28

Environment Variables

GET Data
v jsk3/duanpai.html
POST Dataempty
Filesempty
Cookiesempty
Sessionempty
Server/Request Data
HTTP_ACCEPT */*
HTTP_USER_AGENT claudebot
HTTP_HOST jpchp.com
PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
SERVER_SIGNATURE <address>Apache/2.4.18 (Ubuntu) Server at jpchp.com Port 80</address>
SERVER_SOFTWARE Apache/2.4.18 (Ubuntu)
SERVER_NAME jpchp.com
SERVER_ADDR 172.26.208.61
SERVER_PORT 80
REMOTE_ADDR 3.238.79.169
DOCUMENT_ROOT /var/www/html/public
REQUEST_SCHEME http
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT /var/www/html/public
SERVER_ADMIN webmaster@localhost
SCRIPT_FILENAME /var/www/html/public/index.php
REMOTE_PORT 34414
GATEWAY_INTERFACE CGI/1.1
SERVER_PROTOCOL HTTP/1.1
REQUEST_METHOD GET
QUERY_STRING v=jsk3/duanpai.html
REQUEST_URI /?v=jsk3/duanpai.html
SCRIPT_NAME /index.php
PHP_SELF /index.php
REQUEST_TIME_FLOAT 1711625048.451
REQUEST_TIME 1711625048
Environment Variablesempty
ThinkPHP Constants
QINIU_FUNCTIONS_VERSION 7.2.10