User Tools

Site Tools


json_calls

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
json_calls [2025/04/16 06:46] kirtisinghjson_calls [2025/04/16 10:43] (current) kirtisingh
Line 13: Line 13:
 </code> </code>
  
-\_\_USER\_\- The system user that would be created\\ +user - %%__%%USER%%__%% - The system user that would be created\\ 
-__PWD__ This should be between 8 to 20 characters with a reasonable password strength+password - %%__%%PWD%%__%% - This should be between 8 to 20 characters with a reasonable password strength 
 + 
 +**Add a VHost/Website** 
 + 
 +<code> 
 +
 +    "task":"add_vhost", 
 +    "params":
 +        "vhost":"__VHOST__", 
 +        "user":"__USER__"
 +        "php_version":"__PHP_VERSION__"
 +        "with_www":"1|0" 
 +    } 
 +
 +</code> 
 + 
 +vhost - %%__%%VHOST%%__%% - The VHost/Website (without www) to be created/added\\ 
 +user - %%__%%USER%%__%% - The system user under which the VHost has to be added\\ 
 +php_version - %%__%%PHP_VERSION%%__%% - Should be one of the following [[:json_php_versions|list]]\\ 
 +with_www - can be either 1 or 0 
 + 
 +**Add an Alias to a VHost** 
 + 
 +<code> 
 +
 +    "task":"add_alias_vhost", 
 +    "params":
 +        "alias_vhost":"__ALIAS_VHOST__", 
 +        "vhost":"__VHOST__" 
 +    } 
 +
 +</code> 
 + 
 +alias_vhost - %%__%%ALIAS%%__%%VHOST%%__%% - The Alias VHost/Website (without www) to be created/added\\ 
 +vhost %%__%%VHOST%%__%% - The VHost/Website (without www) to which the above alias should map to 
 + 
 +**Create MySQL Pair** 
 + 
 +<code> 
 +
 +    "task":"create_mysql_pair", 
 +    "params":
 +        "system_user":"__SYSTEM_USER__", 
 +        "mysql_db_name":"__MYSQL_DB_NAME__", 
 +        "mysql_user_name":"__MYSQL_USER_NAME__", 
 +        "mysql_user_pwd":"__MYSQL_USER_PWD__" 
 +    } 
 +
 +</code> 
 + 
 +system_user - %%__%%SYSTEM%%__%%USER%%__%% - The system user to which the DB is mapped. Refernced only w.r.t. backups\\ 
 +mysql_db_name - %%__%%MYSQL%%_%%DB%%_%%NAME%%__%% - The name of the new MySQL DB\\ 
 +mysql_user_name - %%__%%MYSQL%%_%%USER%%_%%NAME%%__%% - The name of the new MySQL User\\ 
 +mysql_user_pwd - %%__%%MYSQL%%_%%USER%%_%%PWD%%__%% - The password for the new MySQL user. It should be between 8 to 20 characters with a reasonable password strength 
 + 
json_calls.1744785993.txt.gz · Last modified: 2025/04/16 06:46 by kirtisingh

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki