Announcement

Collapse
No announcement yet.

Php5 / Mysql 4.1.9 Howto

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Fr3d
    replied
    I'm getting this when trying to compile PHP5:
    Error: Missing Dependency: php = 4.3.11-100.rhe4x.iworx is needed by package php-mhash
    Error: Missing Dependency: php = 4.3.11-100.rhe4x.iworx is needed by package php-mcrypt
    Error: Missing Dependency: libmhash.so.2 is needed by package php-mhash
    Installed PHP RPMs:
    [root@yoda ~]# rpm -qa | grep php
    php-mysql-4.3.11-100.rhe4x.iworx
    php-4.3.11-100.rhe4x.iworx
    php-pear-4.3.11-100.rhe4x.iworx
    php-iworx-4.3.9-6.rhe4x.iworx
    php-snmp-4.3.11-100.rhe4x.iworx
    Any ideas?

    Leave a comment:


  • int
    replied
    Originally posted by IWorx-Chris
    int, if you didn't change PHP on your system it's still linked against the old MySQL libs. The only way to get PHP to "see" the new MySQL is to link against it (or use an RPM that was previously linked against it).

    So I'd recompile PHP at this point and it should link against the new MySQL libs you installed.

    Chris
    Alright, got it. Thanks Chris

    Leave a comment:


  • IWorx-Chris
    replied
    int, if you didn't change PHP on your system it's still linked against the old MySQL libs. The only way to get PHP to "see" the new MySQL is to link against it (or use an RPM that was previously linked against it).

    So I'd recompile PHP at this point and it should link against the new MySQL libs you installed.

    Chris

    Leave a comment:


  • int
    replied
    Originally posted by IWorx-Tim
    run rpm -qa | grep mysql

    and paste the output.
    [root@server devel]# rpm -qa | grep mysql
    php-mysql-4.3.11-100.rht90.iworx
    mysql-bench-4.1.12-100.rht90.iworx
    mysql-shared-compat-4.0.21-100.iworx
    mysql-iworx-4.0.21-3.rht90.iworx
    mysql-client-4.1.12-100.rht90.iworx
    mysql-devel-4.1.12-100.rht90.iworx
    mysql-max-4.1.12-100.rht90.iworx
    mysql-server-4.1.12-100.rht90.iworx
    mysql-shared-4.1.12-100.rht90.iworx

    ------

    That worries me since PHP was just updated from 4.3.11 to 5.1.2 on my server the other day. It's working perfectly and so I was trying really hard not to mess with that
    Last edited by int; 03-15-2006, 01:56 PM.

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Originally posted by int

    It turns out it did not automatically restart mysql, I had to start the process from within InterWorx. Having done that, using the phpinfo.php page, it still shows MySQL as being version 3.23.58 (Client API version) :(
    run rpm -qa | grep mysql

    and paste the output.

    Leave a comment:


  • int
    replied
    Originally posted by IWorx-Socheat
    Hi Int,

    Also, the mysql-shared-compat package provides this library:

    yum install mysql-shared-compat

    Should do the trick.

    Socheat
    Thanks for the replies guys.

    Here's what happened:

    [root@server devel]# yum install mysql-shared-compat
    Gathering header information file(s) from server(s)
    Server: Red Hat Linux 9 - Base
    Server: Red Hat Linux 9 - Fedora Legacy - Updates
    Server: InterWorx-CP - Generic
    Server: InterWorx-CP - Red Linux 9
    Server: Red Hat Linux 9 - Updates
    Finding updated packages
    Downloading needed headers
    Resolving dependencies
    Dependencies resolved
    I will do the following:
    [install: mysql-shared-compat 4.0.21-100.iworx.i386]
    Is this ok [y/N]: y
    Downloading Packages
    Getting mysql-shared-compat-4.0.21-100.iworx.i386.rpm
    mysql-shared-compat-4.0.2 100% |=========================| 481 kB 00:01
    Running test transaction:
    Test transaction complete, Success!
    mysql-shared-compat 100 % done 1/1
    Installed: mysql-shared-compat 4.0.21-100.iworx.i386
    Transaction(s) Complete
    [root@server devel]# rpm -Uvh --force /usr/src/redhat/RPMS/i386/mysql-server-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-client-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-bench-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-devel-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-shared-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-max-4.1.12-100.rht90.iworx.i386.rpm
    Preparing... ########################################### [100%]
    Giving mysqld a couple of seconds to exit nicely
    mysqld: no process killed
    1:mysql-server ########################################### [ 17%]
    Restarting mysqld.
    Stopping MySQL: [FAILED]
    Starting MySQL: [ OK ]
    2:mysql-client ########################################### [ 33%]
    3:mysql-bench ########################################### [ 50%]
    4:mysql-devel ########################################### [ 67%]
    5:mysql-shared ########################################### [ 83%]
    6:mysql-max ########################################### [100%]
    Restarting mysqld.

    It turns out it did not automatically restart mysql, I had to start the process from within InterWorx. Having done that, using the phpinfo.php page, it still shows MySQL as being version 3.23.58 (Client API version) :(

    Leave a comment:


  • IWorx-Socheat
    replied
    Hi Int,

    Also, the mysql-shared-compat package provides this library:

    yum install mysql-shared-compat

    Should do the trick.

    Socheat

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Take a look at this I found in Google

    http://www.faqts.com/knowledge_base/...html/aid/29818

    Leave a comment:


  • int
    replied
    Originally posted by IWorx-Tim
    You're on the right track int, but you need to do is to all of them at once

    rpm -Uvh --force rpm1 rpm2 rpm3 etc

    one very LONG command
    [root@server devel]# rpm -Uvh --force /usr/src/redhat/RPMS/i386/mysql-server-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-client-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-bench-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-devel-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-shared-4.1.12-100.rht90.iworx.i386.rpm /usr/src/redhat/RPMS/i386/mysql-max-4.1.12-100.rht90.iworx.i386.rpm
    error: Failed dependencies:
    libmysqlclient.so.10 is needed by (installed) php-mysql-4.3.11-100.rht90.iworx

    No go =(

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Originally posted by int
    I tried updating MySQL to version 4.1.12 by following the instructions to build RPMs.

    I got it to create:
    /usr/src/redhat/RPMS/i386/mysql-server-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-client-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-bench-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-devel-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-shared-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-max-4.1.12-100.rht90.iworx.i386.rpm

    However, whenever I try to rpm -Uvh on any of those, i get dependency errors which I can't simply fix with a "yum install packagename"

    Does anyone have a simpler way for me to upgrade MySQL? I'm going nuts over here...
    You're on the right track int, but you need to do is to all of them at once

    rpm -Uvh --force rpm1 rpm2 rpm3 etc

    one very LONG command
    Last edited by IWorx-Tim; 03-15-2006, 12:13 AM.

    Leave a comment:


  • int
    replied
    MySQL 4.1.12 Problems

    I tried updating MySQL to version 4.1.12 by following the instructions to build RPMs.

    I got it to create:
    /usr/src/redhat/RPMS/i386/mysql-server-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-client-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-bench-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-devel-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-shared-4.1.12-100.rht90.iworx.i386.rpm
    /usr/src/redhat/RPMS/i386/mysql-max-4.1.12-100.rht90.iworx.i386.rpm

    However, whenever I try to rpm -Uvh on any of those, i get dependency errors which I can't simply fix with a "yum install packagename"

    Does anyone have a simpler way for me to upgrade MySQL? I'm going nuts over here...

    Leave a comment:


  • int
    replied
    Originally posted by Saeven
    Hi Chris/Int,

    I've done the work, and have posted the how-to here, hope it helps. I see many PHP5-how-to requests in these forums :)

    http://www.interworx.com/forums/showthread.php?t=1189

    Cheers.
    Alex
    Alex - thank you for your efforts. They are sure to help every InterWorx user who will attempt an update to PHP5.

    I don't know why I'm so surprised by this, since in my experience, this is how the Saeven team has been forever with their Whois.Cart product, and now, i'm sure, with the Auracle Support Engine. I don't mean for this to be a plug for Saeven products, but if anyone is looking for a Cart that works well with InterWorx, that's a great one to go with (www.whoiscart.net)

    From all InterWorx users, thank you so very much Alex!

    Leave a comment:


  • Guest's Avatar
    Guest replied
    Hi Chris/Int,

    I've done the work, and have posted the how-to here, hope it helps. I see many PHP5-how-to requests in these forums :)

    http://www.interworx.com/forums/showthread.php?t=1189

    Cheers.
    Alex

    Leave a comment:


  • IWorx-Chris
    replied
    The apu-config bin is made avail via the apr-util-devel package I believe, and you might as well install the apr-devel package as well if it's not there already.

    Chris

    Leave a comment:


  • int
    replied
    Originally posted by IWorx-Chris
    There are no pre-built binaries, just source RPMs since this is still deemed experimental. Instructions for building are in this thread.

    Chris
    I was afraid I might screw something up during the PHP5 install, so I had an expert try to perform the install for me. However, in doing so, the person had some trouble.

    Question: During compilation, to compile PHP as a DSO for Apache2, it looks for the apu-config packages, which are made available with the httpd-devel packages. Doing an "rpm -q httpd" however, one finds a custom interworx httpd daemon instead of the apache httpd distribution, and no httpd-devel package. Do they have their own httpd-devel that should be used? Or is it safe to use the standard, same-version httpd-devel rpm.

    Leave a comment:

Working...
X