Linux method to modify PHP environment variables: first add the path, the code is [export PATH="$PATH:/cxwww/server/php/7.3.4/bin"]; then read the configuration, The code is [source /etc/profile].
How to modify PHP environment variables in Linux:
After installing PHP using the integrated environment, it cannot be executed directly php command, you need to modify the php environment variable at this time
vi /etc/profile
Add path
export PATH="$PATH:/cxwww/server/php/7.3.4/bin"
source /etc/profile
Related Learning recommendations:
The above is the detailed content of How to modify php environment variables in linux?. For more information, please follow other related articles on the PHP Chinese website!