php:buildphpapachenginxfromsource
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| php:buildphpapachenginxfromsource [2018/04/11 16:24] – [Script start php-cgi] 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 278: | Line 279: | ||
| yum install libxml2-devel | yum install libxml2-devel | ||
| yum install libxslt-devel | yum install libxslt-devel | ||
| + | yum install bison bison-devel | ||
| </ | </ | ||
| * step2: Build libmcrypt: libmcrypt-2.5.8.tar.gz | * step2: Build libmcrypt: libmcrypt-2.5.8.tar.gz | ||
| Line 286: | 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 292: | 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 563: | Line 574: | ||
| ===== Memcache ===== | ===== Memcache ===== | ||
| ==== Build and Install Memcache server ==== | ==== Build and Install Memcache server ==== | ||
| - | - step1: Install | + | - step1: Install |
| yum install libevent-devel | yum install libevent-devel | ||
| </ | </ | ||
| - | - step2: | + | - step2: |
| wget http:// | wget http:// | ||
| </ | </ | ||
| - | - step3: | + | - step3: |
| tar xvf memcached-1.4.22.tar.gz | tar xvf memcached-1.4.22.tar.gz | ||
| cd memcached-1.4.22 | cd memcached-1.4.22 | ||
| Line 1084: | 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.1523463873.txt.gz · Last modified: (external edit)
