我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在使用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

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

近期文章

  • HybridAuth小部件不会出现在Drupal网站上
  • 如何验证电子邮件以继续注册[关闭]
  • PHP按类名调用类的静态方法
  • 如何捕获脚本标记返回的值
  • 使用$ .post从表单接收php服务器中的数据
  • PHP选择带有三元运算符的动态选项[关闭]
  • PHP SESSION VAR存在但PHP消息:PHP注意:
  • 如何在字符串的第一个字符后添加空格
  • HHVM FastCGI配置问题 - ProxyPass失败
  • PHP popen管道在一次迭代后变为null
  • Google API Insufficient Permissions列出文件
  • 如何在单元测试中捕获无效的查询错误
  • 识别用户pc / internet是否有权登录?
  • 未定义索引:第12,15,16,17,18,19,20行中的文件
  • 如何检查变量值不存在[关闭]
  • Laravel Eloquent Model将所有值都插入为NULL
  • 在Windows服务器上安装php的ffmpeg模块
  • 效率:PhpExcel查询vs mysql服务器查询
  • 尝试创建日历时出现Javascript错误
  • MSSQL可以与当前的PHP 5.6和IIS 8一起使用

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华