Home >Backend Development >PHP Problem >How to modify php environment variables in linux?

How to modify php environment variables in linux?

coldplay.xixi
coldplay.xixiOriginal
2020-07-22 14:54:303355browse

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?

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"

How to modify php environment variables in linux?

##Read configuration

source /etc/profile

Related Learning recommendations:

PHP programming from entry to proficiency

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Related articles

See more