PHP-FPM as default option when creating website

Discussion in 'Tips/Tricks/Mods' started by SupuS, Aug 8, 2014.

  1. SupuS

    SupuS Member HowtoForge Supporter

    Hi,

    if fast-cgi is not good default option for you when creating website you can easily change it. Edit file

    Code:
    /usr/local/ispconfig/interface/web/sites/form/web_domain.tform.php
    and change:

    Code:
    'php' => array (
                            'datatype' => 'VARCHAR',
                            'formtype' => 'SELECT',
                            'default' => '[COLOR="Red"]fast-cgi[/COLOR]',
                            'valuelimit' => 'client:web_php_options',
                            'value'  => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM'),
                            'searchable' => 2
                    ),
    to

    Code:
    'php' => array (
                            'datatype' => 'VARCHAR',
                            'formtype' => 'SELECT',
                            'default' => '[COLOR="Red"]php-fpm[/COLOR]',
                            'valuelimit' => 'client:web_php_options',
                            'value'  => array('no' => 'disabled_txt', 'fast-cgi' => 'Fast-CGI', 'cgi' => 'CGI', 'mod' => 'Mod-PHP', 'suphp' => 'SuPHP', 'php-fpm' => 'PHP-FPM'),
                            'searchable' => 2
                    ),
    You can set any other default php of course :) Don't forget change it again after ISPConfig upgrade.
     

Share This Page