Change the default label for php version [SOLVED]

Discussion in 'ISPConfig 3 Priority Support' started by SupuS, Nov 25, 2016.

  1. SupuS

    SupuS Member HowtoForge Supporter

    Hi,
    is there a any way to change label for default php-fpm version? Now we have these options:
    • Default
    • PHP 5.4
    • PHP 5.5
    • PHP 7
    It works fine but it is not too clear for our customers. Is it possible to change it to something more descriptive text? Something like this?
    • PHP 5.4
    • PHP 5.5
    • PHP 5.6 (Default)
    • PHP 7
    Thank you
     
    Last edited: Nov 25, 2016
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's hardcoded, so you can't change it at the moment if you do not want to alter the sourcecode.
     
  3. SupuS

    SupuS Member HowtoForge Supporter

    Hi Till,
    thank you for answer. And if I want to alter the sourcecode? Where is this value located?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    This should be line 255 in /usr/local/ispconfig/interface/web/sites/web_vhost_domain_edit.php

    $php_select = "<option value=''>Default</option>";
     
  5. SupuS

    SupuS Member HowtoForge Supporter

    Hi Till,

    thank you for advice. I tried edit file you mentioned but without effect. I found template files where I edited "Default" value and it works as I need. The files are:

    /usr/local/ispconfig/interface/web/sites/templates/web_domain_edit.htm
    /usr/local/ispconfig/interface/web/sites/templates/web_vhost_subdomain_edit.htm

    for ISPConfig 3.0.5.4 and

    /usr/local/ispconfig/interface/web/sites/templates/web_vhost_domain_edit.htm

    for ISPConfig 3.1.1
     
    till likes this.

Share This Page