Skip to main content

EA-10753 - PHP in terminal or cronjob is not working

Comments

7 comments

  • cPRex Jurassic Moderator
    Hey there! That's definitely odd as I would expect a "php -v" run as the user to report their local version. Here's an example from my personal server, with a cPanel user with shell access: $ php -v PHP 8.0.19 (cli) (built: Jun 1 2022 06:51:31) ( NTS ) Copyright (c) The PHP Group Zend Engine v4.0.19, Copyright (c) Zend Technologies
    If this only happens with one user, I'd recommend changing their PHP version to something else and then back again to see if that resolves the issue. If this is all users on the machine, I'd recommend a forced cPanel update.
    0
  • Benito
    Hello @cPRex, its a cPanel Solo server. Tried several php versions with the same outcome. V"a web browser is working fine. From cron or terminal, not.
    0
  • cPRex Jurassic Moderator
    That's definitely odd - could you submit a ticket to our team so we can check it out?
    0
  • Benito
    Yes, I opened the ticket #94453537 Thanks
    0
  • cPRex Jurassic Moderator
    Thanks for that - I'm following along on my end now.
    0
  • Benito
    Hello! For anyone with Ubuntu and the same problem here is the root of the problem and workaround by cPanel Team: Description These errors are generated when the ea-php*-snmp packages are installed and the user is set to jailshell in WHM > Manage Shell Access. We've opened an internal case for our development team to investigate this further. For reference, the case number is EA-10753. Follow this article to receive an email notification when a solution is published in the product. Workaround The issue can be corrected by changing the user's shell to Normal Shell* or Disabled Shell, or by removing the installed ea-php*-snmp packages via WHM > EasyApache 4 * Normal Shell should only be selected when the security risks of doing so are considered. Thanks
    0
  • cPRex Jurassic Moderator
    Thanks for posting that resolution - here's the public article page to go along with this:
    0

Please sign in to leave a comment.