Hi, i have installed PHP 5.0.4 and im trying to install some software.. what a surprise when some packages like Modle send error messages like : "The PHP version must be 4.1.0".. As the moodle websites says this version has lot of errors so i must install 4.4 (no way !) or 5.1/5.2.. but i tried to update it by yum but its the least version available and it keep installing 5.0.4... what can i do? is there any easy way to upgrade php? i dont want to compile the 5.2 version (available on php website) unless its the last option.. Any advice?
Have you tried to find some third-party repositories for Fedora Core 4 that offer a newer PHP version?
I have search on google / yahoo everything i could imagine remotly related to this.. but no answer... i dont know how to find new repositories.. can you tell me some?
What can be the worst thing caould happend if i download the source code from the php.net webpage and try to compile it? ill test it on dev servers before production ones, but it should work, doesnt it?
There really shouldn't be any significant difference between a packaged and a compiled version of php, as long as you stick to the same configuration. Create a php page on your current server and enter this: Code: <? phpinfo(); ?> And then open that page in your browser. Right at the top it should display your current configure options. It should look something like this: Code: PHP Version 5.0.4 System Linux localhost 2.4.20-8 #1 Thu Mar 13 17:54:28 EST 2003 i686 Configure Command './configure' '--prefix=/usr/local/php5' '--with-apxs2=/usr/local/apache/bin/apxs' '--with-gd' '--with-jpeg-dir' '--with-tiff-dir' '--with-ttf' '--with-mysql' '--with-zlib' '--with-kerberos' '--with-xsl=/usr/local/' Configuration File (php.ini) Path /usr/local/php5/lib/php.ini Except it'll be in a nice html table and your options will probably be different from this one
I thought that was what you were suggesting yourself (edit: ugh sorry php ofcourse, not apache. I need to learn how to read ^_^) Actually it's not as hard as it sounds. Just get the configure line right (and yes make sure that includes APXS, which the old one should include too.) After that it's a matter of typing "make ; make install" and you're done If you're not sure how to configure, post the information from the <? phpinfo(); ?> script here, maybe we can suggest a good configuration line for you.
I dont know.. my experience in linux is that its so unstable, i dont like the idea of recomple something... the configure line is: './configure' '--build=i386-redhat-linux' '--host=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' '--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' '--with-apxs2=/usr/sbin/apxs' '--without-mysql' '--without-gd' '--without-odbc' '--disable-dom' '--disable-dba' reading this... "without-mysql" "without-odbc" "disable-dom"... is it right???
I know what you mean, it can feel a bit fragile some times. But as long as you test it on your dev server first and it's running the same apps and os as your "live" server it really shouldn't cause any problems. Also you're moving from php5 to a slightly updated php5, that should cause a lot less grief than migrating from 4 to 5 or vice versa. Also I wouldn't know how else to fix your problem, other than waiting for whoever is responsible to update the yum packages or downgrade to php 4.1 (ick.) Hmm --without-mysql and --without-sqlite didn't seem right at first but then I noticed --with-dbx. I'm not familliar with dbx myself but it seems to be a wrapper for other databases kind of like odbc. (dbx_connect) I imagine your current php apps might use that instead of straight mysql? In any case you can definitely try a compile on your dev server with a straight copy of that configure line. It should make the new php with identical options to the old one.