{"id":227,"date":"2010-11-22T15:27:01","date_gmt":"2010-11-22T14:27:01","guid":{"rendered":""},"modified":"2010-11-22T15:27:28","modified_gmt":"2010-11-22T13:27:28","slug":"php-5214","status":"publish","type":"post","link":"https:\/\/drfugazi.eu.org\/en\/php-5214\/","title":{"rendered":"php-5.2.14"},"content":{"rendered":"<h3>Get the sources:<\/h3>\n<pre><code>root@hydra:~# su - soft\r\nsoft@hydra:~% cd php \r\nsoft@hydra:~\/php% wget \"http:\/\/pl.php.net\/get\/php-5.2.14.tar.gz\/from\/this\/mirror\"\r\n...\r\nsoft@hydra:~\/php% gtar -zxf php-5.2.14.tar.gz<\/code><\/pre>\n<h3>Correct version numbers in script (use sed):<\/h3>\n<pre><code>soft@hydra:~\/php% gsed \"s\/5.2.12\/5.2.14\/g\" drf_php-5.2.12_conf > drf_php-5.2.14_conf\r\nsoft@hydra:~\/php% chmod 754 !$\r\nchmod 754 drf_php-5.2.14_conf<\/code><\/pre>\n<h3>Check and correct path to apxs if needed:<\/h3>\n<pre><code>soft@hydra:~\/php% vi drf_php-5.2.14_conf<\/code><\/pre>\n<p><!--break--><\/p>\n<h3>Compilation with use of script (see attachement)<\/h3>\n<pre><code>soft@hydra:~\/php% .\/drf_php-5.2.14_conf                                             \r\ncc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007\/07\/12\r\nusage: cc [ options] files.  Use 'cc -flags' for details\r\nPATH=\/usr\/local\/bin:\/usr\/bin:\/opt\/SUNWspro\/bin:\/usr\/ccs\/bin:\/usr\/ucb\r\nCFLAGS=-fast -xautopar -D__const=const\r\nCPPFLAGS=-I\/usr\/local\/openldap\/include -I\/usr\/local\/include\r\nCXXFLAGS=-fast -xautopar -D__const=const\r\nLDFLAGS=-L\/usr\/local\/openldap\/lib -R\/usr\/local\/openldap\/lib -L\/usr\/local\/lib -R\/usr\/local\/lib\r\n=============================================\r\ndmake clean [y|n] ?\r\nn\r\n=============================================\r\nconfigure [y|n] ?\r\ny\r\ncreating cache .\/config.cache\r\nchecking for Cygwin environment... no\r\nchecking for mingw32 environment... no\r\nchecking for egrep... grep -E\r\nchecking for a sed that does not truncate output... \/usr\/local\/bin\/sed\r\nchecking host system type... sparc-sun-solaris2.10\r\nchecking target system type... sparc-sun-solaris2.10\r\nchecking for gcc... cc\r\n...\r\nThank you for using PHP.<\/code><\/pre>\n<h3>Please note CFLAGS, especially <b><code>-D__const=const<\/code><\/b>, without this compilation on Solaris might fail<\/h3>\n<pre><code>dmake [y|n] ?\r\ny\r\ndmake: defaulting to parallel mode.\r\nSee the man page dmake(1) for more information on setting up the .dmakerc file.\r\nhydra --> 1 job\r\n\/bin\/sh \/home\/soft\/php\/php-5.2.14\/libtool --silent --preserve-dup-deps --mode=compile cc -Iext\/date\/lib -Iext\/date\/ -I\/home\/soft\/php\/php-5.2.14\/ext\/date\/ -DPHP_ATOM_INC -I\/home\/soft\/php\/php-5.2.14\/include -I\/home\/soft\/php\/php-5.2.14\/main -I\/home\/soft\/php\/php-5.2.14 -I\/home\/soft\/php\/php-5.2.14\/ext\/date\/lib -I\/usr\/local\/include\/libxml2 -I\/usr\/local\/ssl\/include -I\/usr\/local\/curl\/include -I\/usr\/local\/include -I\/usr\/local\/include\/freetype2 -I\/usr\/local\/imap\/include -I\/usr\/local\/openldap\/include -I\/home\/soft\/php\/php-5.2.14\/ext\/mbstring\/oniguruma -I\/home\/soft\/php\/php-5.2.14\/ext\/mbstring\/libmbfl -I\/home\/soft\/php\/php-5.2.14\/ext\/mbstring\/libmbfl\/mbfl -I\/usr\/local\/mysql\/include\/mysql -I\/home\/soft\/php\/php-5.2.14\/TSRM -I\/home\/soft\/php\/php-5.2.14\/Zend  -I\/usr\/local\/openldap\/include -I\/usr\/local\/include -D_POSIX_PTHREAD_SEMANTICS  -I\/usr\/local\/include -fast -xautopar -D__const=const -xmemalign=8s   -c \/home\/soft\/php\/php-5.2.14\/ext\/date\/php_date.c -o ext\/date\/php_date.lo \r\nhydra --> 2 jobs\r\n...\r\nBuild complete.\r\nDon't forget to run 'make test'.\r\n\r\nCompilation successful\r\n=============================================<\/code><\/pre>\n<h3>Testing<\/h3>\n<pre><code>Test (dmake test || dmake check) [y|n] ?\r\ny\r\n\r\n=====================================================================\r\nPHP         : \/home\/soft\/php\/php-5.2.14\/sapi\/cli\/php \r\nPHP_SAPI    : cli\r\nPHP_VERSION : 5.2.14\r\nZEND_VERSION: 2.2.0\r\nPHP_OS      : SunOS - SunOS hydra 5.10 Generic_141444-09 sun4u\r\nINI actual  : \/home\/soft\/php\/php-5.2.14\/tmp-php.ini\r\nMore .INIs  :  \r\nCWD         : \/home\/soft\/php\/php-5.2.14\r\nExtra dirs  : \r\nVALGRIND    : Not used\r\n=====================================================================\r\nTIME START 2010-11-03 13:08:57\r\n...\r\n=====================================================================\r\nTIME END 2010-11-03 13:36:04\r\n\r\n=====================================================================\r\nTEST RESULT SUMMARY\r\n---------------------------------------------------------------------\r\nExts skipped    :   33\r\nExts tested     :   46\r\n---------------------------------------------------------------------\r\n\r\nNumber of tests : 9023              7179\r\nTests skipped   : 1844 ( 20.4%) --------\r\nTests warned    :    0 (  0.0%) (  0.0%)\r\nTests failed    :  171 (  1.9%) (  2.4%)\r\nExpected fail   :    4 (  0.0%) (  0.1%)\r\nTests passed    : 7004 ( 77.6%) ( 97.6%)\r\n---------------------------------------------------------------------\r\nTime taken      : 1627 seconds\r\n=====================================================================<\/code><\/pre>\n<h3>Download and patching sources to add funcionality of mail() function logging:<\/h3>\n<pre><code>soft@hydra:~\/php% wget http:\/\/choon.net\/opensource\/php\/php-5.2.14-mail-header.patch\r\n...\r\n2010-11-03 14:41:40 (15.8 KB\/s) - `php-5.2.14-mail-header.patch' saved [3383\/3383]\r\n\r\nsoft@hydra:~\/php% gpatch -p0 --verbose < php-5.2.14-mail-header.patch          \r\nHmm...  Looks like a unified diff to me...\r\nThe text leading up to this was:\r\n--------------------------\r\n|--- php-5.2.14\/ext\/standard\/mail.c.original\t2010-08-08 19:45:17.000000000 +0800\r\n|+++ php-5.2.14\/ext\/standard\/mail.c\t2010-08-08 19:45:35.000000000 +0800\r\n--------------------------\r\nPatching file php-5.2.14\/ext\/standard\/mail.c using Plan A...\r\nHunk #1 succeeded at 216.\r\nHunk #2 succeeded at 321.\r\ndone<\/code><\/pre>\n<h3>Compile and test again:<\/h3>\n<pre><code>soft@hydra:~\/php% .\/drf_php-5.2.14_conf \r\ncc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007\/07\/12\r\nusage: cc [ options] files.  Use 'cc -flags' for details\r\nPATH=\/usr\/local\/bin:\/usr\/bin:\/opt\/SUNWspro\/bin:\/usr\/ccs\/bin:\/usr\/ucb\r\n...<\/code><\/pre>\n<h3>Switch back to root and install:<\/h3>\n<pre><code>soft@hydra:~\/php% exit\r\nroot@hydra:~# cd \/home\/soft\/php\/php-5.2.14 \r\nroot@hydra:\/home\/soft\/php\/php-5.2.14# dmake install<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<h3>Get the sources:<\/h3>\n<pre><code>root@hydra:~# su - soft\r\nsoft@hydra:~% cd php \r\nsoft@hydra:~\/php% wget \"http:\/\/pl.php.net\/get\/php-5.2.14.tar.gz\/from\/this\/mirror\"\r\n...\r\nsoft@hydra:~\/php% gtar -zxf php-5.2.14.tar.gz<\/code><\/pre>\n<h3>Correct version numbers in script (use sed):<\/h3>\n<pre><code>soft@hydra:~\/php% gsed \"s\/5.2.12\/5.2.14\/g\" drf_php-5.2.12_conf > drf_php-5.2.14_conf\r\nsoft@hydra:~\/php% chmod 754 !$\r\nchmod 754 drf_php-5.2.14_conf<\/code><\/pre>\n<h3>Check and correct path to apxs if needed:<\/h3>\n<pre><code>soft@hydra:~\/php% vi drf_php-5.2.14_conf<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[10],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7M9Tz-3F","jetpack-related-posts":[{"id":224,"url":"https:\/\/drfugazi.eu.org\/en\/php-5214\/","url_meta":{"origin":227,"position":0},"title":"php-5.2.14","author":"drfugazi","date":"Wednesday November  3rd, 2010","format":false,"excerpt":"root@hydra:~# su - soft soft@hydra:~% cd php soft@hydra:~\/php% wget \"http:\/\/pl.php.net\/get\/php-5.2.14.tar.gz\/from\/this\/mirror\" ... soft@hydra:~\/php% gtar -zxf php-5.2.14.tar.gz soft@hydra:~\/php% gsed \"s\/5.2.12\/5.2.14\/g\" drf_php-5.2.12_conf > drf_php-5.2.14_conf soft@hydra:~\/php% chmod 754 !$ chmod 754 drf_php-5.2.14_conf Trzeba sprawdzi\u0107 i ewentualnie poprawi\u0107 \u015bcie\u017ck\u0119 do apxs soft@hydra:~\/php% vi drf_php-5.2.14_conf Kompilacja przy u\u017cyciu skryptu (w za\u0142\u0105czniku)","rel":"","context":"In \"Apache\"","block_context":{"text":"Apache","link":"https:\/\/drfugazi.eu.org\/en\/tag\/apache\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":225,"url":"https:\/\/drfugazi.eu.org\/en\/apache-2217\/","url_meta":{"origin":227,"position":1},"title":"apache-2.2.17","author":"drfugazi","date":"Tuesday November 16th, 2010","format":false,"excerpt":"The Apache HTTP Server Project is an effort to develop and maintain an open-source HTTP server for modern operating systems including UNIX and Windows NT. The goal of this project is to provide a secure, efficient and extensible server that provides HTTP services in sync with the current HTTP standards.\u2026","rel":"","context":"Similar post","block_context":{"text":"Similar post","link":""},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":223,"url":"https:\/\/drfugazi.eu.org\/en\/apache-2217\/","url_meta":{"origin":227,"position":2},"title":"apache-2.2.17","author":"drfugazi","date":"Wednesday November  3rd, 2010","format":false,"excerpt":"Projekt Apache HTTP Server, to przedsi\u0119wzi\u0119cie maj\u0105ce na celu rozw\u00f3j i utrzymywanie serwera HTTP o otwartym kodzie, dla nowoczesnych system\u00f3w operacyjnych, takich jak UNIX czy Windows NT. Celem tego projektu jest dostarczenie bezpiecznego, wydajnego i skalowalnego serwera, kt\u00f3ry dostarcza us\u0142ug zgodnych z aktualnymi standardami HTTP. Apache httpd jest najbardziej popularnym\u2026","rel":"","context":"In \"Apache\"","block_context":{"text":"Apache","link":"https:\/\/drfugazi.eu.org\/en\/tag\/apache\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":209,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-12-sieve-0117\/","url_meta":{"origin":227,"position":3},"title":"dovecot-1.2-sieve-0.1.17","author":"drfugazi","date":"Friday August 13th, 2010","format":false,"excerpt":"Dovecot Sieve is a fully rewritten Sieve implementation for Dovecot v1.2 and newer. The main reason for rewriting the Sieve engine was to provide more reliable script execution and to provide better error messages to users and system administrators. This implementation is part of the Pigeonhole project. Source: http:\/\/wiki.dovecot.org\/LDA\/Sieve\/Dovecot At\u2026","rel":"","context":"In \"Mail system\"","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/tag\/mail_system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":366,"url":"https:\/\/drfugazi.eu.org\/en\/pigeonhole-compilation\/","url_meta":{"origin":227,"position":4},"title":"Pigeonhole &#8211; compilation and installation","author":"drfugazi","date":"Friday July  6th, 2012","format":false,"excerpt":"You can download Pigeonhole for Dovecot from http:\/\/pigeonhole.dovecot.org\/download.html % wget http:\/\/www.rename-it.nl\/dovecot\/2.1\/dovecot-2.1-pigeonhole-0.3.1.tar.gz % tar -xf dovecot-2.1-pigeonhole-0.3.1.tar.gz This is my script to configure and compile Pigeonhole 0.3.1 for Dovecot 2.1","rel":"","context":"In &quot;Compilation&quot;","block_context":{"text":"Compilation","link":"https:\/\/drfugazi.eu.org\/en\/category\/compilation\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":208,"url":"https:\/\/drfugazi.eu.org\/en\/dovecot-1213\/","url_meta":{"origin":227,"position":5},"title":"dovecot-1.2.13","author":"drfugazi","date":"Friday August 13th, 2010","format":false,"excerpt":"Dovecot is an open source IMAP and POP3 email server for Linux\/UNIX-like systems, written with security primarily in mind. Dovecot is an excellent choice for both small and large installations. It's fast, simple to set up, requires no special administration and it uses very little memory. Source: http:\/\/dovecot.org\/ Below you\u2026","rel":"","context":"In \"Mail system\"","block_context":{"text":"Mail system","link":"https:\/\/drfugazi.eu.org\/en\/tag\/mail_system\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/227"}],"collection":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/comments?post=227"}],"version-history":[{"count":0,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/posts\/227\/revisions"}],"wp:attachment":[{"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/media?parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/categories?post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/drfugazi.eu.org\/en\/wp-json\/wp\/v2\/tags?post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}