Home >Backend Development >PHP Tutorial >install swoole on mac
1: Source code installation swoole
<code>git clone https://github.com/swoole/swoole-src.git cd swoole-src phpize ./configure make && make install</code>
2: Add in php.ini:
extension= swoole.so
Note: A common problem encountered when installing here is that php.ini cannot be found s position. I think mine was transplanted to /etc before, and then when I used brew to install something (I forgot exactly what was installed), the effective location of php.ini changed. The php.ini file in /etc is invalid.
Later I found a very direct method: just look at the phpinfo information directly, which will contain some locations of php.ini.
The above introduces how to install swoole on Mac, including the relevant aspects. I hope it will be helpful to friends who are interested in PHP tutorials.