I'm looking for a way to remove the PHP selection for a domain entirely, so that it defaults/falls back to the first available version as defined in
Based on the information provided on https://www.directadmin.com/features.php?id=1738 it seems that it should be possible to provide at least
I could remove the
(Edit/addition: Removing the selection is desirable even with
options.conf
. It looks like CMD_API_DOMAIN
is the API endpoint to use for this. I have some domains with this combination of settings (from CMD_API_ADDITIONAL_DOMAINS
):
Code:
["has_php_selector"] => string(2) "no"
["php"] => string(3) "OFF"
["php1_select"] => string(1) "3"
Based on the information provided on https://www.directadmin.com/features.php?id=1738 it seems that it should be possible to provide at least
php2_select
with the value 0
for off
, but the same can't be passed for php1_select
. The error I get when trying that is Error setting PHP versions: php1_select and php2_select must be 0-3
.I could remove the
php1_select
line directly from /usr/local/directadmin/data/users/<user>/domains/<domain>.conf
, but I really want to do this with the API if it's possible. Any ideas?(Edit/addition: Removing the selection is desirable even with
php=on
, and has_php_selector=yes
, to let a domain use the default PHP version without it being specifically selected.)
Last edited: