system_requirements:
    key:
        first_viewing: true
    tab: 0
    tabs:
        0:
            edit_mode:
                enabled: true
                on: true
            fields:
                description_unmet:
                    full_width: true
                    snippet:
                        html: |
                            <h1>System Requirements</h1>
                            <p>It looks like your server doesn't meet the requirements for Zenario.</p>
                
                sub_table:
                    type: grouping
                    name: sub_table
                
                server:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: Web Server
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_server: &show_section
                    grouping: sub_table
                    type: toggle
                    redraw_onchange: true
                    same_row: true
                    visible_if: "zenarioAW.togglePressed(field, 1)"
                server_1:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: Apache http server version 2.4.7 or later
                    visible_if: zenarioAW.togglePressed(field)
                directory_indexing_warning:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_level
                    snippet:
                        html: |
                            In your Apache config you have directory indexing enabled.
                            
                            This can be a serious secuirity vulnerability as it allows
                            visitors to browse and view private images and downloads.
                            
                            Please add <code>Options -Indexes</code> to either your
                            Apache config or your .htaccess file to disable this.
                    visible_if: zenarioAW.togglePressed(field)
                php:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: PHP
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_php: *show_section
                php_1:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: PHP version 7.2 or later, version 8.0 or later recommended
                    visible_if: zenarioAW.togglePressed(field)
                opcache_misconfigured:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_level
                    snippet:
                        html: |
                            In your <code>php.ini</code> you have <code>opcache.enable</code>
                            turned on, and you have <code>opcache.dups_fix</code> turned off.
                            
                            This may cause occasional PHP &ldquo;fatal errors&rdquo; on your site.
                            
                            Please edit your <code>php.ini</code> and either turn <code>opcache.enable</code> off
                            or else turn <code>opcache.dups_fix</code> on.
                    visible_if: zenarioAW.togglePressed(field)
                mysql:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: MySQL
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_mysql: *show_section
                mysql_1:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: MySQLi extension enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                mysql_2:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: MySQL client and MySQL server version 5.7 or later
                    visible_if: zenarioAW.togglePressed(field)
                mb:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: Unicode Support
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_mb: *show_section
                mb_1:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: ctype extension enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                mb_2:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: mbstring extension enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                gd:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: Image Manipulation
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_gd: *show_section
                gd_1:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: GD Library enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                gd_2:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: GIF Read Support enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                gd_3:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: JPG Support enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                gd_4:
                    grouping: sub_table
                    full_width: true
                    snippet:
                        html: PNG Support enabled in PHP
                    visible_if: zenarioAW.togglePressed(field)
                optional:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_level
                    snippet:
                        html: Optional requirements
                    visible_if: zenarioAW.togglePressed(field, 1)
                show_optional: *show_section
                optional_mod_deflate:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            deflate module enabled in Apache
                            <br/><small>Needed for compressing files, for a faster page-load</small>
                    visible_if: zenarioAW.togglePressed(field)
                optional_mod_expires:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            expires module enabled in Apache
                            <br/><small>Needed for images and files to be cached in the visitors browser, for a faster page-load</small>
                    visible_if: zenarioAW.togglePressed(field)
                optional_mod_rewrite:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            rewrite module enabled in Apache
                            <br/><small>Needed for friendly URLs</small>
                    visible_if: zenarioAW.togglePressed(field)
                optional_curl:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            curl extension enabled in PHP
                            <br/><small>Needed for some security checks, for GeoIP services, and potentially other custom uses.</small>
                    visible_if: zenarioAW.togglePressed(field)
                optional_zip:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            zip extension enabled in PHP
                            <br/><small>Needed for creating document extracts</small>
                    visible_if: zenarioAW.togglePressed(field)
                optional_xml:
                    grouping: sub_table
                    full_width: true
                    row_class: sub_field
                    snippet:
                        html: |
                            xml extension enabled in PHP
                            <br/><small>Needed for uploading PDF documents</small>
                    visible_if: zenarioAW.togglePressed(field)
                
                
                continue:
                    value: Continue
                    type: submit
                    full_width: true
                    style: |
                        float: right;
                check_again:
                    value: Check again
                    type: submit
                    same_row: true
                    style: |
                        float: right;
