webCOMAND

io_comand_process/process.php Configuration

The server configuration file is located in config/io_comand_process/process.php.

  • cms_logger_enabled - Defines whether the API will log changes to the repository to disk. Use if the Web Socket Server is enabled, which consumes this data.
  • cms_logger_path - The fully qualified path to where CMS logs will be read/written.
  • process_path - The fully qualified path to where process management files will be read/written.
  • perl_path - The fully qualified path to the PERL executable.  Used to execute #PERL cScript blocks.
  • php_path - The fully qualified path to the PHP executable.  Used to execute #PHP cScript blocks.
  • php_env - Additional environment variables to make available to processes executed by the API using PHP. In Windows environments you will need to use this to specify the path to ImageMagick like this: 'php_env' => ['PATH'=>'C:\xampp\imagick'].
<?php
/**
 * Defines configuration parameters for all processes spawned by the COMAND API, both in the foreground
 * and background.
 */
$config = [
    // Defines whether the API will log changes to the repository to disk. Use if the Web Socket Server is enabled, which consumes this data.
    'cms_logger_enabled' => TRUE,
    // The fully qualified path to where CMS logs will be read/written.
    'cms_logger_path' => COMAND_HOME.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'cms_logs',
    // The fully qualified path to where process management files will be read/written.
    'process_path' => COMAND_HOME.DIRECTORY_SEPARATOR.'system'.DIRECTORY_SEPARATOR.'processes',
    // The fully qualified path to the PERL executable.
    'perl_path' => '/usr/bin/perl',
    // The fully qualified path to the PHP executable.
    'php_path' => '/usr/bin/php',
    // Additional environment variables to make available to processes executed by the API using PHP. In Windows environments you
    // will need to use this to specify the path to ImageMagick like this: 'php_env' => ['PATH'=>'C:\xampp\imagick']
    'php_env' => NULL
];