dsogx84602 2015-03-25 11:20
浏览 52

Symfony2 WebApp部署

I'm trying to deploy a symfony2 webapp on a VPS server. That server has a different PHP version installed on web (5.4) and command line client (5.2). In order to install vendors with composer, I cannot use PHP-CLI because of its version (it needs PHAR support, included on PHP 5.3). Is there any way I can use php motor that uses Apache (5.4) on CLI?

I realize that PHP5.4 is installed on /opt/php54 but no bin folder is inside.

Thanks guys!

EDIT

By the way, which php command returns /usr/bin/php which is the PHP52 binary.

  • 写回答

1条回答 默认 最新

  • douzhuochao4027 2015-03-25 11:41
    关注

    You just need to find the PHP54 binary and execute the composer installation.

    The binary path depends on the linux distribution.

    These commands might help to find it:

    which php
    whereis php
    

    Please take a look at the /usr folder and /usr/local/bin/php.

    Or: just place a little script in the web folder with <?php echo PHP_BINDIR; echo PHP_BINARY; - it will show the path to php.

    评论

报告相同问题?

悬赏问题

  • ¥20 有人能用聚类分析帮我分析一下文本内容嘛
  • ¥15 请问Lammps做复合材料拉伸模拟,应力应变曲线问题
  • ¥30 python代码,帮调试
  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元