package Cpanel::Easy::PHP5::SafePHPCGI;

# cpanel - Cpanel/Easy/PHP5/SafePHPCGI.pm         Copyright(c) 2011 cPanel, Inc.
#                                                           All rights Reserved.
# copyright@cpanel.net                                         http://cpanel.net
# This code is subject to the cPanel license. Unauthorized copying is prohibited

our $easyconfig = {
    'name' => 'Safe PHP CGI',
    'note' => 'prevents users from overriding system php.ini',
    'step' => {
        '0' => {
            'name'    => 'Move current PHP',
            'command' => sub {
                my ($self) = @_;
                $self->add_to_configure(
                    {
                        '--with-config-file-path'     => '/usr/local/lib',
                        '--with-config-file-scan-dir' => '/usr/local/lib/php.ini.d',
                    }
                );
                return ( 1, 'Ok' );
            },
        },
    },
};

1;
