A common method for modifying PHP default environment variables in Linux!

青灯夜游
Release: 2022-07-06 20:37:45
forward
2428 people have browsed it

How to modify the default environment variables of php under Linux? The following article will introduce to you how to modify the system PHP default environment variables under Linux. I hope it will be helpful to you.

A common method for modifying PHP default environment variables in Linux!

Current PHP version

A common method for modifying PHP default environment variables in Linux!

Change the default php5.6 to 7.3

cd /etc && vim /etc/profile
Copy after login

Pressito enter editing

Put the following paragraph at the bottom

export PATH=/www/server/php/73/bin:$PATH
Copy after login

Press esc and enter: wq!Then press Enter to exit

Then enter the following command to take effect

source /etc/profile
Copy after login

A common method for modifying PHP default environment variables in Linux!

##Related recommendations: "

Linux Video Tutorial》、《PHP Video Tutorial

The above is the detailed content of A common method for modifying PHP default environment variables in Linux!. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
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
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!