Skip to content

Deploy a Wordpress web-application

HTTP REQUEST

POST https://api.cloudstick.io/api/v1/wordpress/servers/1234/users/123?api_key={API_KEY}&secret_key={SECRET_KEY}' 

REQUEST

curl --request POST \
  --url 'https://api.cloudstick.io/api/v1/wordpress/servers/1324/users/123?api_key={API_KEY}&secret_key={SECRET_KEY}' \
  --header 'Content-Type: application/json' \

  --data '{
"database":{
    "name":"wordpress_db"
},

"db_user":{
    "user_name": "wordpress_db_user",
    "password":"my_db_password"
},

"web_stack":{
    "sys_user": {
        "id":1234,
        "password": "my_password"
    },
    "email": "user@example.com",
    "name": "app-wordpress",
    "domains": ["wp.cloudstick.me"],
    "php_version": "74",
    "is_active": true,
    "stack_type": "nginx",
    "ubuntu_version": "20.04",
    "php_process_manager": "dynamic",
    "public_path": "",
    "cj_protection":true,
    "xss_protection":true,
    "ms_protection":true
    "php_max_children":50,
    "php_max_requests":500,
    "php_start_servers":20,
    "php_min_spare_servers":10,
    "php_max_spare_servers":30,
    "php_open_base_dir":"/home/user_name/apps/app-wordpress/:/var/lib/php/session:/tmp",
    "php_timezone":"UTC",
    "php_disable_functions":"getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
    "php_max_execution_time":30,
    "php_max_input_time":60,
    "php_max_input_vars":1000
    "php_memory_limit":256,
    "php_post_max_size":256,
    "php_upload_max_filesize":256,
    "php_session_max_lifetime":1440,
    "php_allow_url_fopen":true,
    "php_short_open_tag":true
},
    "wp_title":"My Wordpress Website",
    "wp_username":"administrator",
    "wp_password":"administrator_password",
    "wp_email":"user@example.com",
    "wp_prefix":"wp_"
}'

RESPONSE

Type :- 201 Created.

Body :- 

{
  "wpid": 0,
  "server_id": 759,
  "server_uuid": "N2EzNjgxMTgtYzg4Yi00ZTg2LWFhNTktYTZhYzk4NTAwMTJk",
  "wp_title": "My Wordpress Website",
  "wp_username": "Administrator",
  "wp_password": "administrator_password",
  "wp_email": "user@example.com",
  "wp_prefix": "wp_",
  "database": {
    "id": 704,
    "created_at": "2021-09-19T15:28:12.363961999Z",
    "name": "wordpress_db",
    "server_id": 759,
    "collation": "",
    "users": null,
    "is_backup_enabled": false
  },

  "db_user": {
    "id": 549,
    "created_at": "2021-09-19T15:28:12.366412196Z",
    "user_name": "woredpress_db-user",
    "server_id": 759,
    "privs": [
      "ALL"
    ]
  },

  "web_stack": {
    "id": 1238,
    "server_id": 759,
    "server_uuid": "N2EzNjgxMTgtYzg4Yi00ZTg2LWFhNTktYTZhYzk4NTAwMTJk",
    "created_at": "2021-09-19T15:28:08.226707824Z",
    "name": "app-wordpress",
    "domains": [
      "wp.cloudstick.me"
    ],
    "php_version": "74",
    "is_active": true,
    "stack_type": "nginx",
    "public_path": "",
    "initial_public_path": "",
    "email": "user@domain.com",
    "is_node_js": false,
    "nodejs_port": 0,
    "webapp_type": "",
    "cj_protection": true,
    "xss_protection": true,
    "ms_protection": true,
    "php_process_manager": "dynamic",
    "php_max_children": 50,
    "php_max_requests": 500,
    "php_start_servers": 20,
    "php_min_spare_servers": 10,
    "php_max_spare_servers": 30
    "php_open_base_dir": "/home/user_name/apps/app-wordpress/:/var/lib/php/session:/tmp",
    "php_timezone": "UTC",
    "php_disable_functions": "getmyuid,passthru,leak,listen,diskfreespace,tmpfile,link,ignore_user_abort,shell_exec,dl,set_time_limit,exec,system,highlight_file,source,show_source,fpassthru,virtual,posix_ctermid,posix_getcwd,posix_getegid,posix_geteuid,posix_getgid,posix_getgrgid,posix_getgrnam,posix_getgroups,posix_getlogin,posix_getpgid,posix_getpgrp,posix_getpid,posix,_getppid,posix_getpwuid,posix_getrlimit,posix_getsid,posix_getuid,posix_isatty,posix_kill,posix_mkfifo,posix_setegid,posix_seteuid,posix_setgid,posix_setpgid,posix_setsid,posix_setuid,posix_times,posix_ttyname,posix_uname,proc_open,proc_close,proc_nice,proc_terminate,escapeshellcmd,ini_alter,popen,pcntl_exec,socket_accept,socket_bind,socket_clear_error,socket_close,socket_connect,symlink,posix_geteuid,ini_alter,socket_listen,socket_create_listen,socket_read,socket_create_pair,stream_socket_server",
    "php_max_execution_time": 30,
    "php_max_input_time": 60,
    "php_max_input_vars": 1000,
    "php_memory_limit": 256,
    "php_post_max_size": 256,
    "php_upload_max_filesize": 256,
    "php_session_max_lifetime": 1440,
    "php_allow_url_fopen": true,
    "php_short_open_tag": true,
    "add_php_open_base_dir": "",
    "is_backup_enabled": false,
    "sys_user": {
      "id": 2246,
      "created_at": "2021-09-19T15:24:45.937902Z",
      "user_name": "cloudstick_user",
      "email": "user@example.com"
      "password": "my_password",
      "server_id": 759,
      "is_sudo": {
        "Bool": false
        "Valid": false
      }
    },
    "nginx_cache": null
  }
}