当前位置:首页 > 操作系统 > Linux

Linux安装php报错记录

1.报错:
virtual memory exhausted: Cannot allocate memory
make: * [ext/fileinfo/libmagic/apprentice.lo] Error 1
解决方法:
Adding –disable-fileinfo to ./configure solves the problem.

2.报错:
collect2: ld returned 1 exit status
make: * [sapi/cli/php] Error 1
解决方法:
vim Makefile
跳到大概98行 修改EXTRA_LIBS = ….. -lcrypt 在最后加上 -liconv

3.报错:
[root@iZ28rvl9qn3Z ~]# ERROR: No pool defined. at least one pool section must be specified in config file
……
解决方法:
原来php-fpm.conf 里include /usr/local/php7/etc/php-fpm.d/*.conf
只有www.conf.defaul, 需将 mv www.conf.default www.conf

').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($('
  • ').text(i)); }; $numbering.fadeIn(1700); }); });

    以上就介绍了Linux安装php报错记录,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。


    【说明】本文章由站长整理发布,文章内容不代表本站观点,如文中有侵权行为,请与本站客服联系(QQ:254677821)!