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:10] – [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 287: | Line 288: | ||
</ | </ | ||
| | ||
- | * step4: Build php-fpm (add option **--enable-fpm**)< | + | * Step4:If you don't find file configure, run script below< |
+ | ./buildconf --force | ||
+ | </ | ||
+ | * step5: Build php-fpm (add option **--enable-fpm**)< | ||
tar zxvf php-5.3.28.tar.gz | tar zxvf php-5.3.28.tar.gz | ||
cd php-5.3.28 | cd php-5.3.28 | ||
Line 293: | 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 1085: | 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.1598695826.txt.gz · Last modified: 2022/10/29 16:15 (external edit)