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

前端 未结 10 2175
粉色の甜心
粉色の甜心 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 15:54

    Try to update packages:

    sudo apt-get update
    sudo apt-get upgrade
    /etc/init.d/apache2 restart
    

    and if it not help, try to reinstall php

    sudo apt-get remove --purge php5
    sudo apt-get install php5
    /etc/init.d/apache2 restart
    

提交回复
热议问题