I'm requesting some help in upgrading a working installation of
php 5.0.4 to 5.2.8 in the simplist a least risky way. What I mean by that is I've tried doing makes and installs before on other linux systems (this one I've not touched since loading it) and the new versions seem to get installed in places where the existing software can't make use of it. It's probably because I didn't realize I had to know where libraries and such existed but I'm a little wiser now so I'm asking for help before I try the install.

So I'm hoping someone can help me with the proper configuration options such that after the make install all I need to do is restart the httpd server and we'll be good to go. I hope that's not too much to ask for and thank you in advance.

So I'm running:

Fedora Core 4
Apache/2.0.54 (Fedora
SSL
mysql 4.1.20
Modules are
core prefork http_core mod_so mod_access mod_auth mod_auth_anon mod_auth_dbm mod_auth_digest util_ldap mod_auth_ldap mod_include mod_log_config mod_logio mod_env mod_mime_magic mod_cern_meta mod_expires mod_deflate mod_headers mod_usertrack mod_setenvif mod_mime mod_dav mod_status mod_autoindex mod_asis mod_info mod_dav_fs mod_vhost_alias mod_negotiation mod_dir mod_actions mod_speling mod_userdir mod_alias mod_rewrite mod_proxy proxy_ftp proxy_http proxy_connect mod_cache mod_suexec mod_disk_cache mod_file_cache mod_mem_cache mod_cgi mod_php5 mod_perl mod_python mod_ssl

OpenSSL support enabled

OpenSSL Version OpenSSL 0.9.7f 22 Mar 2005

Can someone guide me on the proper configuration options to use to upgrade php 5.0.4 to 5.2.8

Thanks very much

    If you want to update your system as you probably should (to avoid security risks). You could use the RPM manager in the following fashion:

    su -c yum update

    or if you want to only update php and mysql:

    su -c 'yum install php php-mysql'

    Please note that Fedora Core is currently in version 10, and I don't know whether Fedora 4 is still in legacy support.

      I for one use xampp. The good thing about xampp is that it is very easy to install, and it all auto-configs and works well together (PHP, Apache, MySQL), and depending on which package you download and install, you can have a bunch of other handy apps as well (Perl, phpMyAdmin, etc..). Not sure if xampp's version includes all the MySQL you have though (you'd have to look into that).

      The drawback to this system is that you have to wait for the xampp team to release a new setup with the latest stuff.. so for now, the latest they offer is PHP 5.2.6. Good enough for most. I prefer doing it this way so that I don't have to fight with apache and php config files to get it all working together. It's so nice and easy to install and use, I wish all apps were like this.

      It's an option to consider if you are like me and really don't like the idea of manually setting it all up.

        YAOMK;10896498 wrote:

        If you want to update your system as you probably should (to avoid security risks). You could use the RPM manager in the following fashion:

        su -c yum update

        or if you want to only update php and mysql:

        su -c 'yum install php php-mysql'

        Please note that Fedora Core is currently in version 10, and I don't know whether Fedora 4 is still in legacy support.

        I did try yum'ing and it says the php 5.0.4 is the same version that I already have installed so.. no help there. In my further investigation of this, fedora core 4 (fc4) is now archived and along with it all the software that was available at the time in the form of rpms. I tried to find a php 5.2.x rpm within the fedora area as well as outside with no luck. So... my only option appears to be to install it from scratch.

        Any other ideas?
        Thanks for your advice.

          I appreciate your comments. I'm aware that I could use Xampp and the php version that is currently delivered with it should be fine. Do you know if I can install PHP ONLY, i.e., not install mysql or apache? perl would be ok since I use it only once in a while. I would be willing to do that...

          My concern with doing it the way you suggest is that when I've tried to do something like this in the past a new install breaks what's already configured and working. config. files are overwritten, libraries are in different places, and other dependencies seem to crop, etc. I tend to choose the default installations for most things. It's a habit developed over the past 35 years of installing this stuff. If you try to get cute or attempt to outthink these installs - you pay a price. So, while I can appreciate that the developers and implimenters of these things do the best they can to package this stuff so it's as flexible as possible, it's been my personal experience that it can takes hours and hours to figure out where everything is - update configuration files and get things working again. I just don't have the patence to experiment with it at this point which is why I'm asking for help BEFORE I try it. I'm looking to solve a problem - not create a bigger one.

          It seems the one application that I want to upgrade requires at least php version 5.1.x ... so at a minimum I need to get to that installed. Still that will require a fresh install and given what I've got, I just need the proper configuration options and it (crossed fingers) should work. I may just have to take a chance and give it a whirl using the defaults.

          thanks for your advice.

            As you well know, nothing in open source land is fully guaranteed. So dealing with configuration issues is part of the open source experience. A common practice is to make copies of .conf files, so that you can restore whatever configuration you had before:

            cp    /pathToFile/file.conf    file.bak

            Another useful thing to do, is to backup your system before you try a new configuration. There are many tools available, but a favorite is Mondo Rescue. For a particular package, look up the package name and install it via yum, ie php-x.x.x

              Write a Reply...