ミライハック
  • Home
  • Categories
  • About

>> Home / LInux

NginxとPHPのコンパイルオプション

∵ Takayoshi Saito ∴ 2013-05-12 ∞ 1'

Nginxのコンパイルオプション

./configure  \
--conf-path=/etc/nginx/nginx.conf   \
--error-log-path=/var/log/nginx/error.log  \
--pid-path=/var/run/nginx/nginx.pid   \
--lock-path=/var/lock/nginx.lock   \
--user=nginx   \
--group=nginx   \
--with-http_stub_status_module   \
--with-http_ssl_module   \
--with-http_gzip_static_module   \
--with-http_realip_module   \
--http-log-path=/var/log/nginx/access.log   \
--http-client-body-temp-path=/var/tmp/nginx/client/   \
--http-proxy-temp-path=/var/tmp/nginx/proxy/   \
--http-fastcgi-temp-path=/var/tmp/nginx/fcgi/

PHPのコンパイルオプション(PHP-FPM使用時)

./configure' \
'--prefix=/usr/local/php' \
'--enable-mbstring' \
'--with-mysql' \
'--with-pdo-mysql' \
'--with-mysqli' \
'--enable-pcntl' \
'--enable-fpm' \
'--with-fpm-user=nginx' \
'--with-fpm-group=nginx' \
'--with-pcre-regex' \
'--with-zlib' \
'--with-curl' \
'--with-xsl' \
'--with-pear' \
'--enable-gd-jis-conv' \
'--without-unixODBC' \
'--disable-posix' \
'--enable-sysvmsg' \
'--enable-sysvshm' \
'--disable-sysvsem' \
'--with-config-file-path=/etc/php' \
'--with-gettext' \
'--enable-exif' \
'--with-mcrypt' \
'--with-mhash' \
'--enable-ftp' \
'--enable-zip' \
'--with-iconv' \
'--enable-intl' \
'--enable-sockets' \
'--with-openssl' \
'--with-curlwrappers' \
'--with-gd' \
'--enable-gd-native-ttf' \
'--with-jpeg-dir=/usr' \
'--with-png-dir=/usr' \
'--with-zlib-dir=/usr' \
'--with-xpm-dir=/usr' \
'--with-freetype-dir=/usr' \
'--with-libxml-dir=/usr' \
'--enable-soap' \
'--with-xmlrpc' \
'--with-xs' \
'--with-libdir=lib64' \
'--enable-bcmath' \
'--enable-cli'

makeおよびmake test

上記コンパイルオプションでconfigureが通ったならば、makeを実行します。NginxはそのままcheckinstallでRPMにしていますが、phpの方はいったんmake testを実行しています。make testを実行すると、通過できた処理のレポートが得られます。

=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped    :   29
Exts tested     :   49
---------------------------------------------------------------------

Number of tests : 12405             10169
Tests skipped   : 2236 ( 18.0%) --------
Tests warned    :    0 (  0.0%) (  0.0%)
Tests failed    :   17 (  0.1%) (  0.2%)
Expected fail   :   36 (  0.3%) (  0.4%)
Tests passed    : 10116 ( 81.5%) ( 99.5%)
---------------------------------------------------------------------
Time taken      :  332 seconds
=====================================================================

=====================================================================
EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
Test script to verify that magic methods should be called only once when accessing an unset property.   XFAIL REASON: Bug 63462 is not yet fixed
Test open_basedir configuration   XFAIL REASON: BUG: open_basedir cannot delete symlink to prohibited file. See also
bugs 48111 and 52176.
Inconsistencies when accessing protected members   XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Inconsistencies when accessing protected members - 2   XFAIL REASON: Discussion: http://marc.info/?l=php-internals&m=120221184420957&w=2
Bug #48770 (call_user_func_array() fails to call parent from inheriting class)   XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class)   XFAIL REASON: See Bug #48770
Bug #48770 (call_user_func_array() fails to call parent from inheriting class)   XFAIL REASON: See Bug #48770
Bug #63336 (invalid E_NOTICE error occur)   XFAIL REASON: Bug is not fixed yet
Initial value of static var in method depends on the include time of the class definition   XFAIL REASON: Maybe not a bug
DateTime::add() -- fall type2 type3   XFAIL REASON: Various bugs exist
DateTime::add() -- fall type3 type2   XFAIL REASON: Various bugs exist
DateTime::add() -- fall type3 type3   XFAIL REASON: Various bugs exist
DateTime::add() -- spring type2 type3   XFAIL REASON: Various bugs exist
DateTime::add() -- spring type3 type2   XFAIL REASON: Various bugs exist
DateTime::add() -- spring type3 type3   XFAIL REASON: Various bugs exist
DateTime::diff() -- fall type2 type3   XFAIL REASON: Various bugs exist
DateTime::diff() -- fall type3 type2   XFAIL REASON: Various bugs exist
DateTime::diff() -- fall type3 type3   XFAIL REASON: Various bugs exist
DateTime::diff() -- spring type2 type3   XFAIL REASON: Various bugs exist
DateTime::diff() -- spring type3 type2   XFAIL REASON: Various bugs exist
DateTime::diff() -- spring type3 type3   XFAIL REASON: Various bugs exist
DateTime::sub() -- fall type2 type3   XFAIL REASON: Various bugs exist
DateTime::sub() -- fall type3 type2   XFAIL REASON: Various bugs exist
DateTime::sub() -- fall type3 type3   XFAIL REASON: Various bugs exist
DateTime::sub() -- spring type2 type3   XFAIL REASON: Various bugs exist
DateTime::sub() -- spring type3 type2   XFAIL REASON: Various bugs exist
DateTime::sub() -- spring type3 type3   XFAIL REASON: Various bugs exist
Bug #53437 (Crash when using unserialized DatePeriod instance)   XFAIL REASON: Bug #53437 Not fixed yet
RFC: DateTime and Daylight Saving Time Transitions (zone type 3)   XFAIL REASON: RFC not implemented yet
Bug #42718 (unsafe_raw filter not applied when configured as default filter)   XFAIL REASON: FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write())   XFAIL REASON: Long term low priority bug, working on it
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write during exec   XFAIL REASON: Long term low priority bug, working on it
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write during exec   XFAIL REASON: Long term low priority bug, working on it
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - fatal error in write after exec   XFAIL REASON: Long term low priority bug, working on it
Bug #60634 (Segmentation fault when trying to die() in SessionHandler::write()) - exception in write after exec   XFAIL REASON: Long term low priority bug, working on it
Bug #45712 (NaN/INF comparison)   XFAIL REASON: Bug 45712 not fixed yet.
=====================================================================

=====================================================================
FAILED TEST SUMMARY
---------------------------------------------------------------------
Test HTTP_RAW_POST_DATA with excessive post length 
FTP login (SSL) 
Bug #51242 (Empty mysql.default_port does not default to 3306 anymore, but 0) 
#46127, openssl_sign/verify: accept different algos 
#48182,ssl handshake fails during asynchronous socket connection 
Bug #54992: Stream not closed and error not returned when SSL CN_match fails 
Test disk_free_space and its alias diskfreespace() functions : basic functionality 
Test lstat() and stat() functions: usage variations - creating file/subdir 
Test lstat() and stat() functions: usage variations - deleting file/subdir 
http-stream test 
Test setlocale() function : usage variations - Setting all available locales in the platform 
XMLReader: libxml2 XML Reader, DTD 
XMLReader: accessing empty and non existing attributes 
Bug #61605 (header_remove() does not remove all headers) 
basic function 
$_SERVER variable 
Bug #55726 (Changing the working directory makes router script inaccessible) 
=====================================================================

You may have found a problem in PHP.
This report can be automatically sent to the PHP QA team at
http://qa.php.net/reports and http://news.php.net/php.qa.reports
This gives us a better understanding of PHP's behavior.
If you don't want to send the report immediately you can choose
option "s" to save it.  You can then email it to qa-reports@lists.php.net later.
Do you want to send this report now? : Y

Please enter your email address.
(Your address will be mangled so that it will not go out on any
mailinglist in plain text): 

Posting to http://qa.php.net/buildtest-process.php

Thank you for helping to make PHP better.

上記で確認できたら、checkinstallでspecファイルを自動生成してRPM化しています。

Search

Categories
  • LInux
  • インターネット
  • インフラ
  • エッセイ
  • ゲーム
  • システム開発
  • セキュリティ
  • データサイエンス
  • 国際関係
  • 政治
  • 歴史
  • 社会学
  • 自己紹介
  • 行ってきた

Pages
  • 齊藤貴義
  • 職務経歴
  • スクレイピング・ハッキング・ラボ サポートページ
  • 『爆速開発を支えるClaude Code上級者テクニック』サポートページ

2026 © Takayoshi Saito | Twitter GitHub | Built on Zola