I uploaded cakephp to Amazon Linux of AWS, but the initial screen of cakephp did not appear and the following error appeared.
I have already installed php on the AWS server.
Please let me know if you know more.Thank you for your cooperation.
Warning:strtotime():It is not safe to reply on the system's timezone settings.You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
In case you used any of these methods and you are still getting this warning, you most likely misspelled the timezone identifier.
We selected 'UTC' for 'UTC/0.0/no DST' installed in /var/wwww/html/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
Warning: _cake_core_cache was disabled to write 'cake_dev_ja' to File cache in/var/www/html/cakephp/lib/cake/cache/cache.php on line 328
Warning: /var/www/html/cakephp/app/tmp/cache/persistent/is not writable in/var/www/html/cakephp/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine'_cake_core_"is not professionally configured.
Ensure required extensions are installed, and credentials/permissions are correct' in/var/wwww/html/cakephp/lib/Cake/Cache/Cache.php: 186
Stack trace:
#0/var/www/html/cakephp/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')
#1/var/www/html/cakephp/app/Config/core.php(374): Cache::config('_cake_core_', Array)
#2/var/www/html/cakephp/lib/Cake/Core/Configure.php(72): include('/var/www/html/c...')
#3/var/www/html/cakephp/lib/cake/bootstrap.php(175): Configure::bootstrap(true)
#4/var/www/html/cakephp/app/webroot/index.php(104): include('/var/www/html/c...')
#5/var/www/html/cakephp/index.php(41)—require('/var/www/html/c...')
#6 {main}thrown in/var/www/html/cakephp/lib/Cake/Cache.php on line 186
Note: After restarting nginx, the screen came up, but the CSS doesn't seem to work.
php linux cakephp aws
There seems to be not enough PHP settings besides write permissions.
Warning: strtotime(): It is not safe to rely on the system's timezone settings. You are required to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'UTC' for 'UTC/0.0/no DST' instead in /var/www/html/cakephp/lib/Cake/Cache/CacheEngine.php on line 60
In other words, date.timezone is not set, so it is recognized as UTC.
For operations in Japan, the following settings should be set to php.ini.
date.timezone=Asia/Tokyo
As far as the error message goes, there seems to be a problem with the write permission of the directory to which the cache is written.
Warning: /var/www/html/cakephp/app/tmp/cache/persistent/is not writable
So check if the user running nginx has write privileges in the directory above.
For css, you may need to check if the document route points to /var/www/html/cakephp/app/webroot
in the nginx configuration.
© 2024 OneMinuteCode. All rights reserved.