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

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 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);
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?