如何在使用php-fpm时从终端运行php -v

如何在使用php-fpm时从终端运行php -v

问题描述:

I have Nginx installed with PHP-FPM and I cant figure out how to run php -v into terminal it says that i need to install php5-cli. How else can I run php from terminal? I am using ubuntu. I just need php from terminal to run a cron

我用PHP-FPM安装了Nginx,我无法弄清楚如何运行php -v到终端它说 我需要安装php5-cli。 我怎样才能从终端运行php? 我正在使用ubuntu。 我只需要从终端运行php来运行cron p> div>

You need to find out if the PHP installation folder is in your PATH. You can check by doing "echo $PATH". if you don't find the PHP install folder there then that's probably the problem