安装phalcon时,启动php-fpm 报错:Class 'psr\container\containerinterface' not found in Unknown on line 0

因为phalcon4.0改了,加了了依赖条件,必须先安装psr扩展
git clone https://github.com/jbboehr/php-psr.git
cd php-psr
/usr/local/bin/phpize
./configure --with-php-config=/usr/local/bin/php-config
make
make test
make install
service php-fpm restart 即可

你可能感兴趣的:(php)