php:buildphpapachenginxfromsource
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
php:buildphpapachenginxfromsource [2020/08/29 10:11] – [Build PHP with php-fpm] admin | php:buildphpapachenginxfromsource [2024/10/28 05:24] (current) – [Basic config] admin | ||
---|---|---|---|
Line 5: | Line 5: | ||
yum install gcc-c++ | yum install gcc-c++ | ||
yum install automake | yum install automake | ||
+ | yum install make | ||
</ | </ | ||
===== Build and config PHP and Nginx ===== | ===== Build and config PHP and Nginx ===== | ||
Line 288: | Line 289: | ||
| | ||
* Step4:If you don't find file configure, run script below< | * Step4:If you don't find file configure, run script below< | ||
+ | ./buildconf --force | ||
</ | </ | ||
* step5: Build php-fpm (add option **--enable-fpm**)< | * step5: Build php-fpm (add option **--enable-fpm**)< | ||
Line 296: | Line 297: | ||
make & make install | make & make install | ||
cp php.ini-production / | cp php.ini-production / | ||
+ | </ | ||
+ | === Build PHP7.4 with php-fpm === | ||
+ | <code bash> | ||
+ | ./configure --prefix=/ | ||
+ | </ | ||
+ | configure: error: Package requirements (oniguruma) were not met | ||
</ | </ | ||
=== Script start php-fpm === | === Script start php-fpm === | ||
Line 1088: | Line 1095: | ||
session.save_path = "/ | session.save_path = "/ | ||
upload_max_filesize = 20M | upload_max_filesize = 20M | ||
- | post_max_size = 8M | + | post_max_size = 20M |
</ | </ | ||
==== PHP check ==== | ==== PHP check ==== |
php/buildphpapachenginxfromsource.1598695903.txt.gz · Last modified: 2022/10/29 16:15 (external edit)