I had to figure out how to compile php on a plesk machine and actually get it to work so I took the time to document everything. This guide *should* work, I know it worked on 2 seperate machines. Aside from that do it at your own risk I am not so fond of plesk because it does have so many issues with upgrade. If you have any trouble or dep issues please post thme here so I can work the fixes into the guide.
up2date -i zlib-devel webalizer unixODBC unixODBC-devel tcl tcl-devel sysstat sendmail-devel rwho pspell-devel php-devel php-imap php-ldap php-mysql php-odbc perl-Crypt-SSLeay perl-DBD-Pg perl-DB_File perl-DateManip perl-HTML-Parser perl-HTML-Tagset perl-Parse-Yapp perl-Time-HiRes perl-URI perl-XML-Dumper perl-XML-Encoding perl-XML-Grove perl-XML-Parser perl-XML-Twig perl-libwww-perl perl-libxml-enno perl-libxml-perl perl-suidperl pciutils-devel patchutils openssl-perl openssl-devel net-snmp net-snmp-devel net-snmp-libs net-snmp-perl net-snmp-utilsmysql-devel mrtg mod_perl mod_perl-devel mod_ssl mailman libxslt libxslt-devel libxml libxml-devel libtool libstdc++-devel libpng-devel libpng10 libpng10-devel libjpeg-devel libdbi-dbd-mysql joe htdig htdig-web gd gd-devel compat-libstdc++ compat-libstdc++-devel compat-db compat-gcc compat-gcc-c++ compat-glibc bzip2-devel bind bind-chroot bind-devel ImageMagick ImageMagick-devel ImageMagick-perl MyODBC
mysql-bench
mkdir /usr/local/src/rpm
cd /usr/local/src/rpm
wget http://dag.wieers.com/packages/libmhash/libmhash-0.9.1-1.rhel3.dag.i386....
wget http://dag.wieers.com/packages/libmcrypt/libmcrypt-2.5.7-1.dag.rhel3.i38...
wget http://dag.wieers.com/packages/libmcrypt/libmcrypt-devel-2.5.7-1.dag.rhe...
wget http://dag.wieers.com/packages/libmhash/libmhash-devel-0.9.1-1.rhel3.dag...
wget http://dag.wieers.com/packages/sablotron/sablotron-1.0.2-1.1.el3.rf.i386...
wget http://dag.wieers.com/packages/sablotron/sablotron-devel-1.0.2-1.1.el3.r...
wget http://dag.wieers.com/packages/js/js-1.5-0.rc6a.1.el3.rf.i386.rpm
wget http://dag.wieers.com/packages/js/js-devel-1.5-0.rc6a.1.el3.rf.i386.rpm
rpm -Uvh *
cd ..
wget http://us3.php.net/get/php-4.4.2.tar.bz2/from/this/mirror
bzip2 -d php-4.4.2.tar.bz2
tar -xf php-4.4.2.tar
cd php-4.4.2
'./configure' '--host=i686-redhat-linux-gnu' '--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-db4=/usr' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-ncurses' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat-dir=/usr' '--with-dom=shared,/usr' '--with-dom-xslt=/usr' '--with-dom-exslt=/usr' '--with-xmlrpc=shared' '--with-zlib' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos=/usr/kerberos' '--with-ldap=shared' '--with-mhash=shared' '--with-mcrypt=shared' '--enable-xslt=shared' '--with-xslt-sablot' '--with-sablot-js=/usr' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-bcmath' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-mbstring=shared' '--enable-mbstr-enc-trans' '--enable-mbregex' '--with-apxs2=/usr/sbin/apxs' '--with-mysql'
make
make install
Error updating packages!!
The following packages you requested were not found:
pspell-devel
perl-DB_File
net-snmp-utilsmysql-devel
libxml
libxml-devel
compat-libstdc++
compat-libstdc++-devel
compat-gcc
compat-gcc-c++
as the result:
configure: error: Cannot find pspell
I have RHEL4 installed. I also search google for those packages for RHEL4 but i could not find any!
Is there anyway to do it?
source compile php
the "pspell" thing is a bit tricky, if you actually look it up on google you find it is also called aspell which is what up2date knows it by so do the following:
up2date aspell aspell-devel
and retry :) That guide was based off of RHEL 3 but with a few mods like that it should work. See if that fixes it or if it will compile ok.
Problem after installed PHP 4.4.2
Thanks eth00
I got php4.4.2 installed.
But onother problem come up: I got this error. It seems like php cant connec to Mysql?
"Client does not support authentication protocol requested by server; consider upgrading MySQL client"
I have Mysql 4.1.12 installed.
And i tried to upgrade Mysql but i dont work though
[root@webserver rpm]# ls
MySQL-client-standard-4.1.18-0.rhel4.i386.rpm MySQL-server-standard-4.1.18-0.rhel4.i386.rpm
MySQL-devel-standard-4.1.18-0.rhel4.i386.rpm MySQL-shared-standard-4.1.18-0.rhel4.i386.rpm
[root@webserver rpm]# rpm -ivh *.rpm
warning: MySQL-client-standard-4.1.18-0.rhel4.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
error: Failed dependencies:
MySQL conflicts with mysql-4.1.12-3.RHEL4.1.i386
MySQL-server conflicts with mysql-server-4.1.12-3.RHEL4.1.i386
Do you know how should i fix this?
Many thanks