I have Fedora18 and was trying to install cakephp . But it shows
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 323
Warning: /var/www/html/cakem2/app/tmp/cache/persistent/ is not writable in /var/www/html/cakem2/lib/Cake/Cache/Engine/FileEngine.php on line 385
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /var/www/html/cakem2/lib/Cake/Cache/Cache.php:181 Stack trace: #0 /var/www/html/cakem2/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_') #1 /var/www/html/cakem2/app/Config/core.php(374): Cache::config('_cake_core_', Array) #2 /var/www/html/cakem2/lib/Cake/Core/Configure.php(72): include('/var/www/html/c...') #3 /var/www/html/cakem2/lib/Cake/bootstrap.php(175): Configure::bootstrap(true) #4 /var/www/html/cakem2/app/webroot/index.php(94): include('/var/www/html/c...') #5 /var/www/html/cakem2/index.php(41): require('/var/www/html/c...') #6 {main} thrown in /var/www/html/cakem2/lib/Cake/Cache/Cache.php on line 181
Following the answers Similar Question, I have made all the directory and sub-directory writable as shown in . But I am still getting the error ! Whats wrong ?
chown the folders / files so that the user matches the user which httpd or Apache uses to access these files. I don't know the user for fedora, i think its apache or httpd. In ubuntu its www-data.
http://fedoraproject.org/wiki/Administration_Guide_Draft/Apache
Related
I have unzipped the installation folder. When going to the install.php to start the installer I get an Fatal error: Uncaught RuntimeException.
I use XAMPP with PHP 7.2 and I go to:
http://localhost/typo3/install.php
I get following message:
Fatal error: Uncaught RuntimeException: Could not create directory "/Applications/XAMPP/xamppfiles/htdocs/typo3temp/var/log/"! in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php:2172 Stack trace: #0 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php(2140): TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath('/Applications/X...') #1 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(222): TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep('/Applications/X...') #2 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(193): TYPO3\CMS\Core\Log\Writer\FileWriter->createLogFile() #3 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(123): TYPO3\CMS\Core\Log\Writer\FileWriter->openLogFile() #4 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/Fil in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2172
Stacktrace in log file:
Stack trace:
#0 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php(2140): TYPO3\CMS\Core\Utility\GeneralUtility::createDirectoryPath('/Applications/X...')
#1 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(222): TYPO3\CMS\Core\Utility\GeneralUtility::mkdir_deep('/Applications/X...')
#2 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(193): TYPO3\CMS\Core\Log\Writer\FileWriter->createLogFile()
#3 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/FileWriter.php(123): TYPO3\CMS\Core\Log\Writer\FileWriter->openLogFile()
#4 /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Log/Writer/Fil in /Applications/XAMPP/xamppfiles/htdocs/typo3_src/typo3/sysext/core/Classes/Utility/GeneralUtility.php on line 2172
:
No more error logs available..
The error means that php cannot write to your xampp htdocs directory, because of security restrictions of the Applications dir.
You should change your xampp configuration like in this tutorial https://pureinfotech.com/install-xampp-windows-10/
I'm trying to install pterodactyl server management panel on my CentOS 7 server.. I did chown and chmod stuff like docs told me so. But when i try to open the website i see a blank page (phpinfo.php file works like it should work)
output of www-error.log
[22-Nov-2017 16:49:58 UTC] PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/html/pterodactyl/storage/logs/laravel-2017-11-22.log" could not be opened: failed to open stream: Permission denied in /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
Stack trace:
#0 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/RotatingFileHandler.php(107): Monolog\Handler\StreamHandler->write(Array)
#1 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(37): Monolog\Handler\RotatingFileHandler->write(Array)
#2 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(337): Monolog\Handler\AbstractProcessingHandler->handle(Array)
#3 /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Logger.php(616): Monolog\Logger->addRecord(400, Object(Symfony\Component\Debug\Exception\FatalErrorException), Array)
#4 /var/www/html/pterodactyl/vendor/laravel/framework/src/Illuminate/Log/Writer.php(203): Monolog\Logger->error(Ob in /var/www/html/pterodactyl/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 107
You should create the following folder /var/www/html/pterodactyl/storage/logs/ then change the permission so Apache or Nginx can write to that folder.
I am getting following error: using cakephp, aws.
Warning: _cake_core_ cache was unable to write 'cake_dev_en-gb' to
File cache in /var/www/html/myApp/lib/Cake/Cache/Cache.php on line 328
Warning: /var/www/html/myApp/app/tmp/cache/persistent/ is not writable
in /var/www/html/myApp/lib/Cake/Cache/Engine/FileEngine.php on line
385
Fatal error: Uncaught exception 'CacheException' with message 'Cache
engine "_cake_core_" is not properly configured. Ensure required
extensions are installed, and credentials/permissions are correct' in
/var/www/html/myApp/lib/Cake/Cache/Cache.php:186 Stack trace: #0
/var/www/html/myApp/lib/Cake/Cache/Cache.php(151):
Cache::_buildEngine('_cake_core_') #1
/var/www/html/myApp/app/Config/core.php(383):
Cache::config('_cake_core_', Array) #2
/var/www/html/myApp/lib/Cake/Core/Configure.php(72):
include('/var/www/html/i...') #3
/var/www/html/myApp/lib/Cake/bootstrap.php(431):
Configure::bootstrap(true) #4
/var/www/html/myApp/app/webroot/index.php(95):
include('/var/www/html/i...') #5 {main} thrown in
/var/www/html/myApp/lib/Cake/Cache/Cache.php on line 186
NOTE : tmp folders have full permission(777), yet getting the same error, please advise?
I have gone through
https://groups.google.com/forum/#!topic/cake-php/gKFJf6mK6qk
also.
Please check with server configuration, Firewall should be disable on the server to access 777 folder by anonymous users.
I recently moved my Laravel 5.3.1 (Repository pattern) project from Windows 10 to Ubuntu 16.04LTs. When I update the composer, I'm getting the following errors.
Illuminate\Foundation\ComposerScripts::postUpdate
PHP Warning: Uncaught ErrorException: require(/opt/lampp/htdocs/new-abc.test.lk): failed to open stream:
Success in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php:55
Stack trace:
#0 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(55):
Composer\Util\ErrorHandler::handle(2, 'require(/opt/la...',
'/opt/lampp/htdo...', 55, Array)
#1 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(55):
require()
#2 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(45):
composerRequirecf118caaa79186b36c4e6ab213835334('efaf82f485f314c...',
'/opt/lampp/htdo...')
#3 /opt/lampp/htdocs/new-abc.test.lk/vendor/autoload.php(7): ComposerAutoloaderInitcf118caaa79186b36c4e6ab213835334::getLoader()
#4 /opt/lampp/htdocs/new-abc.test.lk/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(30):
require_once('/opt/lampp/htdo...')
#5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(238):
Illuminate\Foundation\Comp in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php on
line 55
Warning: Uncaught ErrorException: require(/opt/lampp/htdocs/new-abc.test.lk): failed to open stream:
Success in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php:55
Stack trace:
#0 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(55):
Composer\Util\ErrorHandler::handle(2, 'require(/opt/la...',
'/opt/lampp/htdo...', 55, Array)
#1 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(55):
require()
#2 /opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php(45):
composerRequirecf118caaa79186b36c4e6ab213835334('efaf82f485f314c...',
'/opt/lampp/htdo...')
#3 /opt/lampp/htdocs/new-abc.test.lk/vendor/autoload.php(7): ComposerAutoloaderInitcf118caaa79186b36c4e6ab213835334::getLoader()
#4 /opt/lampp/htdocs/new-abc.test.lk/vendor/laravel/framework/src/Illuminate/Foundation/ComposerScripts.php(30):
require_once('/opt/lampp/htdo...')
#5 /usr/share/php/Composer/EventDispatcher/EventDispatcher.php(238):
Illuminate\Foundation\Comp in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php on
line 55
PHP Fatal error: composerRequirecf118caaa79186b36c4e6ab213835334(): Failed opening
required '/opt/lampp/htdocs/new-abc.test.lk/'
(include_path='.:/usr/share/php') in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php on
line 55
Fatal error: composerRequirecf118caaa79186b36c4e6ab213835334(): Failed opening required '/opt/lampp/htdocs/new-abc.test.lk/'
(include_path='.:/usr/share/php') in
/opt/lampp/htdocs/new-abc.test.lk/vendor/composer/autoload_real.php on
line 55
What I tried:
Removing the existing vendor folder
Removing the composer.lock file
Any help would be appreciated.
The problem was caused due to the case sensitive issue. I think windows have neglected but Linux didn't.
What I've done is, I've created a custom helper file and included in the composer.json.
The mistake was the actual filename case sensitive didn't match the included file in the composer.json.
I am trying to follow the instructions for the cakephp tutorial found here: http://book.cakephp.org/2.0/en/getting-started.html
I uploaded the CakePHP files to my webserver, created the database using MySQL workbench, and created database.php and updated it to point to my MySQL server.
At this point it sounds like I should be able to open up the website in my browser and see something, but instead I get these errors (I have removed the full path):
Warning: _cake_core_ cache was unable to write 'cake_dev_en-us' to File cache in /caketut/lib/Cake/Cache/Cache.php on line 325
Warning: caketut/app/tmp/cache/persistent/ is not writable in /www/premium/med/pediatrics/www.hobmt.umn.edu/htdocs/caketut/lib/Cake/Cache/Engine/FileEngine.php on line 380
Fatal error: Uncaught exception 'CacheException' with message 'Cache engine _cake_core_ is not properly configured.' in /caketut/lib/Cake/Cache/Cache.php:181
Stack trace:
#0 /caketut/lib/Cake/Cache/Cache.php(151): Cache::_buildEngine('_cake_core_')
#1 /caketut/app/Config/core.php(367): Cache::config('_cake_core_', Array)
#2 /caketut/lib/Cake/Core/Configure.php(72): include('/www/premium/me...')
#3 /caketut/lib/Cake/bootstrap.php(177): Configure::bootstrap(true)
#4 /caketut/app/webroot/index.php(92): include('/www/premium/me...')
#5 {main} thrown in /caketut/lib/Cake/Cache/Cache.php on line 181
I tried setting the permissions for the Cache folder located in /caketut/lib/Cake and all subfolders/files to be 0776, and this removes all errors except this one:
Fatal error: Class 'Cache' not found in /caketut/app/Config/core.php on line 361
I tried doing searches but was unsuccessful in finding a solution. I would really appreciate any assistance!
try to chmod the whole script with 0777 permissions .
sudo chmod -R 0777 caketut