How to query the PHP Installation Path (virtual host) in unix environment)

Source: Internet
Author: User
How to query the PHP Installation Path (virtual host) in the unix environment in the past few days to set cornjob, but to set this, you need to know the php installation path; /usr/local/bin/php & nbsp; follow the absolute path of php, but I tried not to use how to query the PHP Installation Path (virtual host) in unix environment)
Set cornjob in research these days
However, you need to know the php installation path when Setting this parameter.

It is generally said on the Internet that/usr/local/bin/php follows the absolute path of php, but it cannot be used after I try it.

I have tried several phpinfo addresses, but they cannot be used.

So how can I see the php installation path on the server. Share:
------ Solution --------------------
*/1 *****/usr/local/etc/php5/bin/php>/home/xx/cronlog

This is performed once every minute. If you want to check whether the execution is as you want. You can add a day to record, and then several minutes to see how many logs have been printed.
------ Solution --------------------
The simplest method is to detect processes.
Ps-ef
------ Solution --------------------
Grep php
The paths listed below are basically.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.