Search K
Appearance
Appearance
Redis functions as a simple database/cache for Users. This can be useful for offloading some of the stress from your database into memory, if you have the memory available to support it.
To install redis:
da build set redis yes
da build redisAll Reseller/User packages and reseller.conf/user.conf files will have redis=OFF by default.
The Admin account reseller.conf will have redis=ON by default.
All accounts that need redis must have it enabled like so:
To check the current status for the current User, use a GET request with no options. The return should look similar to this:
{
"enabled": "0",
"global": "1"
}redis=ON in the user.confSubmit a POST request with the following:
action=enableSubmit a POST request with the following:
action=disableCMD_API_REDIS does exist and will always be use JSON mode for output.
The following files were modified:
/usr/local/directadmin/data/skins/enhanced/admin/create_customized_reseller.html/usr/local/directadmin/data/skins/enhanced/admin/modify_reseller.html/usr/local/directadmin/data/skins/enhanced/admin/show_reseller_package.html/usr/local/directadmin/data/skins/enhanced/lang/en/lf_standard.html/usr/local/directadmin/data/skins/enhanced/reseller/create_customized_user.html/usr/local/directadmin/data/skins/enhanced/reseller/modify_user.html/usr/local/directadmin/data/skins/enhanced/reseller/show_user_package.htmlto support the relative global tokens including:
RESELLERREDIS=ONUSERREDIS=ONHAVE_REDIS=ON (which is enabled in license and installed on system)POST values for packages/reseller/user include redis=ON or redis=OFF, and omission altogether implies OFF.
da build set redis yes
da build set php_redis yes
da build redis
da build php_redisRefer to this source for more information about redis connection configuration.
define( 'WP_REDIS_SCHEME', 'unix' );
define( 'WP_REDIS_PATH', '/home/<user>/.redis/redis.sock' );to /home/<user>/domains/<domain>/public_html/wp-config.php BEFORE the last line which includes wp-settings.php.
Make sure to replace <user> with the DirectAdmin user you're trying to configure. Note that the path defined by WP_REDIS_PATH should be the path mentioned in step 2.
After refreshing the wordpress admin page, you'll notice that the connection status changed to "Connected".