Home > Backend Development > PHP Problem > How to modify php.ini under mac

How to modify php.ini under mac

藏色散人
Release: 2023-03-03 06:46:01
Original
4865 people have browsed it

How to modify php.ini under mac: first enter the folder and back it up; then use the command "sudo cp php.ini.default php.ini" in the terminal; then enter the command ":/; extension=php_gd2.dll"; finally delete the preceding semicolon.

How to modify php.ini under mac

Modify php.ini under Mac

Take modification of ";extension=php_gd2.dll" as an example

1: First, enter the folder, then make a backup copy, and then edit it. The instructions in the terminal are as follows:

cd /etc/  
sudo cp php.ini.default php.ini  
sudo vi php.ini
Copy after login

2: Search for ";extension=php_gd2" in editing mode .dll", the terminal command is as follows:

:/;extension=php_gd2.dll
Copy after login

The search results are as follows:

How to modify php.ini under mac

3: Delete the preceding semicolon

4: Just save and exit.

For more related technical knowledge, please visit PHP Chinese website!

The above is the detailed content of How to modify php.ini under 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