1.检查php版本是不是支持线程安全的
php -i | grep Thread
You should expect:Thread Safety => enabled
If you have Thread Safety enabled, it should be the case that fixing the permissions on php_dir will fix your problem.
If you do not, you will have to rebuild, or install from another source, a Thread Safe build of PHP.
去php.net下载压缩包,解压并暗转下面的链接操作就可以了
very good:
http://stackoverflow.com/questions/22232865/how-to-enable-pthreads-on-mamp