1. Error report:
virtual memory exhausted: Cannot allocate memory
make: * [ext/fileinfo/libmagic/apprentice.lo] Error 1
Solution:
Adding –disable-fileinfo to ./configure solves the problem.
2. Error report:
collect2: ld returned 1 exit status
make: * [sapi/cli/php] Error 1
Solution:
vim Makefile
Jump to about line 98. Modify EXTRA_LIBS = ..... -lcrypt and add -liconv at the end
3. Error:
[root@iZ28rvl9qn3Z ~]# ERROR: No pool defined. at least one pool section must be specified in config file
…
Solution:
It turns out that php-fpm.conf includes /usr/local/php7/etc/php-fpm.d/*.conf
Only www.conf.defaul, you need to mv www.conf.default www.conf
The above introduces the error record of Linux installation of PHP, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.