Mac OS X 自帶PHP環境gd庫安裝擴充freetype
問題: “Call to undefined function imagettftext()”
解決方法:
curl -s [http://php-osx.liip.ch/install.sh](https://link.jianshu.com/?t=http://php-osx.liip.ch/install.sh) | bash -s 7.3
sudo vim ~/.bash_profile
# 添加對應的
export PATH=/usr/local/Cellar/php/7.4.4/bin:$PATH
export PATH=/usr/local/Cellar/php/7.4.4/sbin:$PATH
sudo vi /etc/apache2/httpd.conf
#LoadModule php7_module libexec/apache2/libphp7.so
LoadModule php7_module /usr/local/Cellar/php/7.4.4/lib/httpd/modules/libphp7.so
#LoadModule perl_module libexec/apache2/mod_perl.so
source /.bash_profile
# 發現隻有當次其作用,修改對應的.zshrc
sudo vim ~/.zshrc
export PATH="/usr/local/Cellar/php/7.4.4/bin:$PATH"
export PATH="/usr/local/Cellar/php/7.4.4/sbin:$PATH"
# 将etc下面的配置檔案拷貝到自定義下的php中
cp /etc/php.ini /usr/local/etc/php/7.4/php.ini
sudo apachectl restart
php.ini重新配置後,需要重新配置xdebug和redis和其它。
cd /Users/demo/Downloads/code/xdebug-2.9.6/
phpsize
./phpize
which phpize
/usr/local/Cellar/php/7.4.4/bin/phpize
./configure --with-php-config=/usr/local/Cellar/php/7.4.4/bin/php-config
ls
open ./
make
php -v
cp modules/xdebug.so /usr/local/lib/php/pecl/320190902/xdebug.so
cd /usr/local/lib/php/pecl/
ls
mkdir /usr/local/lib/php/pecl/320190902
cp modules/xdebug.so /usr/local/lib/php/pecl/320190902/xdebug.so
vim /usr/local/etc/php/7.4/php.ini
php -v
histoyr
history
which phpize
cd /Users/demo/Downloads/code/phpredis-5.2.2/
phpize
./configure --with-php-config=/usr/local/Cellar/php/7.4.4/bin/php-config
cp modules/redis.so /usr/local/lib/php/pecl/320190902/redis.so
其它相關
CRMEB 引用的相關庫
form-builder PHP快速生成現代化表單
前端以Vue + RequireJS子產品化開發
PHPExcel資料導出,導出表格更加美觀,可視
EasyWeChat部署微信開發,微信接入更加快捷,簡單
背景應用ECharts實作完善的資料統計和分析