Home > Article > Backend Development > How to modify php.ini under mac
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.
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:
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!