run php script in debian
i have a php script and i want to run it on debian, by using commandline, not placing into apache web root
i'm using debian 5 lenny, apache2 and php5 as referred from the Internet, people often use "php <file_name.php>" to run a php file. However when i used 'php', it's said 'command not found'. I'm definitely sure that php5's successfully been installed, and I also tested by displaying a php file from localhost. |
Now I do't use debian or any apt-based OSes atm ... there's a dpkg option
that lists all the files which belong to package. Look through your php5 stuff using that; alternatively (given the way debian breaks packages up in little, individually installed chunks ...) maybe check whether there's some PHP packages that may hold the command-line executable that you didn't install after all? Cheers, Tink |
You're right Tink. The CLI is in the chunk named, strangely enough, "php5-cli"
tuananh87vn try this command: Code:
$: aptitude search ~i | grep php5 |
yayy, php5-cli, i missed this one
|
All times are GMT -5. The time now is 11:54 AM. |