Ubuntu typing 'php' in terminal shows a lot of errors

前端 未结 10 2140
粉色の甜心
粉色の甜心 2020-12-07 15:17

I\'m using Ubuntu 13.10 and php is installed and working perfectly. But, when I type php in the terminal, it lists a lot of errors (and after that, it goes to w

相关标签:
10条回答
  • 2020-12-07 16:01

    You should try a reinstall through apt-get

    sudo apt-get remove php
    sudo apt-get install php
    

    In most cases it is enough to just reinstall the offending extension.

    sudo apt-get remove php5-snmp
    
    0 讨论(0)
  • 2020-12-07 16:03

    Simply remove php5-snmp package. You can use this command in a console to do so:

    sudo apt-get remove php5-snmp
    

    With PHP 7, the package is php7.0-snmp:

    sudo apt-get remove php7.0-snmp
    
    0 讨论(0)
  • 2020-12-07 16:04
    apt-get install snmp-mibs-downloader
    

    Isn't this the best answer? Found @ https://serverfault.com/questions/440285/why-does-snmp-fail-to-use-its-own-mibs

    0 讨论(0)
  • 2020-12-07 16:05

    This also helped me. sudo apt-get install snmp

    https://www.digitalocean.com/community/questions/installed-php-7-0-now-returns-errors

    0 讨论(0)
提交回复
热议问题