Update PHP problem

Support/Development for PHP
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Update PHP problem

Unread post by Troy McClure »

I tried to do a yum update today and got this error
Package php-xslt needs php = 4.4.1-1.rhfc2.art, this is not available.
This is on a 1and1 FC2 root server, but I also have a test FC2 server that I setup and I get the same error on it too. Any ideas?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I've pretty much made the decision to go over to php 5 from here on out. Which is going to require a fairly more involved upgrade path than normal, likely you will need to remove all of php4 before installing it.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

It just seems php-xslt is not part of your PHP 4.4.2 set of rpms. It was there with your 4.4.1 release, so people who installed that package will get that error when trying to upgrade to 4.4.2.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yep, no more 4.4 from here on out
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

If you want to upgrade to PHP 4.4.2 and you can live without php-xslt, you can probably remove php-xslt and then run yum update again.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

OK. So since you will only be supporting php5 I started looking into installing it. I have gotten it install on my test box, but the config statement has --without-mysql and --without-gd among other things. Is this typical?
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Unread post by breun »

You might want to try upgrading again. There's a new build online which does have the php-xslt package, so yum update should just work now.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yep, its based on the FC4 design, which moves all that around.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

So what would be my easiest path for upgrade to php5? Should I download and configure it myself? Thanks.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

I'm waiting for you guys to tell me :P I think it might upgrade, and you'll need to do some extra steps to add in php-gd, etc. But I havent really tested it enough to know for sure yet.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

Well I don't mind testing on my test box. I can tell you the problems I came accross doing the update. First, a yum update php gives dependency errors. The 2 that showed on mine were php-domxml and php-xslt. Are these not available for php 5? One of these was needed by horde (I think php-domxml). So I removed them using the --nodeps option. Then I did a yum update php and php updated fine. I had to manually change /etc/httpd/conf.d/php.conf to load php5 instead of php4 (LoadModule php5_module modules/libphp5.so) and then did an apache restart. PHP installed and was recognized correctly. I couldn't reinstall the php-domxml or php-xslt rpms since there aren't any in the repository. This could be a problem since I think that horde needs one of them. The other problem was that php was loaded without mysql or gd, which you already mentioned we may need to do manually to get them install. How would I go about manually adding these?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

My understanding is that one of the php xml packages supercedes xslt. I dont work with xslt, so I can speak to which one that is at this time. My guess would be to start with php-xml. For the rest, you may need do direct yum installs on php-gd, php-pear, php-mysql, php-soap, etc. There are 18 modules (not including mcrypt) that comprise php 5, vs. 15 on php 4.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

I actually don't need php-xslt either, just thought I would metion it. OK, I have installed all the packages using yum install php php-bcmath php-dba, etc. Everything is fine, but I still have the problem of no mysql or gd. They actuall show up in the descriptions of each, but the config statement doesn't include them. They seem to be working now. Here is the config statement...
'./configure' '--host=i686-redhat-linux-gnu' '--build=i686-redhat-linux-gnu' '--target=i386-redhat-linux' '--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-libdir=lib' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--with-bz2' '--with-curl' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--enable-gd-native-ttf' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-expat-dir=/usr' '--with-pcre-regex=/usr' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-sysvmsg' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--with-pear=/usr/share/pear' '--with-kerberos' '--enable-ucd-snmp-hack' '--with-unixODBC=shared,/usr' '--enable-memory-limit' '--enable-shmop' '--enable-calendar' '--enable-dbx' '--enable-dio' '--with-mime-magic=/etc/httpd/conf/magic' '--without-sqlite' '--with-libxml-dir=/usr' '--with-xml' 'build' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba'
Is there anything to worry about with this config statement. I know that mysql is working, but haven't tested gd. It seems that it would work though.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Yeah none of that is valid anymore, so ignore those config settings completely. The modules have shifted out of the php library, so you'll never see them in phpinfo correctly.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

Well, it seems that everything works great now. It was really an easy upgrade. I removed all the php 4 rpms with the --nodeps before doing the upgrade and then installed all the php 5 rpms together at once through yum. This upgraded some other things too (mhash, unixODBC, net-snmp). I'm not sure about the php-domxml which was required by horde though. I have tested horde and it works, but I haven't dug too deep into it. I did also notice that dom does show up in the phpinfo so I assume that is what the php-domxml rpm provided for php 4. It does seem like it may be a little bit slower, but I really don't have a reference since I don't use horde on this box since it is a test box. Is there anything you would like for me to test?
Post Reply