# Make sure you install these package:
- php5-cli (those five are dependency of php5-cli)
sudo apt-get install php5 libapache2-mod-php5 php5-cli php-pear# Make a PHP test file echoing "Running PHP file via Linux terminal ... " and save it as myfile.php
# Run PHP file:
php myfile.php# You will get this message:
PHP Deprecated: Comments starting with '#' are deprecated in# Open /etc/php5/cli/conf.d/mcrypt.ini with your favourite editor like vi or gedit. You will see the content of mcrypt.ini
/etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
# configuration for php MCrypt module# Replace sign '#' in the first line with ';'.
Run myfile.php once again and ta-daa... You will see
Running PHP file via Linux terminal ...in the Terminal. Enjoy!