how to setup exec()?

  • Hi there,


    I would like to run EXEC command with my domain on my server. domain: tigyisolution.hu


    Where, what should I edit to run exec command. Exec don't write me any error, but I readed some about enable exec command and disable safe mode...

  • Hello ;


    Safe mode is not enabled with i-MSCP.


    You can disable/enable exec function via php editor except if you are using ITK.


    Thank you for using i-MSCP.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().


  • What does ITK. means? .. I should edit php.ini?


    ... Yep... It's disabled, but where to enable? :-)

    Edited once, last by tigyijanos ().

  • What does ITK. means? .. I should edit php.ini?


    ... Yep... It's disabled, but where to enable? :-)


    Re ;


    You must not edit php.ini manually. Look at php editor in the panel.


    ITK : http://mpm-itk.sesse.net/

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • ITK is a variant to use PHP with the webserver... maybe you use fastcgi or fcgid... then it's not itk...


    How to enable exec?
    use the built-in php-setting editor. Its in the domain-setting-editor which can be accessed with the reseller account


    <i-mscp-url>/reseller/domain_edit.php?edit_id=xx


    of course it should be enabled by the i-mscp admin for the reseller...


    /J

  • Re ;


    You must not edit php.ini manually. Look at php editor in the panel.


    I see, but they are all green... What does show_source means? :-)

  • I see, but they are all green... What does show_source means? :-)


    Teamviewer please ;)

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206


  • WRONG... :P


    1. PHP editor must be enabled for the reseller by the admin (including permissions for disabled functions)
    2. PHP editor must be be enabled by the reseller for the customer (including permission for disabled functions)
    3. The customer must enable exec functiont via PHP editor.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206

    Edited once, last by Nuxwin ().

  • I see, green means disabled... But if I enable cant my users attack my server? :-)
    [hr]

    WRONG... :P


    1. PHP editor must be enabled for the reseller by the admin (including permissions for disabled functions)
    2. PHP editor must be be enabled by the reseller for the customer (including permission for disabled functions)
    3. The customer must enable exec functiont via PHP editor.



    No, I just enabled it in main config... It works, but don't run my exec command..



    It wrotes only exec is enabled..

    Edited once, last by tigyijanos ().


  • Re ;


    Some PHP functions are considered dangerous but that also depends in the way PHP is running. Normally, with i-MSCP, it's relatively safe since each user is running PHP with its own privileges and file permissions are correctly set.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206