How to deploy php environment variables on mac

王林
Release: 2023-03-11 14:24:01
Original
3863 people have browsed it

How to deploy php environment variables on mac: first open the configuration file; then enter the php path, such as [export PATH="/Applications/MAMP/bin/php/php7.2.8/bin:$PATH"]; Finally, re-run the configuration file.

How to deploy php environment variables on mac

The operating environment of this article: macos x system, php 7.3, macbook pro computer.

It is not difficult to deploy PHP environment variables on a Mac computer. You only need to follow the steps below to complete it step by step.

Specific steps:

Open the configuration file

vim ~/.bash_profile
Copy after login

Enter your target PHP path

export PATH="/Applications/MAMP/bin/php/php7.2.8/bin:$PATH"
Copy after login

Then exit and save, run .bash_profile File

source .bash_profile
Copy after login

Check whether it takes effect

which php
Copy after login

How to deploy php environment variables on mac

##Related video sharing:

php video tutorial

The above is the detailed content of How to deploy php environment variables on mac. 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!