testlink macos12
brew install php7.4
.zshrc
1 | export PATH="/usr/local/opt/php@7.4/bin:$PATH" |
后台启动
brew services start php@7.4
直接启动
/usr/local/opt/php@7.4/sbin/php-fpm –nodaemonize
创建证书
https://www.simplified.guide/macos/keychain-cert-code-signing-create
签名
codesign -s “YOUR CERTIFICATE NAME” –keychain ~/Library/Keychains/login.keychain-db /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so
修改httpd配置
/private/etc/apache2/httpd.conf
添加
LoadModule php7_module /usr/local/opt/php@7.4/lib/httpd/modules/libphp7.so "YOUR CERTIFICATE NAME"
文件末尾添加
1 | <FilesMatch \.php$> |
启动服务
sudo apachectl start
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 yinxianwei!
评论