Click to See Complete Forum and Search --> : I need to upgrade. Can anyone help?
brianb
05-07-2003, 08:14 PM
Hello,
Mainly, I have 2 problems....
I need/want to upgrade my 4.1.2 version of PHP to the newest stable release.
I just got myself a dedicated server running Redhat Linux and would like to know the easiest way to do this. I have SSH access, so any help is appreciated.
Secondly, I work extremly fast inside of PhpMyAdmin which I am trying to install onto my system but am receiving an error:
http://66.28.62.203/phpmyadmin/
Seems I need some sort opf module....???
Anyhelp and actual command line examples are DEEPLY appreciated!
Thanks.
tsinka
05-10-2003, 03:12 PM
Hi,
I couldn't connect to that host. Can you post the error message. The best way to upgrade is to download the latest source rpm package for your RedHat Linux. Download the php sources from php.net and put them in the sources directory (/usr/src/packages/SOURCES ?)
Then edit the spec file, which is something like /usr/src/packages/SPECS/mod_php4.spec.
Modify the version variables and the other parts of the spec file to use the newly downloaded distribution. In worst case you might have to edit or remove some patches.
Then execute
rpm -ba /usr/src/packages/SPECS/mod_php4.spec and hope.
You might need to install all rpm packages that are listed on top of the spec file as required or used for build.
By building a custom package based on the original RedHat source package you ensure that it will fit perfectly into your system.
gavsdavs
07-15-2003, 10:19 AM
Hi there
I've got Apache 2.0.40-11.5 installed on Redhat 8.0
I've also got
php-4.2.2-8.0.8
php-mysql-4.2.2-8.0.8
installed and all seems to be ok.
The guy who's writing content/code for the machine wants to be able to use xslt things as offered by things like expat, mod-xslt and sablotron (and I think js is a requirement).
These are provided from http://www.gingerall.com, and I've installed the redhat 9.0 rpms so I've now got
libxslt-1.0.19-1
mod-xslt-exslt-1.0.0rc1-1
sablotron-devel-0.98-1
sablotron-0.98-1
js-devel-1.5rc4-2
js-1.5rc4-2
installed as well.
I don't know how to get the php RPM to recognise I've got this stuff installed - all the advice I've seen suggests that this is an option added at ./configure time with :
--enable-xslt
--with-xslt-sablot
--with-sablot
--with-sablot-js=/usr (optional ?)
So - I went and grabbed the srpm of php-4.2.2-8.0.8 from my local redhat mirror and tried to build it:
rpmbuild --rebuild php-4.2.2-8.0.8.src.rpm --enable-xslt --with-xslt-sablot
which it spits out with :
--enable-xslt: unknown option
There is also no mention of 'xsl' in /usr/src/redhat/SPECS/php.spec.
I tried adding
extension=mod-xslt.so
to /etc/php.ini
This exists in
/usr/lib/httpd/modules/mod-xslt.so
but when you try to use it you get:
# php -i | more
PHP Warning: Unable to load dynamic library '/usr/lib/php4/mod-xslt.so' - /usr/lib/php4/mod-xslt.so: cannot open shared object file: No such file
or directory in Unknown on line 0
So I guess PHP hasn't got it.
xslt is mentioned in
/usr/share/doc/php-4.2.2/EXTENSIONS as Working and maintained.
When looking for the configure string in php -i I get:
./configure --host=i386-redhat-linux --build=i386-redhat-linux --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 --prefix=/usr --with-config-file-path=/etc --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3 --with-curl --with-dom=/usr --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-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-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8 --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared --enable-memory-limit --enable-bcmath --enable-shmop --enable-versioning --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-force-cgi-redirect
Lots of stuff but no xslt.
How do I incude xslt to the package using the srpm and not resorting to compiling from source (as in .tar.gz). I know its essentially the same thing but I like using RPMs - A lot of useful/sensible stuff is done for you.
If apache can use xslt (as the .so is provided by the mod-xslt-exslt rpm), can anyone show me any URLs so I can find out the difference??
I think the code being written requires php to be able to use xslt, so I'm a bit stuck.
Anyone any suggestions ?
Gavin
gavsdavs
07-15-2003, 11:39 AM
This was answered already - I didn't look hard enough
http://www.phpbuilder.com/mail/php-install/2002112/0096.php
Thank you Marco :)
Gavin
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.