以前CAKEPHPで開発したシステムを違うサーバに移行しとうとしているのですが、つまづいています。
以下のログのようにがファイルのアクセスエラー(〜 is not writable〜)が出ていますが、その下のlsの結果のように
アクセスできる状態となっていて、エラーとはならないはずではないでしょうか、
最初のほうにでている「cake_core cache was unable to write 'cake_dev_ja' to File」も/tmp/cake配下のアクセス権では
ないかとおもいますが、前述のとおり問題ないとおもいます。
私が開発し、サーバも私が構築したのですが、PHP、CakePHPはこのシステムを構築してからは、ほとんど使っていません。
どこか、追加で確認したりする点はあるでしょうか?
アドバイスいただければとおもいます。
サーバはCentOS7で開発環境(XAMPP)5.6には移行できて、動作しています。
1./var/log/httpd/error_logの内容
[Fri Dec 22 21:55:22.201386 2017] [mpm_prefork:notice] [pid 25221] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Dec 22 21:55:23.284201 2017] [core:notice] [pid 28576] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Fri Dec 22 21:55:23.284965 2017] [suexec:notice] [pid 28576] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using localhost.localdomain. Set the 'ServerName' directive globally to suppress this message
[Fri Dec 22 21:55:23.307759 2017] [auth_digest:notice] [pid 28576] AH01757: generating secret for digest authentication ...
[Fri Dec 22 21:55:23.308913 2017] [lbmethod_heartbeat:notice] [pid 28576] AH02282: No slotmem from mod_heartmonitor
[Fri Dec 22 21:55:23.323517 2017] [mpm_prefork:notice] [pid 28576] AH00163: Apache/2.4.6 (CentOS) PHP/5.4.16 configured -- resuming normal operations
[Fri Dec 22 21:55:23.323556 2017] [core:notice] [pid 28576] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Dec 22 21:55:32.814182 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: cake_core cache was unable to write 'cake_dev_ja' to File cache in /opt/htdocs/cake/lib/Cake/Cache/Cache.php on line 310
[Fri Dec 22 21:55:32.814235 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: cake_core cache was unable to write 'cake_dev_ja' to File cache in /opt/htdocs/cake/lib/Cake/Cache/Cache.php on line 310
[Fri Dec 22 21:55:32.814244 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: /tmp/cake/cache/persistent/ is not writable in /opt/htdocs/cake/lib/Cake/Cache/Engine/FileEngine.php on line 316
[Fri Dec 22 21:55:32.814333 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: /tmp/cake/cache/models/ is not writable in /opt/htdocs/cake/lib/Cake/Cache/Engine/FileEngine.php on line 316
[Fri Dec 22 21:55:32.814582 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: /opt/htdocs/cake/app/tmp/cache/ is not writable in /opt/htdocs/cake/lib/Cake/Cache/Engine/FileEngine.php on line 316
[Fri Dec 22 21:55:32.837404 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: file_put_contents(/tmp/cake/log/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /opt/htdocs/cake/lib/Cake/Log/Engine/FileLog.php on line 69
[Fri Dec 22 21:55:32.839196 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: file_put_contents(/tmp/cake/log/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /opt/htdocs/cake/lib/Cake/Log/Engine/FileLog.php on line 69
[Fri Dec 22 21:55:32.850936 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: file_put_contents(/tmp/cake/log/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /opt/htdocs/cake/lib/Cake/Log/Engine/FileLog.php on line 69
[Fri Dec 22 21:55:32.851844 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: file_put_contents(/tmp/cake/log/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /opt/htdocs/cake/lib/Cake/Log/Engine/FileLog.php on line 69
[Fri Dec 22 21:55:32.852065 2017] [:error] [pid 28579] [client 192.168.0.2:62833] PHP Warning: file_put_contents(/tmp/cake/log/error.log) [<a href='http://php.net/function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: No such file or directory in /opt/htdocs/cake/lib/Cake/Log/Engine/FileLog.php on line 69
2.デイレクトリ状態
[root@localhost httpd]# ls -ld /tmp/cake/cache/persistent/ /tmp/cake/cache/models/ /opt/htdocs/cake/app/tmp/cache/ /tmp/cake/log/
drwxrwxrwx. 5 apache apache 51 12月 20 06:08 /opt/htdocs/cake/app/tmp/cache/
drwxrwxrwx. 2 apache apache 6 12月 22 07:55 /tmp/cake/cache/models/
drwxrwxrwx. 2 apache apache 6 12月 22 07:53 /tmp/cake/cache/persistent/
drwxrwxrwx. 2 apache apache 6 12月 22 07:50 /tmp/cake/log/
3。各バージョン
[root@localhost httpd]# httpd -v
Server version: Apache/2.4.6 (CentOS)
Server built: Oct 19 2017 20:39:16
[root@localhost httpd]# php -v
PHP 5.4.16 (cli) (built: Nov 15 2017 16:33:54)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
[root@localhost httpd]# tail -3 /opt/htdocs/cake/lib/Cake/VERSION.txt
// +--------------------------------------------------------------------------------------------+ //
////////////////////////////////////////////////////////////////////////////////////////////////////
2.0.3
回答1件
あなたの回答
tips
プレビュー