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

How to modify php.ini under mac

藏色散人
藏色散人 Original
2020-07-23 13:40:51 4673browse

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

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

:/;extension=php_gd2.dll

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 visitPHP 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!

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