How to query the PHP Installation Path (virtual host) in a unix environment)
Source: Internet
Author: User
How to query the PHP Installation Path (virtual host) in unix environment) in the past few days, we have been studying how to set cornjob, but we need to know the php Installation Path. on the Internet, we usually say that/usr/local/bin/php is followed by the php absolute path, but I tried it and couldn't use it. I have checked that phpinfo cannot be used at any address. so how can I see the php installation path on the server ., */1 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.
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 | grep php
The paths listed below are basically.
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.