Need help - exec function must be enabled (SPF and DKIM error)

Discussion in 'General discussions' started by Dominykas, Apr 7, 2015.

  1. David Henry

    David Henry Member

    Joined:
    Jul 31, 2017
    Messages:
    103
    Likes Received:
    11
    S.E:
    Expired
    L.T:
    Extended
    L.C:
    1
    almost every php extension is enabled and still cannot find the disabled function (exec) in the php.ini file. I think this error occured after jumping to php 7.0.
     
  2. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,705
    Likes Received:
    676
    S.E:
    2019-11-27 02:17:39
    L.T:
    Regular
    L.C:
    7
    Maybe you need to check with an experienced sys admin, this is the mwz forum ;)
    See if you still have the old version on the server. If so, you need to switch to the new version (or at least apply it to that cpanel or directory of mwz) to make it fully happen.
     
  3. David Henry

    David Henry Member

    Joined:
    Jul 31, 2017
    Messages:
    103
    Likes Received:
    11
    S.E:
    Expired
    L.T:
    Extended
    L.C:
    1
    The support is of no use. They don't provide support for WHM/Cpanel.
     
  4. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,705
    Likes Received:
    676
    S.E:
    2019-11-27 02:17:39
    L.T:
    Regular
    L.C:
    7
    If it is strictly related to whm/cpanel, you can submit tickets to cpanel directly :)
     
  5. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,705
    Likes Received:
    676
    S.E:
    2019-11-27 02:17:39
    L.T:
    Regular
    L.C:
    7
    Two other ideas crossed my mind: it could be
    # a disabled feature in whm tweaks or
    # some security plugin, e.g. csf.
     
  6. David Henry

    David Henry Member

    Joined:
    Jul 31, 2017
    Messages:
    103
    Likes Received:
    11
    S.E:
    Expired
    L.T:
    Extended
    L.C:
    1
    Thanks for that. I will see Cpanel
     
  7. David Henry

    David Henry Member

    Joined:
    Jul 31, 2017
    Messages:
    103
    Likes Received:
    11
    S.E:
    Expired
    L.T:
    Extended
    L.C:
    1
    The issue seems to be solved. I just re-configured this package and all is good. No more error. Screen Shot 2017-08-24 at 8.01.22 pm.png
     
    twisted1919 likes this.
  8. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,705
    Likes Received:
    676
    S.E:
    2019-11-27 02:17:39
    L.T:
    Regular
    L.C:
    7
    Glad you were able to get to the bottom of it ;)
     
  9. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    53
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3

    I'd like to brign this up again, I'm also having this same warning on a brand new server. I've also checked the PHP INI for disabled functions etc... and theres is none. I also did a PHP INFO check to make sure i was checking the correct version of PHP when doing the INI checks.

    Now I'd rather not install every single PHP extension as for one there isnt need to as it will only use more server resources the more extensions that are installed. Does anyone know what the actual extension is called than needs to be installed?

    Also when i checked the INI for all PHP Versions and it shows 0 Disabled Functions etc... in PHP INFO is says the following is disabled:

    Now i know those have nothing to do with the warning thats given but also i see the following under the Configure Command of PHP Info:

    Are any of them needed as when i installed MailWizz and it did all the checks everything Passed. If someone could let me know which PHP Extension is needed to remove the error that would be great.

    Thanks
     
  10. David Henry

    David Henry Member

    Joined:
    Jul 31, 2017
    Messages:
    103
    Likes Received:
    11
    S.E:
    Expired
    L.T:
    Extended
    L.C:
    1
    @sendmedialtd I dont know why this error occurs and its quite confusing if you are not able to see the disabled functions in php.ini file.

    Here are some solutions that might help you in figuring out the issue.

    1. If you have a managed server with Cpanel installed, you can ask your hosting provider to get the issue fixed.

    2. If you are like me, who had no support from the provider, you can play on with the error and google it. Upon googling you will be redirected to the php.ini file and check over there. However, in my instance, I was in the same position as you. There were no functions disabled and this issue occurred when i jumped to php7-0 and disabled all previous php versions.

    Based on the suggestions and support, make sure you are in the right place of php.ini. If you are sure that you are in the right path of php.ini, then try enabling this package in WHM. This should fix your issue.

    Screen Shot 2017-08-29 at 4.24.37 pm.png
     
  11. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    53
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3
    I've actually gone ahead and installed what said worked for you to see if it fixes me issue, how ever after doing so and restarting the server i still get the same issue.
     
  12. sendmedialtd

    sendmedialtd Active Member

    Joined:
    May 11, 2016
    Messages:
    230
    Likes Received:
    53
    S.E:
    Expired
    L.T:
    Regular
    L.C:
    3
    Right I've fixed this issue too:

    @twisted1919 you may want to add this to your documents too:

    Again this is for servers that have cPanel/WHM installed. Even though in PHP INI it shows that there are no disabled functions cPanel/WHM will add certain ones in there as default. The only way of changing this is by going to the following file:

    /opt/cpanel/ea-php70/root/etc/php-fpm.d/YOURDOMAIN.com.conf

    By default you will see the following:

    php_admin_value[disable_functions] = exec,passthru,shell_exec,system

    You need to remove exec from there and then save the file. Once saved Restart PHP-FPM and also Apache. You will now see that the issue is now resolved.
     
    OptiBiz1 likes this.
  13. twisted1919

    twisted1919 Administrator Staff Member

    Joined:
    Dec 27, 2014
    Messages:
    10,125
    Likes Received:
    2,352
  14. frm.mwz

    frm.mwz Well-Known Member

    Joined:
    Mar 8, 2016
    Messages:
    3,705
    Likes Received:
    676
    S.E:
    2019-11-27 02:17:39
    L.T:
    Regular
    L.C:
    7
  15. HappyMonkeys

    HappyMonkeys New Member

    Joined:
    Feb 24, 2019
    Messages:
    20
    Likes Received:
    0
    S.E:
    2019-08-23 20:34:50
    L.T:
    Extended
    L.C:
    1

Share This Page