Difference between revisions of "Website PHP Version Upgrade"

From CCCWiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
To make a new PHP version available in the Plex console, please check the [http://download1.parallels.com/Plesk/PP11/11.5/Doc/en-US/online/plesk-administrator-guide/index.htm?fileName=70741.htm Plex help], download the PHP version to ''/tmp/php'' and run the following commands (using version 5.5.12 as example):
+
To make a new PHP version available in the Plex console, please check the [http://download1.parallels.com/Plesk/PP11/11.5/Doc/en-US/online/plesk-administrator-guide/72042.htm Plex help], download the PHP version to ''/tmp/php'' and run the following commands (using version 5.5.32 as example):
 +
  yum install libpng-devel
 +
  yum install libjpeg-devel
 +
  yum install openssl-devel
 +
  yum install curl-devel
 
   cd /tmp/php
 
   cd /tmp/php
   gunzip php-5.5.12.tar.gz
+
   gunzip php-5.5.32.tar.gz
   tar -xf  php-5.5.12.tar
+
   tar -xf  php-5.5.32.tar
   cd php-5.5.12
+
   cd php-5.5.32
   ./configure --with-libdir=lib64 --cache-file=./config.cache --prefix=/usr/local/php-5.5.12 --with-config-file-path=/usr/local/php-5.5.12/etc --disable-debug --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-config-file-scan-dir=/usr/local/php-5.5.12/php.d --with-zlib --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv
+
   ./configure --with-libdir=lib64 --cache-file=./config.cache --prefix=/usr/local/php-5.5.32 --with-config-file-path=/usr/local/php-5.5.32/etc --disable-debug --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-config-file-scan-dir=/usr/local/php-5.5.32/php.d --with-zlib --with-curl --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-openssl --with-jpeg-dir=/usr/lib64
 
   make
 
   make
 
   make install
 
   make install
   /usr/local/psa/bin/php_handler --add -displayname 5.5.12 -path /usr/local/php-5.5.12/bin/php-cgi -phpini /etc/php.ini -type fastcgi -id 5.5.12-custom
+
   /usr/local/psa/bin/php_handler --update -displayname 5.5.32 -path /usr/local/php-5.5.32/bin/php-cgi -phpini /etc/php.ini -type fastcgi -id 5.5.12-custom
   rm -rf /tmp/php/php-5.5.12
+
   rm -rf /tmp/php/php-5.5.32

Latest revision as of 17:10, 6 February 2016

To make a new PHP version available in the Plex console, please check the Plex help, download the PHP version to /tmp/php and run the following commands (using version 5.5.32 as example):

 yum install libpng-devel
 yum install libjpeg-devel
 yum install openssl-devel
 yum install curl-devel
 cd /tmp/php
 gunzip php-5.5.32.tar.gz
 tar -xf  php-5.5.32.tar
 cd php-5.5.32
 ./configure --with-libdir=lib64 --cache-file=./config.cache --prefix=/usr/local/php-5.5.32 --with-config-file-path=/usr/local/php-5.5.32/etc --disable-debug --with-mysql --with-mysqli=mysqlnd --with-pdo-mysql=mysqlnd --with-config-file-scan-dir=/usr/local/php-5.5.32/php.d --with-zlib --with-curl --with-gd --enable-shmop --enable-sockets --enable-sysvsem --enable-sysvshm --enable-mbstring --with-iconv --with-openssl --with-jpeg-dir=/usr/lib64
 make
 make install
 /usr/local/psa/bin/php_handler --update -displayname 5.5.32 -path /usr/local/php-5.5.32/bin/php-cgi -phpini /etc/php.ini -type fastcgi -id 5.5.12-custom
 rm -rf /tmp/php/php-5.5.32