How to modify php environment variables in linux?

coldplay.xixi
Release: 2023-03-02 21:54:01
Original
3259 people have browsed it

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
Copy after login

Add path

export PATH="$PATH:/cxwww/server/php/7.3.4/bin"
Copy after login

How to modify php environment variables in linux?

##Read configuration

source /etc/profile
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!