{"id":176147,"date":"2013-04-10T01:14:03","date_gmt":"2013-04-09T21:14:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=176147"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=176147","title":{"rendered":"<span class=\"post_title\">\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 php 5.2 \u0438 php 5.3 \u043d\u0430 Ubuntu 12.04<\/span>"},"content":{"rendered":"<div class=\"content html_format\">       \u0418\u0441\u043a\u0430\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e ubuntu 10.04 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c. \u0412\u0440\u0435\u043c\u044f \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 ~1 \u0447\u0430\u0441. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u043c dev \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u043e\u0434 Drupal 6 \u0438 7 \u0438 \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u0435\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PHP 5.2.<\/p>\n<p>  <a name=\"habracut\"><\/a>\u041d\u0435 \u0441\u043c\u043e\u0442\u0440\u044f \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e Drupal 7 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 PHP 5.3, Drupal 6 \u043f\u043e-\u043f\u0440\u0435\u0436\u043d\u0435\u043c\u0443 \u0447\u0443\u0432\u0441\u0442\u0432\u0443\u0435\u0442 \u0441\u0435\u0431\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u043b\u0443\u0447\u0448\u0435 \u0441 PHP 5.2. \u0425\u043e\u0442\u044f \u044f\u0434\u0440\u043e D6 \u0434\u0430\u0432\u043d\u043e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e \u0441 PHP 5.3, \u0443 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0430 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u0435\u0442 \u043d\u0435\u0432\u044b\u043d\u043e\u0441\u0438\u043c\u0430\u044f \u0438\u043a\u043e\u0442\u0430, \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u044e\u0442 \u0437\u0430\u043f\u0440\u043e\u0441 \u043e \u043e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0438 \u043c\u043e\u0434\u0443\u043b\u044f \u0434\u043e \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0434\u043b\u044f D7 \u0438 D6, \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0431\u043e\u043b\u0435\u0435 \u0443\u0434\u043e\u0431\u043d\u043e\u0439 \u043f\u0440\u0438 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u043e\u0431\u043e\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439 PHP. (\u043f\u0440\u0438\u043c. \u0442\u0430\u0436\u0435 \u044d\u0442\u043e \u043d\u0435\u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e \u0443\u043f\u0440\u043e\u0449\u0430\u0435\u0442 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0438 \u0441\u043e\u043f\u0440\u043e\u0432\u043e\u0436\u0434\u0435\u043d\u0438\u0435 dev \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u043f\u0443\u0442\u0435\u043c \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0441 5.2)<\/p>\n<p>  \u041e\u0434\u043d\u0438\u043c \u0438\u0437 \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u0432 \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 mod_php5 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 PHP 5.3, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f FastCGI \u043c\u043e\u0434\u0443\u043b\u044f \u043f\u0440\u0438 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043a\u0440\u0438\u043f\u0442\u043e\u0432 \u043f\u043e\u0434 PHP 5.2. \u0421\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0434\u043b\u044f Ubuntu 12.04, \u043c\u043e\u0436\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c PHP 5.3 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f \u0438 \u0437\u0430\u0442\u0435\u043c \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c PHP 5.2. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 PHP 5.3 \u0438\u0437 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0435\u0432 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u0443\u0436\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u043b\u0438, \u0442\u0430\u043a \u0447\u0442\u043e \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0440\u0435\u0448\u0438\u043c, \u0447\u0442\u043e \u043e\u043d\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<p>  <code>sudo apt-get install php5 php5-common php5-cli php5-dev php5-mysql phpmyadmin php5-pgsql phppgadmin php5-gd php5-mcrypt php5-curl php-pear libapache2-mod-php5 php5-xdebug php5-codesniffer<\/code><\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0445\u043e\u0442\u044f \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0435\u043d \u043d\u0430 \u0442\u043e\u043c \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c PHP 5.2, \u043e\u0431\u0435 \u0432\u0435\u0440\u0441\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0442 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e \u0445\u043e\u0440\u043e\u0448\u043e.<\/p>\n<p>  <b>\u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 PHP<\/b><\/p>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430 \u0441 <a href=\"http:\/\/php.net\/releases\/\">\u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u043d\u0435\u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u043c\u044b\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u0432<\/a><\/p>\n<p>  \u042f \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u043e \u043d\u0430\u0447\u0430\u043b \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 5.2.10 (\u044d\u0442\u0430 \u0432\u0435\u0440\u0441\u0438\u044f \u0431\u044b\u043b\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u043d\u0430 \u043d\u0430\u0448\u0438\u0445 stage \u0441\u0435\u0440\u0432\u0435\u0440\u0430\u0445) \u043d\u043e \u0431\u044b\u043b \u0432\u043d\u0435\u0435\u0437\u0430\u043f\u043d\u043e \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043e\u0448\u0438\u0431\u043a\u043e\u0439 OpenSSL \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  <code>\/usr\/include\/openssl\/conf.h:132:7: note: expected 'struct lhash_st_CONF_VALUE *' but argument is of type 'int *' make: *** [ext\/openssl\/openssl.lo] Error 1<\/code><\/p>\n<p>  \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u044f \u043d\u0435 \u0441\u043c\u043e\u0433 \u043d\u0430\u0439\u0442\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0433\u043e \u0444\u0438\u043a\u0441\u0430 (\u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u043c\u043e\u0433\u043e), \u043d\u043e \u044d\u0442\u0430\u043f \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u043b\u0441\u044f \u0441 \u0441\u0430\u043c\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0439 \u0432\u0435\u0440\u0441\u0438\u0435\u0439 5.2.17, \u0432\u044b\u0434\u0430\u0432 \u0432\u043c\u0435\u0441\u0442\u043e \u044d\u0442\u043e\u0439, \u043a\u0443\u0447\u0443 \u0434\u0440\u0443\u0433\u0438\u0445 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>  \u0427\u0442\u043e \u0436, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043c \u0438 \u0440\u0430\u0441\u043f\u0430\u043a\u0443\u0435\u043c \u0438\u0441\u0445\u043e\u0434\u043d\u0438\u043a\u0438 \u0432 \u043f\u0430\u043f\u043a\u0443 <i>~\/Downloads\/php-5.2.17<\/i><\/p>\n<p>  <code>mkdir -p ~\/Downloads\/php-5.2.17 cd ~\/Downloads\/php-5.2.17 wget http:\/\/museum.php.net\/php5\/php-5.2.17.tar.gz tar zxf php-5.2.17.tar.gz<\/code><\/p>\n<p>  <b>Configure<\/b><\/p>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043a \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e \u043f\u0430\u043a\u0435\u0442\u0430. \u041d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d \u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u044b\u0437\u043e\u0432\u0430 \u0441\u043a\u0440\u0438\u043f\u0442\u0430 .\/configure:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">.\/configure<\/b><\/p>\n<div class=\"spoiler_text\">sudo .\/configure \\<br \/>   &#8212;prefix=\/usr\/share\/php52 \\<br \/>   &#8212;datadir=\/usr\/share\/php52 \\<br \/>   &#8212;mandir=\/usr\/share\/man \\<br \/>   &#8212;bindir=\/usr\/bin\/php52 \\<br \/>   &#8212;with-libdir=lib64 \\<br \/>   &#8212;includedir=\/usr\/include \\<br \/>   &#8212;sysconfdir=\/etc\/php52\/apache2 \\<br \/>   &#8212;with-config-file-path=\/etc\/php52\/cli \\<br \/>   &#8212;with-config-file-scan-dir=\/etc\/php52\/conf.d \\<br \/>   &#8212;localstatedir=\/var \\<br \/>   &#8212;disable-debug \\<br \/>   &#8212;with-regex=php \\<br \/>   &#8212;disable-rpath \\<br \/>   &#8212;disable-static \\<br \/>   &#8212;disable-posix \\<br \/>   &#8212;with-pic \\<br \/>   &#8212;with-layout=GNU \\<br \/>   &#8212;with-pear=\/usr\/share\/php \\<br \/>   &#8212;enable-calendar \\<br \/>   &#8212;enable-sysvsem \\<br \/>   &#8212;enable-sysvshm \\<br \/>   &#8212;enable-sysvmsg \\<br \/>   &#8212;enable-bcmath \\<br \/>   &#8212;with-bz2 \\<br \/>   &#8212;enable-ctype \\<br \/>   &#8212;with-db4 \\<br \/>   &#8212;without-gdbm \\<br \/>   &#8212;with-iconv \\<br \/>   &#8212;enable-exif \\<br \/>   &#8212;enable-ftp \\<br \/>   &#8212;enable-cli \\<br \/>   &#8212;with-gettext \\<br \/>   &#8212;enable-mbstring \\<br \/>   &#8212;with-pcre-regex=\/usr \\<br \/>   &#8212;enable-shmop \\<br \/>   &#8212;enable-sockets \\<br \/>   &#8212;enable-wddx \\<br \/>   &#8212;with-libxml-dir=\/usr \\<br \/>   &#8212;with-zlib \\<br \/>   &#8212;with-kerberos=\/usr \\<br \/>   &#8212;with-openssl=\/usr \\<br \/>   &#8212;enable-soap \\<br \/>   &#8212;enable-zip \\<br \/>   &#8212;with-mhash \\<br \/>   &#8212;with-exec-dir=\/usr\/lib\/php5\/libexec \\<br \/>   &#8212;without-mm \\<br \/>   &#8212;with-curl=shared,\/usr \\<br \/>   &#8212;with-zlib-dir=\/usr \\<br \/>   &#8212;with-gd=shared,\/usr \\<br \/>   &#8212;enable-gd-native-ttf \\<br \/>   &#8212;with-gmp=shared,\/usr \\<br \/>   &#8212;with-jpeg-dir=shared,\/usr \\<br \/>   &#8212;with-xpm-dir=shared,\/usr\/X11R6 \\<br \/>   &#8212;with-png-dir=shared,\/usr \\<br \/>   &#8212;with-freetype-dir=shared,\/usr \\<br \/>   &#8212;with-ttf=shared,\/usr \\<br \/>   &#8212;with-t1lib=shared,\/usr \\<br \/>   &#8212;with-ldap=shared,\/usr \\<br \/>   &#8212;with-mysql=shared,\/usr \\<br \/>   &#8212;with-mysqli=shared,\/usr\/bin\/mysql_config \\<br \/>   &#8212;with-pgsql=shared,\/usr \\<br \/>   &#8212;with-pspell=shared,\/usr \\<br \/>   &#8212;with-unixODBC=shared,\/usr \\<br \/>   &#8212;with-xsl=shared,\/usr \\<br \/>   &#8212;with-snmp=shared,\/usr \\<br \/>   &#8212;with-sqlite=shared,\/usr \\<br \/>   &#8212;with-tidy=shared,\/usr \\<br \/>   &#8212;with-xmlrpc=shared \\<br \/>   &#8212;enable-pdo=shared \\<br \/>   &#8212;without-pdo-dblib \\<br \/>   &#8212;with-pdo-mysql=shared,\/usr \\<br \/>   &#8212;with-pdo-pgsql=shared,\/usr \\<br \/>   &#8212;with-pdo-odbc=shared,unixODBC,\/usr \\<br \/>   &#8212;with-pdo-dblib=shared,\/usr \\<br \/>   &#8212;enable-force-cgi-redirect &#8212;enable-fastcgi \\<br \/>   &#8212;with-libdir=\/lib\/x86_64-linux-gnu \\<br \/>   &#8212;with-pdo-sqlite=shared \\<br \/>   &#8212;with-sqlite=shared \\<br \/>   &#8212;enable-ipv6 \\<br \/>   &#8212;with-mcrypt \\<br \/>   &#8212;with-imap-ssl<\/div>\n<\/div>\n<p>  \u041e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u0438\u0441\u043f\u043e\u0441\u043e\u0431\u0438\u0442\u044c \u0435\u0433\u043e \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u043c \u043f\u043e\u0442\u0440\u0435\u0431\u043d\u043e\u0441\u0442\u044f\u043c \u043f\u0443\u0442\u0435\u043c \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438\/\u0438\u043b\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u044f \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u043e\u043f\u0446\u0438\u0439. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u043e\u043f\u0446\u0438\u044f\u0445 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u0430\u043c \u043d\u0443\u0436\u043d\u044b (\u0438\u043b\u0438 \u043d\u0435 \u043d\u0443\u0436\u043d\u044b) \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0434\u043b\u044f PHP.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0438 .\/configure<\/b><\/p>\n<p>  \u0418\u0442\u0430\u043a, \u044d\u0442\u043e, \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438, \u043d\u0435 \u0442\u0430\u043a \u043b\u0438? \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043f\u0440\u0438\u0447\u0438\u043d\u0430 \u0432 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u044f\u0445. \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u044d\u0442\u0443 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u043e\u0434\u043d\u0438\u043c \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u043e\u043c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u0435\u0441\u043f\u043e\u043a\u043e\u0438\u0442\u0435\u0441\u044c \u043e\u0431 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0435 \u043b\u0438\u0448\u043d\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a \u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432:<\/p>\n<p>  <code>sudo apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libdb4.8-dev libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev postgresql-server-dev-9.1 libt1-dev libgd2-xpm-dev libgmp-dev libsasl2-dev libmhash-dev unixodbc-dev freetds-dev libpspell-dev libsnmp-dev libtidy-dev libxslt1-dev libmcrypt-dev<\/code><\/p>\n<p>  \u0412\u044b \u0442\u0430\u043a\u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0435\u0439 \u043e\u0434\u043d\u0443 \u0437\u0430 \u0434\u0440\u0443\u0433\u043e\u0439, \u0438 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0437 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, (\u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0440\u0430\u0437\u0434\u0435\u043b\u0443, \u0435\u0441\u043b\u0438 \u0441\u043a\u0440\u0438\u043f\u0442 .\/configure \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043e \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 <\/p>\n<blockquote><p>Thank you for using PHP at the end of its execution<\/p><\/blockquote>\n<p>  <u><i>configure: error: xml2-config not found. Please check your libxml2 installation.<\/i><\/u><\/p>\n<p>  \u042d\u0442\u0430 \u043e\u0448\u0438\u0431\u043a\u0430 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442 \u043d\u0430\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u043d\u0430\u043b\u0438\u0447\u0438\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 libxml2. \u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0436\u0435, \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0435\u0433\u043e dev \u0432\u0435\u0440\u0441\u0438\u044f.<\/p>\n<p>  \u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u043d\u0430\u0439\u0434\u0435\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u043c\u043e\u0447\u044c \u0440\u0435\u0448\u0438\u0442\u044c \u0434\u0430\u043d\u043d\u0443\u044e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443:<br \/>  <code>$ apt-cache search libxml2 | grep dev libcroco3-dev - Cascading Style Sheet (CSS) parsing and manipulation toolkit libxml++2.6-dev - C++ interface to the GNOME XML library (libxml2) libxml2-dev - Development files for the GNOME XML library libgdome2-cpp-smart-dev - C++ bindings for GDome2 DOM implementation libgdome2-dev - Development files for libgdome2 libgdome2-ocaml-dev - OCaml bindings for GDome2 DOM implementation libgtkmathview-dev - rendering engine for MathML documents libsp-gxmlcpp-dev - S+P C++ wrapper for Gnome libxml2\/libxslt<\/code><\/p>\n<p>  \u041d\u0430\u0441 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u0443\u0435\u0442 <i>libxml2-dev<\/i>, \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0435\u0433\u043e:<br \/>  <code> sudo apt-get install libxml2-dev<\/code><\/p>\n<p>  \u0422\u0430\u043a\u0430\u044f \u0436\u0435 \u043f\u0440\u043e\u0446\u0435\u0434\u0443\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0445 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043a\u043e\u043d\u0447\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">fixes<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p><u>configure: error: Could not find pcre.h in \/usr<\/u><br \/>  <code>sudo apt-get install libpcre3-dev<\/code><\/p>\n<p>  <u>configure: error: Please reinstall the BZip2 distribution<\/u><br \/>  <code>sudo apt-get install libbz2-dev<\/code><\/p>\n<p>  <u>configure: error: Please reinstall the libcurl distribution \u2014 easy.h should be in \/include\/curl\/<\/u><br \/>  <code>sudo apt-get install libcurl4-openssl-dev<\/code><\/p>\n<p>  <u>configure: error: DBA: Could not find necessary header file(s).<br \/>  checking for db4 major version\u2026 configure: error: Header contains different version<\/u><br \/>  <code>sudo apt-get install libdb4.8-dev<\/code><\/p>\n<p>  <u>configure: error: libjpeg.(a|so) not found.<\/u><br \/>  <code>sudo apt-get install libjpeg-dev<\/code><\/p>\n<p>  <u>configure: error: libpng.(a|so) not found.<\/u><br \/>  <code>sudo apt-get install libpng12-dev<\/code><\/p>\n<p>  <u>configure: error: libXpm.(a|so) not found.<\/u><br \/>  <code>sudo apt-get install libxpm-dev<\/code><\/p>\n<p>  <u>configure: error: freetype.h not found.<\/u><br \/>  <code>sudo apt-get install libfreetype6-dev<\/code><\/p>\n<p>  <u>You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application.<br \/>   configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path<\/u><br \/>  <code>sudo apt-get install postgresql-server-dev-9.1<\/code><\/p>\n<p>  <u>checking for FreeType 1 support\u2026 no \u2014 FreeType 2.x is to be used instead<br \/>  configure: error: Your t1lib distribution is not installed correctly. Please reinstall it.<\/u><br \/>  <code>sudo apt-get install libt1-dev<\/code><\/p>\n<p>  <u>configure: error: Unable to find gd.h anywhere under \/usr<\/u><br \/>  <code>sudo apt-get install libgd2-xpm-dev<\/code><\/p>\n<p>  <u>configure: error: Unable to locate gmp.h<\/u><br \/>  <code>sudo apt-get install libgmp-dev<\/code><\/p>\n<p>  <u>configure: error: Cannot find MySQL header files under \/usr.<br \/>   Note that the MySQL client library is not bundled anymore!<\/u><br \/>  <code>sudo apt-get install libmysqlclient-dev<\/code><\/p>\n<p>  <u>configure: error: sasl.h not found!<\/u><br \/>  <code>sudo apt-get install libsasl2-dev<\/code><\/p>\n<p>  <u>configure: error: Please reinstall libmhash \u2014 I cannot find mhash.h<\/u><br \/>  <code>sudo apt-get install libmhash-dev<\/code><\/p>\n<p>  <u>checking for unixODBC support\u2026 configure: error: ODBC header file &#8216;\/usr\/include\/sqlext.h&#8217; not found!<\/u><br \/>  <code>sudo apt-get install unixodbc-dev<\/code><\/p>\n<p>  <u>configure: error: Directory \/usr is not a FreeTDS installation directory<\/u><br \/>  <code>sudo apt-get install freetds-dev<\/code><\/p>\n<p>  <u>configure: error: Cannot find pspell<\/u><br \/>  <code>sudo apt-get install libpspell-dev<\/code><\/p>\n<p>  <u>configure: error: SNMP sanity check failed. Please check config.log for more information.<\/u><br \/>  <code>sudo apt-get install libsnmp-dev<\/code><\/p>\n<p>  <u>configure: error: Cannot find libtidy<\/u><br \/>  <code>sudo apt-get install libtidy-dev<\/code><\/p>\n<p>  <u>configure: error: xslt-config not found. Please reinstall the libxslt &gt;= 1.1.0 distribution<\/u><br \/>  <code>sudo apt-get install libxslt1-dev<\/code><\/p>\n<p>  <u>configure: error: mcrypt.h not found. Please reinstall libmcrypt.<\/u><br \/>  <code>sudo apt-get install libmcrypt-dev<\/code><\/p>\n<p>  <u>configure: error: Cannot find OpenSSL&#8217;s libraries<\/u><br \/>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432 \u043e\u043f\u0446\u0438\u0438 .\/configure:<br \/>  &#8212;with-libdir=\/lib\/x86_64-linux-gnu<\/p>\n<p>  <u>configure: error: You&#8217;ve configured extension pdo_sqlite to build statically, but it depends on extension pdo, which you&#8217;ve configured to build shared. You either need to build pdo_sqlite shared or build pdo statically for the build to be successful.<\/u><br \/>  \u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432 \u043e\u043f\u0446\u0438\u0438 .\/configure<br \/>  <code>  --with-pdo-sqlite=shared   --with-sqlite=shared<\/code>  <\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <b>Make<\/b><br \/>  \u0412\u0441\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0438 \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a? \u0422\u043e\u0433\u0434\u0430 \u043f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 (\u0438 \u0447\u0430\u0448\u0435\u0447\u043a\u0438 \u043a\u043e\u0444\u0435 \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0435\u0433\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f):<\/p>\n<p>  <code>sudo make<\/code><br \/>  \u0422\u0435\u043f\u0435\u0440\u044c \u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u043f\u0438\u0432\u0430\u044f \u043a\u043e\u0444\u0435, \u0436\u0434\u0430\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0436\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a.<\/p>\n<p>  <b>\u041e\u0448\u0438\u0431\u043a\u0438 make<\/b><\/p>\n<p>  \u0414\u0430, \u0432\u0435\u0441\u044c\u043c\u0430 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u0432\u0441\u0435 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u0439\u0442\u0438 \u043d\u0430\u043f\u0435\u0440\u0435\u043a\u043e\u0441\u044f\u043a.<br \/>  \u0412\u043e\u0442 \u0434\u0432\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0438 \u043e\u0434\u0438\u043d \u0432\u043e\u0440\u043d\u0438\u043d\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0432\u0441\u0435\u0433\u043e \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u0435:<\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">fixes<\/b><\/p>\n<div class=\"spoiler_text\">\n<blockquote><p><u>ext\/openssl\/.libs\/xp_ssl.o: In function `php_openssl_setup_crypto&#8217;:<br \/>   ext\/openssl\/xp_ssl.c:357: undefined reference to `SSLv2_server_method&#8217;<br \/>   ext\/openssl\/xp_ssl.c:337: undefined reference to `SSLv2_client_method&#8217;<\/u><\/p>\n<p>  \u042d\u0442\u043e \u0441\u0432\u044f\u0437\u0430\u043d\u043e \u0441 <a href=\"http:\/\/search.twitter.com\/search?q=%2354736\">\u0431\u0430\u0433\u043e\u043c #54736<\/a> \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043b\u0435\u043a\u0433\u043e \u0440\u0435\u0448\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0435\u043c \u043f\u0430\u0442\u0447\u0430 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u043a \u044d\u0442\u043e\u043c\u0443 <a href=\"https:\/\/bugs.php.net\/patch-display.php?bug_id=54736&amp;patch=debian_patches_disable_SSLv2_for_openssl_1_0_0.patch&amp;revision=latest\">\u0431\u0430\u0433\u0440\u0435\u043f\u043e\u0440\u0442\u0443<\/a><\/p>\n<p>  \u0421\u043a\u0430\u0447\u0430\u0439\u0442\u0435 \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0447 \u0432 \u043f\u0430\u043f\u043a\u0443 <i>~\/Downloads\/php-5.2.17<\/i> \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<br \/>  <code>patch -p1 &lt; debian_patches_disable_SSLv2_for_openssl_1_0_0.patch.patch<\/code><\/p>\n<p>  \u0412\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043e\u0431 \u0443\u0441\u043f\u0435\u0448\u043d\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438 \u043f\u0430\u0442\u0447\u0430, \u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0438 \u044d\u0442\u043e\u0433\u043e:<br \/>  <code>patching file ext\/openssl\/xp_ssl.c Hunk #1 succeeded at 332 (offset 4 lines). Hunk #2 succeeded at 354 (offset 4 lines). Hunk #3 succeeded at 583 (offset -50 lines). Hunk #4 succeeded at 819 (offset -98 lines).<\/code><\/p>\n<p>  <u>ext\/gmp\/gmp.c: In function \u2018zif_gmp_random\u2019:<br \/>   ext\/gmp\/gmp.c:1399:69: error: \u2018__GMP_BITS_PER_MP_LIMB\u2019 undeclared (first use in this function)<br \/>   ext\/gmp\/gmp.c:1399:69: note: each undeclared identifier is reported only once for each function it appears in<\/u><\/p>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u0438\u0441\u043f\u0440\u0430\u0432\u0438\u0442\u044c <a href=\"http:\/\/search.twitter.com\/search?q=%2350990\">\u0431\u0430\u0433 #50990<\/a> <br \/>  \u0412 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0435\u0432 susan dot smith dot dev at gmail dot com \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435, \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0434\u0435\u043b\u0430\u0435\u0442 \u043c\u0430\u0433\u0438\u044e:<\/p>\n<blockquote><p>\u042f \u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0443 \u0437\u0430\u043c\u0435\u043d\u043e\u0439 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0435\u0439 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f <i>__GMP_BITS_PER_MP_LIMB<\/i> \u043d\u0430 <i>GMP_LIMB_BITS<\/i>, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u0440\u0438\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0432\u043e \u0432\u0441\u0435\u0445 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 \u0438 MPIR \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u0442\u043e\u0436\u0435.<\/p><\/blockquote>\n<p>  \u0412\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b <i>ext\/gmp\/gmp.c<\/i> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c __GMP_BITS_PER_MP_LIMB \u043d\u0430 GMP_LIMB_BITS. \u0412 \u043c\u043e\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u0431\u044b\u043b\u043e \u0441\u0442\u0440\u043e\u043a\u0435 1399.<\/p>\n<p>  <u>ext\/zip\/lib\/.libs\/zip_dirent.o: In function `memset&#8217;:<br \/>   \/usr\/include\/x86_64-linux-gnu\/bits\/string3.h:82: warning: memset used with constant zero length parameter; this could be due to transposed parameters<\/u><\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 <a href=\"https:\/\/bugs.php.net\/bug.php?id=53568\">\u0431\u0430\u0433 #53568<\/a> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f: \u043e\u0442\u043a\u0440\u043e\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <i>ext\/zip\/lib\/zip_dirent.c<\/i> \u0438 \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u0435 \u0441\u0442\u0440\u043e\u043a\u0439 478:<br \/>  <code>memset(&tm, sizeof(tm), 0);<\/code><br \/>  \u043d\u0430<br \/>  <code>memset(&tm, 0, sizeof(tm));<\/code><br \/>  \u0411\u043e\u043b\u044c\u0448\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0435\u0442!  <\/p><\/blockquote>\n<\/div>\n<\/div>\n<p>  <b>Install<\/b><br \/>  \u041f\u0440\u043e\u0441\u0442\u0435\u0439\u0448\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0432\u0430\u0448\u0435\u0439 \u0431\u043b\u0435\u044f\u0442\u0449\u0435\u0439 \u043d\u043e\u0432\u043e\u0439 \u0432\u0435\u0440\u0441\u0438\u0438 PHP 5.2 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<br \/>  <code>sudo make install<\/code><br \/>  \u041a\u0440\u043e\u043c\u0435 \u0442\u043e\u0433\u043e, \u0435\u0441\u043b\u0438 \u0432\u044b \u043f\u043b\u0430\u043d\u0438\u0440\u0443\u0435\u0442\u0435 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c \u0442\u0443 \u0436\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 \u0435\u0449\u0435 \u0440\u0430\u0437 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0430\u0448\u0438\u043d\u0430\u0445, \u0438\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0445\u043e\u0442\u0438\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0444\u0430\u0439\u043b \u043f\u0430\u043a\u0435\u0442\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u043d\u0430 \u0431\u0443\u0434\u0443\u0449\u0435\u0435, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c:<br \/>  <code>sudo checkinstall<\/code><\/p>\n<p>  \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u043e\u0439 PHP? \u0442\u0430\u043a\u0436\u0435 \u0441\u043e\u0437\u0434\u0430\u0441\u0442 deb \u043f\u0430\u043a\u0435\u0442 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u043c \u043a\u0430\u0442\u0430\u043b\u043e\u0433\u0435.<br \/>  \u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u0430\u043a\u043e\u0439 \u0431\u044b \u043f\u0443\u0442\u044c \u0432\u044b \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u043b\u0438, \u0443 \u0432\u0430\u0441 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0417\u0420\u0417 5.2 \u0432 <i>\/usr\/bin\/php52<\/i><\/p>\n<p>  <b>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b Apache<\/b><\/p>\n<p>  \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 <i>\/etc\/php52\/apache2\/<\/i> \u0443\u0436\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u0431\u044b\u0442\u044c \u0441\u043e\u0437\u0434\u0430\u043d \u0432 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 (\u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0435\u0433\u043e, \u0435\u0441\u043b\u0438 \u043e\u043d \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442). \u0422\u0435\u043f\u0435\u0440\u044c \u043d\u0443\u0436\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0438\u0442\u044c PHP 5.2 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0442\u0435\u0445 \u0436\u0435 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439 \u0438 \u043c\u043e\u0434\u0443\u043b\u0435\u0439, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PHP 5.3,<\/p>\n<p>  <code>sudo ln -s \/etc\/php5\/conf.d \/etc\/php52 sudo ln -s \/etc\/php5\/cli \/etc\/php52<\/code><\/p>\n<p>  \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0444\u0430\u0439\u043b <i>php.ini-recommended<\/i> \u0432 \u043d\u043e\u0432\u044b\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433 (\u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d \u0432 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u0448\u0430\u0433\u0435)<br \/>  <code>sudo cp php.ini-recommended \/etc\/php52\/apache2\/php.ini<\/code><br \/>  \u0438 \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u043d\u043e, \u0432\u043d\u0435\u0441\u0438\u0442\u0435 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0435 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438.<\/p>\n<p>  <b>Apache \u0438 FastCGI<\/b><\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0441\u0434\u0435\u043b\u0430\u0435\u043c, \u0431\u0443\u0434\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 apache \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 PHP 5.2 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f FastCGI. \u041d\u0430\u0447\u043d\u0435\u043c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 <i>fastcgi<\/i> \u043c\u043e\u0434\u0443\u043b\u044f:<br \/>  <code>sudo apt-get install libapache2-mod-fastcgi<\/code><\/p>\n<p>  \u0423\u0431\u0435\u0434\u0438\u0442\u0435\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 Apache:<br \/>  <code>sudo a2enmod cgi fastcgi actions sudo service apache2 restart<\/code><\/p>\n<p>  \u0421\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u043d\u044f\u0435\u043c\u044b\u0439 \u0441\u043a\u0440\u0438\u043f\u0442 <i>php52-cgi<\/i> \u0434\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0430 FastCGI \u0432\u0435\u0440\u0441\u0438\u0438 PHP \u0438 \u043f\u043e\u043c\u0435\u0441\u0442\u0438\u0442\u0435 \u0435\u0433\u043e \u0432 \/usr\/lib\/cgi-bin\/:<br \/>  <code>#!\/bin\/sh PHPRC=&quot;\/etc\/php52\/apache2\/&quot; export PHPRC PHP_FCGI_CHILDREN=4 export PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=5000 export PHP_FCGI_MAX_REQUESTS exec \/usr\/bin\/php52\/php-cgi<\/code><\/p>\n<p>  <i>PHPRC<\/i> \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043d\u0430 php.ini<br \/>  <i>PHP_FCGI_CHILDREN<\/i> \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0442\u043e\u043a\u043e\u0432<br \/>  <i>PHP_FCGI_MAX_REQUESTS<\/i> \u043b\u0438\u043c\u0438\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432<br \/>  \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e\u0431 \u044d\u0442\u043e\u043c \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 <a href=\"http:\/\/www.fastcgi.com\/drupal\/node\/10\">FastCGI<\/a>.<\/p>\n<p>  \u0414\u0430\u0439\u0442\u0435 \u043f\u0440\u0430\u0432\u0430 \u043d\u0430 \u0437\u0430\u043f\u0443\u0441\u043a:<br \/>  <code>sudo chmod +x \/usr\/lib\/cgi-bin\/php52-cgi<\/code><\/p>\n<p>  \u041d\u0430\u043a\u043e\u043d\u0435\u0446 \u0441\u043e\u0437\u0434\u0430\u0439\u0442\u0435 \u043d\u043e\u0432\u044b\u0439 \u0444\u0430\u0439\u043b <i>\/etc\/apache2\/php52.conf<\/i> \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0445\u043e\u0441\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0442\u0440\u0435\u0431\u0443\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f PHP 5.2:<br \/>  <code># Include file for virtual hosts that need to run PHP 5.2  &lt;FilesMatch &quot;\\.php&quot;&gt;    SetHandler application\/x-httpd-php5 &lt;\/FilesMatch&gt;  ScriptAlias \/php52-cgi \/usr\/lib\/cgi-bin\/php52-cgi Action application\/x-httpd-php5 \/php52-cgi AddHandler application\/x-httpd-php5 .php<\/code><\/p>\n<p>  <i>FilesMatch<\/i> \u043f\u0435\u0440\u0435\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a php \u0444\u0430\u0439\u043b\u043e\u0432.<br \/>  <i>ScriptAlias<\/i> \u0437\u0430\u0434\u0435\u0442 \u043f\u0443\u0442\u044c \u043a CGI \u0441\u043a\u0440\u0438\u043f\u0442\u0443<br \/>  <i>AddHandler<\/i> \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0435\u0442 \u043d\u043e\u0432\u044b\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<br \/>  <i>Action<\/i> \u0430\u043a\u0442\u0438\u0432\u0438\u0437\u0438\u0440\u0443\u0435\u0442 CGI-\u0441\u043a\u0440\u0438\u043f\u0442 \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u043e\u0442 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430.<\/p>\n<p>  <b>\u041f\u043e\u0447\u0442\u0438 \u0432\u0441\u0451!<\/b><\/p>\n<p>  \u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0434\u043d\u043e: \u0434\u043b\u044f \u0432\u0441\u0435\u0445 \u0445\u043e\u0441\u0442\u043e\u0432, \u0434\u043b\u044f \u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u044b \u0445\u043e\u0442\u0438\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c PHP 5.2 \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u043e\u043a\u0443:<\/p>\n<p>  <code>Include php52.conf<\/code><br \/>  \u0438 \u043f\u0435\u0440\u0435\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043d\u043e\u0432\u0443\u044e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e:<br \/>  <code>sudo service apache2 reload<\/code><\/p>\n<p>  \u041f\u043e\u0437\u0434\u0440\u0430\u0432\u043b\u044f\u044e! \u0422\u0435\u043f\u0435\u0440\u044c \u0443 \u0432\u0430\u0441 \u0435\u0441\u0442\u044c \u0435\u0441\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0441 \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 PHP 5.2 \u0438 PHP 5.3!<\/p>\n<p>  P.S. \u0412\u0441\u0435 \u043e\u043f\u0435\u0447\u044f\u0442\u043a\u0438 \u0438 \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u044f \u043f\u0440\u043e\u0448\u0443 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0432 \u041f\u041c.        \t\t   \t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/176147\/\"> http:\/\/habrahabr.ru\/post\/176147\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\">       \u0418\u0441\u043a\u0430\u043b \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u0430\u043a \u043a\u0430\u043a \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e ubuntu 10.04 \u043d\u0430 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0435\u0440\u0435 \u043a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0438\u0437\u043b\u0438\u0448\u043d\u0438\u043c. \u0412\u0440\u0435\u043c\u044f \u043d\u0430 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0443 ~1 \u0447\u0430\u0441. \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043b\u0430\u0441\u044c \u043d\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0435\u043c dev \u0441\u0435\u0440\u0432\u0435\u0440\u0435.<br \/>  \u0410\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u043f\u043e\u0434 Drupal 6 \u0438 7 \u0438 \u0432\u0441\u0435\u0445 \u043a\u0442\u043e \u0435\u0449\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 PHP 5.2.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-176147","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/176147","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176147"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/176147\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176147"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176147"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176147"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}