Default PHP slot

witkamp.gerrit

Verified User
Joined
Sep 20, 2021
Messages
15
Hi,

I'm using the Direct Admin API (CMD_API_ACCOUNT_USER) to create an user with a domain. Currently a newly created domain is connected to PHP-selector slot 1 by default. Is there an option to change this 'default slot'? PHP-selector slot 1 contains PHP8.0 and I want the domain to be using PHP slot 2 which contains a newer PHP-version.

Like to hear from you guys.

Regards,
Gerrit
 
Nope, it always be php1_release.

You have 2 choice.

- make extra api call to change php_version for domain.

- use custombuild to change "php1_release" to php8.1 and "php2_release" to php8.0
ensure to rebuild PHP after edit option.
 
Hi,

I'm using the Direct Admin API (CMD_API_ACCOUNT_USER) to create an user with a domain. Currently a newly created domain is connected to PHP-selector slot 1 by default. Is there an option to change this 'default slot'? PHP-selector slot 1 contains PHP8.0 and I want the domain to be using PHP slot 2 which contains a newer PHP-version.

I thought you would do something like this:

Code:
CMD_API_DOMAIN
Post string: php1_select=2&domain=DOMAIN.TLD&json=yes&action=php_selector&save=yes
 
Back
Top