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?Package php-xslt needs php = 4.4.1-1.rhfc2.art, this is not available.
Update PHP problem
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
Update PHP problem
I tried to do a yum update today and got this error
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
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?
-
- Atomicorp Staff - Site Admin
- Posts: 8355
- Joined: Wed Dec 31, 1969 8:00 pm
- Location: earth
- Contact:
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.
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
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...
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.'./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'
-
- Forum Regular
- Posts: 196
- Joined: Tue May 10, 2005 1:24 pm
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?