waldemarlima
Verified User
- Joined
- Jul 17, 2020
- Messages
- 11
hello everyone !
i would like to know if have a way to change PHP version of specific account ?
i would like to know if have a way to change PHP version of specific account ?
but can i change php_version using CMD api ?You can install multiple php versions and use the php changer on that account.
CMD_API_DOMAIN
Post string: php1_select=2&domain=DOMAIN.TLD&json=yes&action=php_selector&save=yes
curl --request POST --user 'fred:password' --data 'php1_select=2&domain=DOMAIN.TLD&json=yes&action=php_selector&save=yes' http://1.2.3.4:2222/CMD_API_DOMAIN
./directadmin b2000 | grep "CMD_\|Post"
CMD_DOMAIN
Post string: php1_select=2&domain=DOMAIN.TLD&json=yes&action=php_selector&save=yes
any CMD_* call can be altered to CMD_API_* to be used via API) and adjust the Post string
Maybe not added to the API yet. I'll inquire our developers. Thanks for noticing and reporting!Just found out I got error when using CMD_API_SECURITY_QUESTIONS.
"error": "no container class for data"
Changed back to CMD_SECURITY_QUESTIONS without 'API_' and it works. Maybe this is a bug ?
Another one is CMD_API_DB does not work but CMD_DB is working. Thanks.Maybe not added to the API yet. I'll inquire our developers. Thanks for noticing and reporting!