{"id":551,"date":"2014-08-14T03:11:30","date_gmt":"2014-08-14T03:11:30","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=551"},"modified":"2014-08-14T03:11:30","modified_gmt":"2014-08-14T03:11:30","slug":"how-to-install-and-use-two-versions-of-php-on-the-same-plesk-for-linux-server","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/14\/how-to-install-and-use-two-versions-of-php-on-the-same-plesk-for-linux-server\/","title":{"rendered":"How to install and use two versions of PHP on the same Plesk for Linux server"},"content":{"rendered":"<p>Source: <a href=\"http:\/\/kb.odin.com\/en\/118378\" target=\"_blank\" rel=\"noopener\">http:\/\/kb.odin.com\/en\/118378<\/a><\/p>\n<p>php version &#8211; php-5.4.31<\/p>\n<p>CentOS 6.5<br \/>\nPlesk Panel 12.0<br \/>\nCurrent php version 5.3<\/p>\n<p>1. SSH to your Plesk server (or Apache Service Node for Parallels Plesk Automation) as root, download the PHP source, unpack it, and configure it:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># cd \/usr\/local\/src\n# mkdir php540\n# cd php540\n# wget http:\/\/www.php.net\/get\/php-5.4.31.tar.gz\/from\/at2.php.net\/mirror\n# tar xzvf php-5.4.0.tar.gz\n# cd php-5.4.0\n# .\/configure &#039;--with-libdir=lib64&#039; &#039;--cache-file=..\/config.cache&#039; &#039;--prefix=\/usr\/local\/php540-cgi&#039; &#039;--with-config-file-path=\/usr\/local\/php540-cgi\/etc&#039; &#039;--disable-debug&#039; &#039;--with-pic&#039; &#039;--disable-rpath&#039; &#039;--enable-fastcgi&#039; &#039;--with-bz2&#039; &#039;--with-curl&#039; &#039;--with-freetype-dir=\/usr\/local\/php540-cgi&#039; &#039;--with-png-dir=\/usr\/local\/php540-cgi&#039; &#039;--enable-gd-native-ttf&#039; &#039;--without-gdbm&#039; &#039;--with-gettext&#039; &#039;--with-gmp&#039; &#039;--with-iconv&#039; &#039;--with-jpeg-dir=\/usr\/local\/php540-cgi&#039; &#039;--with-openssl&#039; &#039;--with-pspell&#039; &#039;--with-pcre-regex&#039; &#039;--with-zlib&#039; &#039;--enable-exif&#039; &#039;--enable-ftp&#039; &#039;--enable-sockets&#039; &#039;--enable-sysvsem&#039; &#039;--enable-sysvshm&#039; &#039;--enable-sysvmsg&#039; &#039;--enable-wddx&#039; &#039;--with-kerberos&#039; &#039;--with-unixODBC=\/usr&#039; &#039;--enable-shmop&#039; &#039;--enable-calendar&#039; &#039;--without-sqlite3&#039; &#039;--with-libxml-dir=\/usr\/local\/php540-cgi&#039; &#039;--enable-pcntl&#039; &#039;--with-imap&#039; &#039;--with-imap-ssl&#039; &#039;--enable-mbstring&#039; &#039;--enable-mbregex&#039; &#039;--with-gd&#039; &#039;--enable-bcmath&#039; &#039;--with-xmlrpc&#039; &#039;--with-ldap&#039; &#039;--with-ldap-sasl&#039; &#039;--with-mysql=\/usr&#039; &#039;--with-mysqli&#039; &#039;--with-snmp&#039; &#039;--enable-soap&#039; &#039;--with-xsl&#039; &#039;--enable-xmlreader&#039; &#039;--enable-xmlwriter&#039; &#039;--enable-pdo&#039; &#039;--with-pdo-mysql&#039; &#039;--with-pdo-pgsql&#039; &#039;--with-pear=\/usr\/local\/php540-cgi\/pear&#039; &#039;--with-mcrypt&#039; &#039;--enable-intl&#039; &#039;--without-pdo-sqlite&#039; &#039;--with-config-file-scan-dir=\/usr\/local\/php540-cgi\/php.d&#039;\n\n<\/pre>\n<p>Note: You MUST USE THE PREFIX SWITCH in order for your new PHP to be installed inside a single directory. As you can see, the prefix here is \/usr\/local\/php540-cgi\/<\/p>\n<p>Note: Above are the sample command line arguments you may encounter with errors regarding the absence of a package (e.g. mysql-devel). The default arguments are described in the documentation<\/p>\n<p>Choosing a prefix is very important because it prevents your new PHP installation from interfering with the other PHP installations available on the server.<\/p>\n<p>Compile and install PHP:<\/p>\n<p># make<br \/>\n# make install<\/p>\n<p>Set up php.ini:<\/p>\n<p># cp php.ini-development \/usr\/local\/php540-cgi\/php.ini<\/p>\n<p>You can edit the php.ini file to set PHP options. If you prefer having php.ini in another location, run the configure utility with the option &#8211;with-config-file-path=\/some\/path in step #1.<\/p>\n<p>Register the new PHP version:<\/p>\n<p>In Parallels Plesk Panel<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">    \/usr\/local\/psa\/bin\/php_handler --add -displayname  -path  -phpini  -type  -id \n\n<\/pre>\n<p>where<\/p>\n<p>-displayname is the PHP version name that will be shown in the Plesk UI. We recommend you include the version number in the displayname. For example, you could name the version &#8220;5.3.3-custom&#8221;.<\/p>\n<p>-path is the location of the PHP CGI binary file. You can find this in the output of the command make install in the line Installing PHP CGI binary. For example, if you see the line Installing PHP CGI binary: \/usr\/local\/bin\/, the location you need to specify is \/usr\/local\/bin\/php-cgi. Learn more at the Official PHP web Site.<\/p>\n<p>-phpini is the location of the php.ini file, for example, \/some\/path\/php.ini .<\/p>\n<p>-type is the type of the PHP handler associated with this version. Learn more about PHP handlers in the section: PHP Handlers.<\/p>\n<p>Important: You can set either the CGI or FastCGI PHP handler. mod_php is not supported.<br \/>\n-id (optional) is the identifier you will use when referring to this PHP version (for example, when adjusting or removing it).<\/p>\n<p>Compile errors.<\/p>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">#error: xml2-config not found. Please check your libxml2 installation\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libxml2-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">#configure: error: Cannot find OpenSSL&#039;s \n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install openssl-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Please reinstall the BZip2 distribution\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install bzip2-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: jpeglib.h not found.\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libjpeg-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: png.h not found.\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libpng-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># Configure: error: freetype.h not found.\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install freetype-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># Configure: error: Unable to locate gmp.h\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install gmp-devel\n<\/pre>\n<p>Error:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.\n<\/pre>\n<p>Solution:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libc-client-devel \n<\/pre>\n<p>Error: Multilib version problems found. This often means that the root<br \/>\ncause is something else and multilib version checking is just<br \/>\npointing out that there is a problem. Eg.:<\/p>\n<p>1. You have an upgrade for libc-client which is missing some<br \/>\ndependency that another package requires. Yum is trying to<br \/>\nsolve this by installing an older version of libc-client of the<br \/>\ndifferent architecture. If you exclude the bad architecture<br \/>\nyum will tell you what the root cause is (which package<br \/>\nrequires what). You can try redoing the upgrade with<br \/>\n&#8211;exclude libc-client.otherarch &#8230; this should give you an error<br \/>\nmessage showing the root cause of the problem.<\/p>\n<p>2. You have multiple architectures of libc-client installed, but<br \/>\nyum can only see an upgrade for one of those arcitectures.<br \/>\nIf you don&#8217;t want\/need both architectures anymore then you<br \/>\ncan remove the one with the missing update and everything<br \/>\nwill work.<\/p>\n<p>3. You have duplicate versions of libc-client installed already.<br \/>\nYou can use &#8220;yum check&#8221; to get yum show these errors.<\/p>\n<p>&#8230;you can also use &#8211;setopt=protected_multilib=false to remove<br \/>\nthis checking, however this is almost never the correct thing to<br \/>\ndo as something else is very likely to go wrong (often causing<br \/>\nmuch more problems).<\/p>\n<p>Protected multilib versions: libc-client-2007e-11.el6.i686 != libc-client-2007e-11.el6.art.x86_64<br \/>\nYou could try using &#8211;skip-broken to work around the problem<br \/>\nYou could try running: rpm -Va &#8211;nofiles &#8211;nodigest<\/p>\n<p>I searched and the fix was to enable the atomic repo that was installed but disabled.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">nano \/etc\/yum.repos.d\/atomic\nenabled = 1\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Unable to detect ICU prefix or no failed. Please verify ICU install prefix and make sure icu-config works.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libicu-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: mcrypt.h not found. Please reinstall libmcrypt.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libmcrypt libmcrypt-devel\n<\/pre>\n<p>Then I got another:<\/p>\n<p>Error: Package: libmcrypt-devel-2.5.7-5.el6.art.x86_64 (atomic)<br \/>\nRequires: libmcrypt = 2.5.7-5.el6.art<br \/>\nInstalled: libmcrypt-2.5.8-9.el6.x86_64 (@epel)<br \/>\nlibmcrypt = 2.5.8-9.el6<br \/>\nAvailable: libmcrypt-2.5.7-5.el6.art.x86_64 (atomic)<br \/>\nlibmcrypt = 2.5.7-5.el6.art<br \/>\nYou could try using &#8211;skip-broken to work around the problem<br \/>\nYou could try running: rpm -Va &#8211;nofiles &#8211;nodigest<\/p>\n<p>I disabled atomic repo and then got:<\/p>\n<p>Error: Package: libmcrypt-devel-2.5.7-1.2.el6.rf.x86_64 (rpmforge)<br \/>\nRequires: libmcrypt = 2.5.7-1.2.el6.rf<br \/>\nInstalled: libmcrypt-2.5.8-9.el6.x86_64 (@epel)<br \/>\nlibmcrypt = 2.5.8-9.el6<br \/>\nAvailable: libmcrypt-2.5.7-1.2.el6.rf.x86_64 (rpmforge)<br \/>\nlibmcrypt = 2.5.7-1.2.el6.rf<br \/>\nYou could try using &#8211;skip-broken to work around the problem<br \/>\nYou could try running: rpm -Va &#8211;nofiles &#8211;nodigest<\/p>\n<p>I disabled rpmforge repo enabled the epel repo.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Cannot find MySQL header files under \/usr.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install mysql-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: ODBC header file &#039;\/usr\/include\/sqlext.h&#039; not found!\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install unixODBC-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Cannot find libpq-fe.h. Please specify correct PostgreSQL installation path\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install postgresql-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Cannot find pspell\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">#yum install aspell-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># configure: error: Could not find net-snmp-config binary. Please check your net-snmp installation.\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install net-snmp-devel\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># error: xslt-config not found\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># yum install libxslt-devel\n<\/pre>\n<p>PHP error for fastcgi<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">Thank you for using PHP.\n\nconfig.status: creating php5.spec\nconfig.status: creating main\/build-defs.h\nconfig.status: creating scripts\/phpize\nconfig.status: creating scripts\/man1\/phpize.1\nconfig.status: creating scripts\/php-config\nconfig.status: creating scripts\/man1\/php-config.1\nconfig.status: creating sapi\/cli\/php.1\nconfig.status: creating sapi\/cgi\/php-cgi.1\nconfig.status: creating ext\/phar\/phar.1\nconfig.status: creating ext\/phar\/phar.phar.1\nconfig.status: creating main\/php_config.h\nconfig.status: executing default commands\nconfigure: WARNING: unrecognized options: --enable-fastcgi\n\n<\/pre>\n<p>From &#8211; <a href=\"http:\/\/php.net\/manual\/en\/configure.about.php\" target=\"_blank\" rel=\"noopener\">http:\/\/php.net\/manual\/en\/configure.about.php<\/a><\/p>\n<p>-enable-fastcgi<br \/>\nIf this is enabled, the CGI module will be built with support for FastCGI also. Available since PHP 4.3.0<br \/>\nAs of PHP 5.3.0 this argument no longer exists and is enabled by &#8211;enable-cgi instead.<\/p>\n<p>So, I changed the option:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># --enable-fastcgi\n<\/pre>\n<p>to<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># --enable-cgi\n<\/pre>\n<p>New configure string:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"> .\/configure &#039;--with-libdir=lib64&#039; &#039;--cache-file=..\/config.cache&#039; &#039;--prefix=\/usr\/local\/php540-cgi&#039; &#039;--with-config-file-path=\/usr\/local\/php540-cgi\/etc&#039; &#039;--disable-debug&#039; &#039;--with-pic&#039; &#039;--disable-rpath&#039; &#039;--enable-cgi&#039; &#039;--with-bz2&#039; &#039;--with-curl&#039; &#039;--with-freetype-dir=\/usr\/local\/php540-cgi&#039; &#039;--with-png-dir=\/usr\/local\/php540-cgi&#039; &#039;--enable-gd-native-ttf&#039; &#039;--without-gdbm&#039; &#039;--with-gettext&#039; &#039;--with-gmp&#039; &#039;--with-iconv&#039; &#039;--with-jpeg-dir=\/usr\/local\/php540-cgi&#039; &#039;--with-openssl&#039; &#039;--with-pspell&#039; &#039;--with-pcre-regex&#039; &#039;--with-zlib&#039; &#039;--enable-exif&#039; &#039;--enable-ftp&#039; &#039;--enable-sockets&#039; &#039;--enable-sysvsem&#039; &#039;--enable-sysvshm&#039; &#039;--enable-sysvmsg&#039; &#039;--enable-wddx&#039; &#039;--with-kerberos&#039; &#039;--with-unixODBC=\/usr&#039; &#039;--enable-shmop&#039; &#039;--enable-calendar&#039; &#039;--without-sqlite3&#039; &#039;--with-libxml-dir=\/usr\/local\/php540-cgi&#039; &#039;--enable-pcntl&#039; &#039;--with-imap&#039; &#039;--with-imap-ssl&#039; &#039;--enable-mbstring&#039; &#039;--enable-mbregex&#039; &#039;--with-gd&#039; &#039;--enable-bcmath&#039; &#039;--with-xmlrpc&#039; &#039;--with-ldap&#039; &#039;--with-ldap-sasl&#039; &#039;--with-mysql=\/usr&#039; &#039;--with-mysqli&#039; &#039;--with-snmp&#039; &#039;--enable-soap&#039; &#039;--with-xsl&#039; &#039;--enable-xmlreader&#039; &#039;--enable-xmlwriter&#039; &#039;--enable-pdo&#039; &#039;--with-pdo-mysql&#039; &#039;--with-pdo-pgsql&#039; &#039;--with-pear=\/usr\/local\/php540-cgi\/pear&#039; &#039;--with-mcrypt&#039; &#039;--enable-intl&#039; &#039;--without-pdo-sqlite&#039; &#039;--with-config-file-scan-dir=\/usr\/local\/php540-cgi\/php.d&#039;\n<\/pre>\n<p>And, no errors<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">License:                                                           |\n| This software is subject to the PHP License, available in this     |\n| distribution in the file LICENSE.  By continuing this installation |\n| process, you are bound by the terms of this license agreement.     |\n| If you do not agree with the terms of this license, you must abort |\n| the installation process at this point.                            |\n+--------------------------------------------------------------------+\n\nThank you for using PHP.\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">Error with &quot;make&quot;\n# make\n\/usr\/bin\/ld: cannot find -lltdl\ncollect2: ld returned 1 exit status\nmake: *** &#x5B;sapi\/cli\/php] Error 1\n\n<\/pre>\n<p>You need to install the Tools needed for development using the GNU Libtool Dynamic Module Loader<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">yum install libtool-ltdl-devel\n<\/pre>\n<p>Then ran &#8211;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># make clean\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># make\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">Generating phar.php\nGenerating phar.phar\nPEAR package PHP_Archive not installed: generated phar will require PHP&#039;s phar extension be enabled.\ninvertedregexiterator.inc\nclicommand.inc\ndirectorytreeiterator.inc\ndirectorygraphiterator.inc\npharcommand.inc\nphar.inc\n\nBuild complete.\nDon&#039;t forget to run &#039;make test&#039;.\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># make test\n\n=====================================================================\nFAILED TEST SUMMARY\n---------------------------------------------------------------------\nBug #43073 (TrueType bounding box is wrong for angle&amp;lt;&amp;gt;0) freetype &amp;lt; 2.4.10 &#x5B;ext\/gd\/tests\/bug43073.phpt]\ngmp_gcdext() basic tests &#x5B;ext\/gmp\/tests\/022.phpt]\nBug #64124 IPv6 malformed &#x5B;ext\/snmp\/tests\/bug64124.phpt]\nBug #64159: Truncated snmpget &#x5B;ext\/snmp\/tests\/bug64159.phpt]\nIPv6 support &#x5B;ext\/snmp\/tests\/ipv6.phpt]\nOO API: getErrno &amp;amp; getError methods &#x5B;ext\/snmp\/tests\/snmp-object-errno-errstr.phpt]\nOO API &#x5B;ext\/snmp\/tests\/snmp-object.phpt]\nFunction snmp2_get &#x5B;ext\/snmp\/tests\/snmp2_get.phpt]\nFunction snmp2_getnext &#x5B;ext\/snmp\/tests\/snmp2_getnext.phpt]\nFunction snmp2_real_walk &#x5B;ext\/snmp\/tests\/snmp2_real_walk.phpt]\nFunction snmp2_set (without MIBs loading) &#x5B;ext\/snmp\/tests\/snmp2_set-nomib.phpt]\nFunction snmp2_set &#x5B;ext\/snmp\/tests\/snmp2_set.phpt]\nFunction snmp2_walk &#x5B;ext\/snmp\/tests\/snmp2_walk.phpt]\nSNMPv3 Support (errors) &#x5B;ext\/snmp\/tests\/snmp3-error.phpt]\nSNMPv3 Support &#x5B;ext\/snmp\/tests\/snmp3.phpt]\nFunction snmp_getvalue &#x5B;ext\/snmp\/tests\/snmp_getvalue.phpt]\nFunction snmpget &#x5B;ext\/snmp\/tests\/snmpget.phpt]\nFunction snmpgetnext &#x5B;ext\/snmp\/tests\/snmpgetnext.phpt]\nFunction snmprealwalk &#x5B;ext\/snmp\/tests\/snmprealwalk.phpt]\nFunction snmpset (without MIBs loading) &#x5B;ext\/snmp\/tests\/snmpset-nomib.phpt]\nFunction snmpset &#x5B;ext\/snmp\/tests\/snmpset.phpt]\nFunction snmpwalk &#x5B;ext\/snmp\/tests\/snmpwalk.phpt]\nBug #32001 (xml_parse*() goes into infinite loop when autodetection in effect), using UTF-* &#x5B;ext\/xml\/tests\/bug32001.phpt]\n=====================================================================\n\n=====================================================================\nWARNED TEST SUMMARY\n---------------------------------------------------------------------\nzend multibyte (2) &#x5B;ext\/mbstring\/tests\/zend_multibyte-02.phpt] (warn: XFAIL section but test passes)\nzend multibyte (6) &#x5B;ext\/mbstring\/tests\/zend_multibyte-06.phpt] (warn: XFAIL section but test passes)\n=====================================================================\n\nYou may have found a problem in PHP.\nThis report can be automatically sent to the PHP QA team at\nhttp:\/\/qa.php.net\/reports and http:\/\/news.php.net\/php.qa.reports\nThis gives us a better understanding of PHP&#039;s behavior.\nIf you don&#039;t want to send the report immediately you can choose\noption &quot;s&quot; to save it.  You can then email it to qa-reports@lists.php.net later.\nDo you want to send this report now? &#x5B;Yns]:\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># make install\n\n&#x5B;root@austin php-5.4.31]# make install\nInstalling PHP CLI binary:        \/usr\/local\/php540-cgi\/bin\/\nInstalling PHP CLI man page:      \/usr\/local\/php540-cgi\/php\/man\/man1\/\nInstalling PHP CGI binary:        \/usr\/local\/php540-cgi\/bin\/\nInstalling PHP CGI man page:      \/usr\/local\/php540-cgi\/php\/man\/man1\/\nInstalling build environment:     \/usr\/local\/php540-cgi\/lib\/php\/build\/\nInstalling header files:          \/usr\/local\/php540-cgi\/include\/php\/\nInstalling helper programs:       \/usr\/local\/php540-cgi\/bin\/\n  program: phpize\n  program: php-config\nInstalling man pages:             \/usr\/local\/php540-cgi\/php\/man\/man1\/\n  page: phpize.1\n  page: php-config.1\nInstalling PEAR environment:      \/usr\/local\/php540-cgi\/pear\/\n&#x5B;PEAR] Archive_Tar    - installed: 1.3.11\n&#x5B;PEAR] Console_Getopt - installed: 1.3.1\n&#x5B;PEAR] Structures_Graph- installed: 1.0.4\n&#x5B;PEAR] XML_Util       - installed: 1.2.3\n&#x5B;PEAR] PEAR           - installed: 1.9.5\nWrote PEAR system config file at: \/usr\/local\/php540-cgi\/etc\/pear.conf\nYou may want to add: \/usr\/local\/php540-cgi\/pear to your php.ini include_path\n\/usr\/local\/src\/php540\/php-5.4.31\/build\/shtool install -c ext\/phar\/phar.phar \/usr\/local\/php540-cgi\/bin\nln -s -f \/usr\/local\/php540-cgi\/bin\/phar.phar \/usr\/local\/php540-cgi\/bin\/phar\nInstalling PDO headers:          \/usr\/local\/php540-cgi\/include\/php\/ext\/pdo\/\n\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># cp php.ini-development \/usr\/local\/php540-cgi\/etc\/php.ini\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"># \/usr\/local\/psa\/bin\/php_handler --add -displayname 5.4.31-custom -path \/usr\/local\/php540-cgi\/bin\/ -phpini \/usr\/local\/php540-cgi\/etc\/php.ini -type fastcgi -id php-5.4.31\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">ini -type fastcgi -id php-5.4.31\n&#x5B;2014-08-15 21:38:16] ERR &#x5B;util_exec] proc_close() failed\nUnable to register the PHP handler: can not get version from \/usr\/local\/php540-cgi\/bin\/\n\n<\/pre>\n<p>Changed the path to &#8211; \/usr\/local\/php540-cgi\/bin\/php-cgi<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\/usr\/local\/psa\/bin\/php_handler --add -displayname 5.4.31-custom -path \/usr\/local\/php540-cgi\/bin\/php-cgi -phpini \/usr\/local\/php540-cgi\/etc\/php.ini -type fastcgi -id 5.4.31-custom\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">The new PHP handler with the id &quot;5.4.31-custom&quot; was successfully registered.\n\n<\/pre>\n<p>The &#8211; login to plesk and thenew php is regsitered and can be selected.<\/p>\n<p><a href=\"http:\/\/coldriverdata.com\/wp-content\/uploads\/2014\/08\/new-php-plesk.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-595 size-full\" src=\"http:\/\/coldriverdata.com\/wp-content\/uploads\/2014\/08\/new-php-plesk.jpg\" alt=\"new-php-plesk\" width=\"540\" height=\"40\" \/><\/a><\/p>\n<p>There is also a great article for Plesk and the REMI Repo install.\u00a0<a href=\"http:\/\/kb.sp.parallels.com\/en\/115833\" target=\"_blank\" rel=\"noopener\">http:\/\/kb.sp.parallels.com\/en\/115833<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Source: http:\/\/kb.odin.com\/en\/118378 php version &#8211; php-5.4.31 CentOS 6.5 Plesk Panel 12.0 Current php version 5.3 1. SSH to your Plesk server (or Apache Service Node for Parallels Plesk Automation) as root, download the PHP source, unpack it, and configure it: # cd \/usr\/local\/src # mkdir php540 # cd php540 # wget http:\/\/www.php.net\/get\/php-5.4.31.tar.gz\/from\/at2.php.net\/mirror # tar xzvf &#8230; <a title=\"How to install and use two versions of PHP on the same Plesk for Linux server\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2014\/08\/14\/how-to-install-and-use-two-versions-of-php-on-the-same-plesk-for-linux-server\/\" aria-label=\"Read more about How to install and use two versions of PHP on the same Plesk for Linux server\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[84,86],"tags":[139],"class_list":["post-551","post","type-post","status-publish","format-standard","hentry","category-php","category-plesk","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=551"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/551\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}