donglian7879
2015-06-26 06:58
浏览 22
已采纳

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?

图片转代码服务由CSDN问答提供 功能建议

不幸的是我无法通过控制台访问Droplet,只能通过Vesta面板访问我需要设置cron作业 。 但是,我找不到正确的PHP路径。 现在该命令行看起来并且它不起作用:

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

请告诉我什么选项而不是“/ usr / local / vesta / bin / php5 “我可以试试吗?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongwuwan5646 2015-06-26 07:19
    已采纳

    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);
    
    点赞 打赏 评论

相关推荐 更多相似问题