Skip to main content

phpize command not found

Comments

3 comments

  • cPanelMichael
    Hello, EasyApache 4 includes support for multiple versions of PHP, so you must utilize the PHP SCL specific to a version of PHP when using the command line. For instance, if you wanted to use the "phpize" command for PHP 5.6, you would use the full path:
    /opt/cpanel/ea-php56/root/usr/bin/phpize
    Thank you.
    0
  • inetbizo
    Hello, EasyApache 4 includes support for multiple versions of PHP, so you must utilize the PHP SCL specific to a version of PHP when using the command line. For instance, if you wanted to use the "phpize" command for PHP 5.6, you would use the full path:
    /opt/cpanel/ea-php56/root/usr/bin/phpize
    Thank you.

    You guys really need to get these into the /etc/bashrc as aliases to the real command in CP 60.x
    0
  • cPanelMichael
    You guys really need to get these into the /etc/bashrc as aliases to the real command in CP 60.x

    Hello @inetbizo, It's possible to define a specific PHP version in bash via a command such as:
    scl enable ea-php70 bash
    For instance, if you ran this command, "phpize" would then automatically link to the following location from the command line during your bash session:
    /opt/cpanel/ea-php70/root/usr/bin/phpize
    The downside of automatically making this the default behavior is that users could then run "phpize" and not understand why it's applied to a PHP version different to what was intended. That said, I encourage you to open a feature request if it's something you'd like us to consider: Submit A Feature Request Thank you.
    0

Please sign in to leave a comment.