donglian7879
donglian7879
2015-06-26 06:58

CentOS 6.5 Droplet中的PHP路径在哪里?

已采纳

Unfortunately I do not have access to the droplet via console, only by Vesta panel and I need to set up cron job. However, I can not find the right path to PHP. Now that command line looks that and it does not work:

/usr/local/vesta/bin/php5 -c /home/admin/web/ -q /home/admin/web/mysite.com/public_html/crop_scripts/cron.php

Please tell me what options instead of "/usr/local/vesta/bin/php5" I can try?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

1条回答

  • dongwuwan5646 dongwuwan5646 6年前

    what does this code show when you access it through your web server (assuming exec call is allowed)

    <?php
    $output = array();
    exec('which php',$output);
    var_dump($output);
    
    点赞 评论 复制链接分享