Run php file via command line on an ubuntu linux server
<p>I am trying to run a php file on a ubuntu linux server but get a 'command not found' error when i run "php file_name.php" </p>

<p>Searching online, i found an article that suggested I run "sudo aptitude install php5-cli" which I did and restarted apache afterwards but I still get this error. </p>

<p>How do I fix this?</p>
