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
php
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