Redis installation

max9012

Verified User
Joined
Dec 21, 2023
Messages
8
Hi to all,
i have e some trouble with Redis installation.
Directadmin on vps with single user and one website.

Steps i do:

- Enable Redis from custombuild plugin save and build
- last two log lines is:
Done redis.
Enabling redis in systemd..
- Reboot server
- Check trought wordpress plugin and nothing seems working
- Login with root user, lunch command "systemctrl status redis" , and > Unit redis.service could not be found
- Check systemd service in /etc/systemd/system/ and found [email protected]
- Lunch command systemctrl list-units | grep redis > nothing found-

So i tryed to reset configuration to base config, without redis:
- Disable redis from custombuild plugin save.
- Login with root user and lunch:

- da build list_removals
- da build remove_items
- da build remove_old_local libiconv
- da build all
- da build restore_old_local libiconv

Remove libiconv because i have trouble compiling exim: "configure: error: iconv does not support errno"

So now i have my base system working. And i tried to enable redis all from command line lunch command

- ./build set redis yes
- ./build redis
- last two lines are same as previuos
Done redis.
Enabling redis in systemd...

but redis not working like previous attempt...


Any suggestion?

Thank you in advance.
 
I make more test.
I figure out that [email protected] expect username for service.
i execute : systemctrl enable redis@admin
I added service redis but failed error:

redis-server[756]: 756:C 21 Dec 2023 15:05:31.702 # Fatal error, can't open config file '/usr/local/directadmin/data/use...directory

script search for config file in "ExecStart=/usr/local/bin/redis-server --include /usr/local/directadmin/data/users/${USER}/redis.conf"
but i haven't any redis.con on admin folder.

This is a directadmin bug?
 
Now i added /usr/local/direcadmin/data/users/{username}/redis.conf and now working as expected.


Code:
protected-mode yes
tcp-backlog 511
timeout 0
tcp-keepalive 300
daemonize no
loglevel verbose

More info and complete default redis.conf file on https://redis.io/docs/management/config/
 
Where is settings? i can't see any setting related to redis on user level Da.
 
toggle via User Package.
I dont know how to enable redis on DA, documentation not so clear.

Steps i do:

./build redis

From docs "All Reseller/User packages and reseller.conf/user.conf files will have redis=OFF by default."
I checked conf. files under /user/local/direcadmin/data/users/admin/reseller.conf and user.conf
and package conf. under /user/local/direcadmin/data/users/admin/packages/my.pkg
no files have redis=OFF, but assume that default value is OFF, so don't chage anything.

From docs: "The Admin account reseller.conf will have redis=ON by default."
My user is Admin, so default value is ON by default. I don't change any config file.

Now go to DA Dashboard and i don't find any palce where i can toggle Redis, but i can see that redis is disabled


See attachements

1° screen access level admin > edit user packages
2° screen access level admin > show all users > admin > reseller > info
3° screen access level admin > show all users > admin > user > account info
4° screen access level admin > show all users > admin > user > modify
 

Attachments

  • 1_Edit_user_Package.png
    1_Edit_user_Package.png
    57.5 KB · Views: 37
  • 2_admin_View_Reseller.png
    2_admin_View_Reseller.png
    89.3 KB · Views: 36
  • 3_admin_View User.png
    3_admin_View User.png
    111 KB · Views: 32
  • 4_admin_Edit_User.png
    4_admin_Edit_User.png
    50.1 KB · Views: 28
Some docs might not sync with current system.

Did you not see enable option in Admin package or in Reseller Pacjage ?
 
I don't have any "admin package" items in menu, only "manage user packages".
 

Attachments

  • Manage User Packages.png
    Manage User Packages.png
    166.5 KB · Views: 21
Yes lagacy licensing..........wtf! need to contatc vps provider...
 

Attachments

  • ScreenshotLicensing.png
    ScreenshotLicensing.png
    10.5 KB · Views: 13
  • Screenshot Licensing proof.png
    Screenshot Licensing proof.png
    4.4 KB · Views: 12
Back
Top