Multiples PHP Versionen ab Plesk 12.0 – PHP 5.6.5
21. Februar 2015
Lesen! Lesen! Nochmals lesen! Dann probieren! Am besten erst auf einem Testserver probieren Auf eigene Gefahr! KEIN DOTDEB Repo Verwenden! Downloaden: Um die meisten Vorraussetzungen und Fehler im Vorraus zu erfüllen und zu verhindern, sollte man das hier installieren: sudo apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng12-dev libxpm-dev libfreetype6-dev libmysqlclient-dev postgresql-server-dev-9.1 libt1-dev libgd2-xpm-dev libgmp-dev […]

Lesen! Lesen! Nochmals lesen! Dann probieren!
Am besten erst auf einem Testserver probieren
Auf eigene Gefahr!
KEIN DOTDEB Repo Verwenden!
Downloaden:
Um die meisten Vorraussetzungen und Fehler im Vorraus zu erfüllen und zu verhindern, sollte man das hier installieren:
sudo apt-get install libxml2-dev libpcre3-dev libbz2-dev libcurl4-openssl-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 libxml2-dev libbz2-dev libcurl4-openssl-dev libjpeg-dev libpng-dev libfreetype6-dev libgmp3-dev libc-client-dev libicu-dev libsasl2-dev unixodbc-dev libpspell-dev libsnmp-dev libxslt-dev libpq-dev apache2-suexec libpcre3-dev libpcre++-dev libpng12-dev libbz2-dev libcurl4-openssl-dev libc-client2007e-dev libjpeg-dev libgif-dev libgif4 libpthread-stubs0 libpthread-stubs0-dev libx11-dev libxau-dev libxcb1-dev libxdmcp-dev libxpm-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev xtrans-dev libxml2-dev libmysqlclient-dev libfreetype6-dev libapache2-mod-fastcgi php-pear php5-dev libmysqlclient15-dev libsnmp15
Symlinks für Libraries setzen, damit diese später gefunden werden.
ln -fs /usr/lib/x8664-linux-gnu/libldap.so /usr/lib64/
ln -s ext/pdo/ pdo
ln -s /usr/lib/libc-client.a /usr/lib/x8664-linux-gnu/libc-client.a
Nun können wir starten.
Alle Befehle bis zum Konfigurieren sollten soweit klar sein.
Wget hat deshalb den Parameter, weil es ein fortführender Download ist, also ein relativer Pfad.
cd /usr/local/src
wget -O php-5.6.5.tar.gz http://de1.php.net/get/php-5.6.5.tar.gz/from/this/mirror
tar xzvf php-5.6.5.tar.gz
rm -rf php-5.6.5.tar.gz
./configure \
'--with-libdir=lib/x8664-linux-gnu'\
'--cache-file=../config.cache'\
'--prefix=/usr/local/php-5.6.5-cgi'\
'--with-config-file-path=/usr/local/php-5.6.5-cgi/etc'\
'--disable-debug'\
'--with-pic'\
'--disable-rpath'\
'--enable-fastcgi'\
'--with-bz2'\
'--with-curl'\
'--with-freetype-dir=/usr/local/php-5.6.5-cgi'\
'--with-png-dir=/usr/local/php-5.6.5-cgi'\
'--enable-gd-native-ttf'\
'--without-gdbm'\
'--with-gettext'\
'--with-gmp'\
'--with-iconv'\
'--with-jpeg-dir=/usr/local/php-5.6.5-cgi'\
'--with-openssl'\
'--with-pspell'\
'--with-pcre-regex'\
'--with-zlib'\
'--enable-exif'\
'--enable-ftp'\
'--enable-sockets'\
'--enable-sysvsem'\
'--enable-sysvshm'\
'--enable-sysvmsg'\
'--enable-wddx'\
'--with-kerberos'\
'--with-unixODBC=/usr'\
'--enable-shmop'\
'--enable-calendar'\
'--without-sqlite3'\
'--with-libxml-dir=/usr/local/php-5.6.5-cgi'\
'--enable-pcntl'\
'--with-imap'\
'--with-imap-ssl'\
'--enable-mbstring'\
'--enable-mbregex'\
'--with-gd'\
'--enable-bcmath'\
'--with-xmlrpc'\
'--with-ldap'\
'--with-ldap-sasl'\
'--with-mysql=/usr'\
'--with-mysqli'\
'--with-snmp'\
'--enable-soap'\
'--with-xsl'\
'--enable-xmlreader'\
'--enable-xmlwriter'\
'--enable-pdo'\
'--with-pdo-mysql'\
'--with-pdo-pgsql'\
'--with-pear=/usr/local/php-5.6.5-cgi/pear'\
'--with-mcrypt'\
'--enable-intl'\
'--without-pdo-sqlite'\
'--with-config-file-scan-dir=/usr/local/php-5.6.5-cgi/php.d'
Ab und zu führt die Version oben, aufgrund ihrer Breaks zu Fehlern.
Daher hier eine gekürzte Fassung:
./configure --with-libdir=lib/x8664-linux-gnu --cache-file=../config.cache --prefix=/usr/local/php-5.6.5-cgi --with-config-file-path=/usr/local/php-5.6.5-cgi/etc --disable-debug --with-pic --disable-rpath --enable-fastcgi --with-bz2 --with-curl --with-freetype-dir=/usr/local/php-5.6.5-cgi --with-png-dir=/usr/local/php-5.6.5-cgi --enable-gd-native-ttf --without-gdbm --with-gettext --with-gmp --with-iconv --with-jpeg-dir=/usr/local/php-5.6.5-cgi --with-openssl --with-pspell --with-pcre-regex --with-zlib --enable-exif --enable-ftp --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-wddx --with-kerberos --with-unixODBC=/usr --enable-shmop --enable-calendar --without-sqlite3 --with-libxml-dir=/usr/local/php-5.6.5-cgi --enable-pcntl --with-imap --with-imap-ssl --enable-mbstring --enable-mbregex --with-gd --enable-bcmath --with-xmlrpc --with-ldap --with-ldap-sasl --with-mysql=/usr --with-mysqli --with-snmp --enable-soap --with-xsl --enable-xmlreader --enable-xmlwriter --enable-pdo --with-pdo-mysql --with-pdo-pgsql --with-pear=/usr/local/php-5.6.5-cgi/pear --with-mcrypt --enable-intl --without-pdo-sqlite --with-config-file-scan-dir=/usr/local/php-5.6.5-cgi/php.d
Kompelieren und installieren
make
make install
Dieser Prozsse dauert sehr lange.
Also, mach dir mal nen Kaffee, eventuell noch eine Rauchen gehen.
Nicht wundern, es kommen viele Meldungen.
Nun die PHP ini kopieren als fertige Ini.
cp php.ini-development /usr/local/php-5.5.6-cgi/php.ini
Im Parallels Plesk Panel registrieren:
Beispiel:
/usr/local/psa/bin/php_handler --add -displayname php-5.6.5 -path /usr/local/php-5.6.5/ -phpini /usr/local/php-5.6.5-cgi/php-5.6.5/php.ini -type fastcgi -id 2 -service-node 127.0.0.1
Ren Rest könnt ihr nachlesen auf http://kb.parallels.com/en/118378
Zur Fehlerliste
Kommentare
Kommentare werden geladen...