API or script to change site PHP version

nux

New member
Joined
Oct 2, 2019
Messages
2
I looked through the API docs and do not see a feature to allow change of site PHP version via command line or call. Is there a way to accomplish this task without the need to login to the panel via browser or manually modifying configuration files?
 

nux

New member
Joined
Oct 2, 2019
Messages
2
Though this requires either implementing in a script using the login credentials, am I correct? What we are looking for here is something similar to cPanel's command line API call that can be ran as root.
--
https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+php_set_vhost_versions
--

What we would like to be able to do is simply issue a command via shell to change PHP version of a domain/vhost while logged in as root (or DA user) without the need to pass login credentials or create session or url to make an http request.

Am I missing something here?
 
Top