UI for CakePHP application settings
UI for CakePHP application settings
CakePHP
application;composer require anklimsk/cakephp-settings-app
Add the next line to the end of the file app/Config/bootstrap.php
:
CakePlugin::load('CakeSettingsApp', ['bootstrap' => true, 'routes' => true]);
ps aux | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1
.app/Config/config.php
run the command chown www-data app/Config/config.php
where
www-data
- user name for web server.Add to file app/Config/core.php
:
/**
* A random numeric string (digits only) used to encrypt/decrypt strings.
*/
Configure::write('Security.key', '9b8964f94127f5b843c67e8c89479e4f2cfac2b182c72dc0691cc384c438f9ca');
/**
* Set Security.useOpenSsl to use OpenSSL instead of the deprecated mcrpyt extension.
*/
Configure::write('Security.useOpenSsl', true);
See https://book.cakephp.org/2.0/en/core-utility-libraries/security.html#Security::encrypt