View Full Version : Upgrade Guide for PHP and MySQL
kstange
03-16-2007, 04:56 PM
Socheat suggested I post a link to this here on the forum. I just finished writing up a procedure in our knowledgebase for our customers that steps through the process of performing an upgrade on any supported InterWorx platform from MySQL of your distro and the PHP 4.3.11 InterWorx package to a version of your choice using the source RPMs from InterWorx.
This procedure has been well tested on CentOS 4. If anyone tries these directions with Fedora and runs into problems, we could use the feedback to correct them.
How do I use PHP 5 or MySQL 5 with InterWorx? (https://support.steadfast.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,9)
Obviously, I would ask that if you are not a Steadfast customer, you do not contact our support staff, but post issues here. Also, of course, this is not officially supported by InterWorx, so issues with it should certainly not be directed to their staff.
Good luck!
pascal
03-21-2007, 09:47 AM
Hello,
Do you know some compatibility problems when upgrading from MySQL 4.1 to MySQL 5.0 ?
Is it safe to just upgrade the RPM like you suggest ?
I think about AES crypt field ? I'm not sure there are compatibles ?!
Don't you think you could add two steps to your tutorial :
- copy the old mysqld binary (for example mysqld-4.1.old) to be able to restart with the old version ?
- Backup all databases with a mysqldump then restore all databases with the new mysql ? (I think it should solve all compatibility problems for encrypt field. Not sure as I don't done tests)
Maybe a third step could be necessary, like run the mysql_upgrade script ?
Thanks for your returns.
It's true that we thought about upgrading MySQL 4.1 to 5.0 but we are not sure if there won't have too much *incompatibilty* problems
Thanks for this tutorial which should help a lot of people, and give the basics of how to manage rpms
Pascal
kstange
03-21-2007, 12:10 PM
I have not noted upgrade issues between 5.0 and 4.1. For the most part, everything seems to work fine on the customer end. MySQL 5 is smart enough to handle the MySQL 4.1 database format without issues.
The real problem we see is going from 4.0 to 4.1 due especially to the changes to how encodings, collations, etc are handled. I would recommend a mysqldump before going to 4.1, and probably 5.0 just to be safe, but the other steps, backing up the binary, etc seem unnecessary.
Dumping and reimporting should only be necessary between 4.1 and 5.0 if there's corruption, and I've not seen any from past experience.
pascal
03-21-2007, 12:14 PM
Ok thanks Kstange
I thought there was a compatibility problem between 4.1 and 5.0 with AES encrypt field. If I remember well MySQL 5.0 has changed the way they encrypt the data (don't remember if it is from AES to DES, ???). I'll look into this
Pascal
pascal
03-21-2007, 08:21 PM
Ok
I have had some problems let's me explain what they are :
1- mysql-share doesn't install older mysql client like libmysqlclient10 or 14
So you have to find a mysql-share-compat rpm and install it (from mysql site)
2- all libmysql are installed in /usr/lib64/libmysqlxxx rather than /usr/lib64/mysql/
The perl-DBD-MySQL looks for libmysqlclient.so in /usr/lib64/mysql/ and doesn't find it
(/usr/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
)
So I had to manually copy all /usr/lib64/libmysqlclientxxx to /usr/lib64/mysql/
Evertthing else works like a charm (after rebuilding php4 and php5 of course !)
Hope it might help some of you
pascal
pascal
03-21-2007, 09:16 PM
arff
In fact I also have the same problem when recompiling PHP5 !!
/usr/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/mysql/libmysqlclient.a(libmysql.o): could not read symbols: Bad value
collect2: ld returned 1 exit status
And more OSCOMMERCE IS NOT COMPATIBLE WITH MYSQL5 due to JOIN changement !!!
So all the clients that use OsCommerce have to patch their softs !
Pascal
The universe is probably better off without osCommerce... (yes I know I use it all the time...)
Wonderful package management aside, its probably a good idea to check everything that links against the mysql library after an update. I had a fun time eairlier this week reparing the damage on a server after someone did a minor version update of PHP on a cPanel box. Segfaults, segfaults, and more segfaults!
hubbadubba
03-30-2007, 08:32 AM
Socheat recommended these instructions as a possible solution to my problem with PHP 5 coexisting with Interworx in CentOS 4.4
Testing environment:
Two machines with clean installs of CentOS 4.4
Joomla 1.5 and Modernbill 5
1st machine without Interworx and using CentOSPlus repo version of PHP 5.1.6-3 and MySQL 5.0.27 works great,
2nd virtual machine using Interworx and either CentOSPlus repo version of PHP 5.1.6-3 and MySQL 5.0.27, or following the instructions in the link above (both 5.1.6 and 5.2) all fail.
failure is defined as: I can't install Modernbill 5 or Joomla 1.5- trying to access Joomla install page gives this error:
With the Steadfast instructions:PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required '/chroot/home/xxx/xxx.xxx.xxx/html/libraries/loader.php' (include_path='.:/usr/share/pear') in /chroot/home/xxx/xxx.xxx.xxx/html/installation/includes/framework.php on line 35
With the CentOSPlus repo enabled and display errors turned on I get a stream of: Warning: preg_match: internal pcre_fullinfo() error -3 Any help appreciated!
IWorx-Socheat
03-30-2007, 09:53 AM
Hi hubbadubba, I just responded to your support ticket, re: problem #1.
hubbadubba
03-30-2007, 10:52 AM
Thanks for unlocking my brain Socheat! There were indeed missing files in the latest nightly build of Joomla. This method worked fine. Running PHP 5.2 with Joomla now without issue so far.
cabizeid
03-31-2007, 08:56 AM
I got an error right off the bat
rpmbuild --rebuild http://mirror.steadfast.net/misc/iworx/mysql-5.0.27-100.iworx.src.rpm --with cos3x
Installing http://mirror.steadfast.net/misc/iworx/mysql-5.0.27-100.iworx.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.15150
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ cd /usr/src/redhat/BUILD
+ rm -rf mysql-5.0.27
+ /bin/gzip -dc /usr/src/redhat/SOURCES/mysql-5.0.27.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mysql-5.0.27
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,g-w,o-w .
+ '[' -f /var/tmp/mysql-5.0.27-gcc ']'
+ '[' -x /usr/bin/gcc-3.2.3 ']'
+ '[' -x /usr/bin/gcc-3.2.2 ']'
+ '[' -x /usr/bin/gcc-3.2.1 ']'
+ '[' -x /usr/bin/gcc-3.2 ']'
+ '[' -x /usr/bin/gcc-3.1.1 ']'
+ echo gcc
+ '[' -f /var/tmp/mysql-5.0.27-show_flags ']'
+ cat
++ cat /var/tmp/mysql-5.0.27-gcc
+ chmod u+x /var/tmp/mysql-5.0.27-show_flags
+ /var/tmp/mysql-5.0.27-show_flags
/var/tmp/rpm-tmp.15150: /var/tmp/mysql-5.0.27-show_flags: /bin/sh: bad interpreter: Permission denied
error: Bad exit status from /var/tmp/rpm-tmp.15150 (%prep)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.15150 (%prep)
Server info (vps):
mysql-server-3.23.58-16.RHEL3.1
CentOS release 3.8 (Final)
cabizeid
03-31-2007, 10:55 PM
[root@host root]# yum -c http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm?cos3x install libmhash-devel libmcrypt-devel
Error accessing URL: http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm?cos3x
[root@host root]# yum -c http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm install libmhash-devel libmcrypt-devel
Error accessing URL: http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
IWorx-Paul
03-31-2007, 11:18 PM
/var/tmp/rpm-tmp.15150: /var/tmp/mysql-5.0.27-show_flags: /bin/sh: bad interpreter: Permission denied
This probably means you have the /tmp partition mounted noexec. This will have to be resolved so the rpmbuild can execute bash scripts in that location.
Regarding the libmcrypt errors, I'd just try
yum install libmhash-devel libmcrypt-devel
and see if that doesn't install those rpms.
IWorx-Socheat
03-31-2007, 11:45 PM
[root@host root]# yum -c http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm?cos3x install libmhash-devel libmcrypt-devel
Error accessing URL: http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm?cos3x
[root@host root]# yum -c http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm install libmhash-devel libmcrypt-devel
Error accessing URL: http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
I think you have a typo in your command. You shouldn't be doing "-c http://some/src.rpm". The -c command specifies a config file. The correct command is:
yum -c http://mirror.steadfast.net/misc/iworx/rpmforge.repo.shtml?oscode install libmhash-devel libmcrypt-devel
cabizeid
04-01-2007, 12:27 AM
I got the below while doing step 1 in mysql build (after nearly 20 minutes of processing too)
Processing files: mysql-max-5.0.27-100.iworx
Provides: mysql-max
Requires(interp): /bin/sh
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires(post): /bin/sh
Requires: /bin/sh mysql >= 4.0
Obsoletes: mysql-max
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/mysql-5.0.27-root
error: Installed (but unpackaged) file(s) found:
/usr/lib/mysql/libz.a
/usr/lib/mysql/libz.la
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/mysql/libz.a
/usr/lib/mysql/libz.la
[root@host root]# rpm -Uhv --nodeps /usr/src/redhat/RPMS/`uname -i`/mysql*-5.0.27-100.*
error: File not found by glob: /usr/src/redhat/RPMS/i386/mysql*-5.0.27-100.*
Still getting this error on mysql upgrade:
Checking for unpackaged file(s): /usr/lib/rpm/check-files /var/tmp/mysql-5.0.27-root
error: Installed (but unpackaged) file(s) found:
/usr/lib/mysql/libz.a
/usr/lib/mysql/libz.la
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/mysql/libz.a
/usr/lib/mysql/libz.la
More php errors:
yum install `rpmbuild --rebuild --nobuild --with cos3x http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print \$1 }' | xargs`
Gathering header information file(s) from server(s)
Server: CentOS 3 - Addons
Server: CentOS 3 - Base
Server: CentOS 3 - Extras
Server: InterWorx-CP - CentOS 3
Server: InterWorx-CP - Generic
Server: CentOS 3 - Updates
Finding updated packages
Downloading needed headers
Need to pass a list of pkgs to install
Usage: yum [options] <update | upgrade | install | info | remove | list |
clean | provides | search | check-update | groupinstall | groupupdate |
grouplist >
Options:
-c [config file] - specify the config file to use
-e [error level] - set the error logging level
-d [debug level] - set the debugging level
-y answer yes to all questions
-t be tolerant about errors in package commands
-R [time in minutes] - set the max amount of time to randomly run in.
-C run from cache only - do not update the cache
--installroot=[path] - set the install root (default '/')
--version - output the version of yum
--exclude=some_pkg_name - packagename to exclude - you can use
this more than once
--download-only - only download packages - do not run the transaction
-h, --help this screen
cabizeid
04-01-2007, 12:45 AM
Errors compiling php
[deps: libmhash 0.9.1-1.rhel3.dag.i386]
Is this ok [y/N]: y
Downloading Packages
Getting libmhash-0.9.1-1.rhel3.dag.i386.rpm
libmhash-0.9.1-1.rhel3.da 100% |=========================| 128 kB 00:01
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 6b8d79e6
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/rpmforge/packages/libmhash-0.9.1-1.rhel3.dag.i386.rpm
Error: You may want to run yum clean or remove the file:
/var/cache/yum/rpmforge/packages/libmhash-0.9.1-1.rhel3.dag.i386.rpm
Error: You may also check that you have the correct GPG keys installed
[root@offshoresimple root]# yum clean
Gathering header information file(s) from server(s)
Server: CentOS 3 - Addons
Server: CentOS 3 - Base
Server: CentOS 3 - Extras
Server: InterWorx-CP - CentOS 3
Server: InterWorx-CP - Generic
Server: CentOS 3 - Updates
Finding updated packages
Cleaning packages and old headers
Attempt to delete a missing file /var/cache/yum/base/headers/glibc-0-2.3.2-95.27.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/base/headers/glibc-kernheaders-0-2.4-8.34.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-0-2.3.2-95.20.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-0-2.3.2-95.30.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-common-0-2.3.2-95.20.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-common-0-2.3.2-95.30.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-devel-0-2.3.2-95.20.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-devel-0-2.3.2-95.30.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-headers-0-2.3.2-95.20.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/glibc-headers-0-2.3.2-95.30.i386.hdr - ignoring.
Attempt to delete a missing file /var/cache/yum/updates/headers/initscripts-0-7.31.13.EL-1.centos.1.i386.hdr - ignoring.
I do not understand why I should use this command without specifying php version (v5 is my intention) as stated in the steadfast guideline:
yum -c http://mirror.steadfast.net/misc/iworx/rpmforge.repo.shtml?cos3x install libmhash-devel libmcrypt-devel
IWorx-Paul
04-01-2007, 01:07 AM
RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/mysql/libz.a
/usr/lib/mysql/libz.la
For this one I'd try
yum install zlib-devel
Regarding trying to install the libmcrypt and libmhash rpms, these are just prerequisites to installing php - not actually installing php, that's why you don't specify any php version there.
I'd try:
yum install libmhash-devel libmcrypt-devel
The goal here is to get libmhash-devel and libmcrypt-devel RPMs installed. If you can find the actual .rpm files for these, you can just do:
rpm -ivh RPM-FILE-NAME-HERE
kstange
04-01-2007, 01:24 AM
Errors compiling php
[deps: libmhash 0.9.1-1.rhel3.dag.i386]
Is this ok [y/N]: y
Downloading Packages
Getting libmhash-0.9.1-1.rhel3.dag.i386.rpm
libmhash-0.9.1-1.rhel3.da 100% |=========================| 128 kB 00:01
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 6b8d79e6
Error: Could not find the GPG Key necessary to validate pkg /var/cache/yum/rpmforge/packages/libmhash-0.9.1-1.rhel3.dag.i386.rpm
Error: You may want to run yum clean or remove the file:
/var/cache/yum/rpmforge/packages/libmhash-0.9.1-1.rhel3.dag.i386.rpm
Error: You may also check that you have the correct GPG keys installed
Ah, this is failing in CentOS 3 because Yum is not smart enough to offer to import the GPG key for the packages and thus can't verify them. If you run this command first, it will accomplish the task required:
rpm --import http://mirror.steadfast.net/misc/iworx/RPM-GPG-KEY-rpmforge-dagI'll update the directions to include this step.
cabizeid
04-01-2007, 07:49 AM
For this one I'd try
yum install zlib-devel
Regarding trying to install the libmcrypt and libmhash rpms, these are just prerequisites to installing php - not actually installing php, that's why you don't specify any php version there.
I'd try:
yum install libmhash-devel libmcrypt-devel
The goal here is to get libmhash-devel and libmcrypt-devel RPMs installed. If you can find the actual .rpm files for these, you can just do:
rpm -ivh RPM-FILE-NAME-HERE
yum install zlib-devel
\Gathering header information file(s) from server(s)
Server: CentOS 3 - Addons
Server: CentOS 3 - Base
Server: CentOS 3 - Extras
Server: InterWorx-CP - CentOS 3
Server: InterWorx-CP - Generic
Server: CentOS 3 - Updates
Finding updated packages
Downloading needed headers
zlib-devel is installed and is the latest version.
No actions to take
yum install libmhash-devel libmcrypt-devel
Gathering header information file(s) from server(s)
Server: CentOS 3 - Addons
Server: CentOS 3 - Base
Server: CentOS 3 - Extras
Server: InterWorx-CP - CentOS 3
Server: InterWorx-CP - Generic
Server: CentOS 3 - Updates
Finding updated packages
Downloading needed headers
Cannot find a package matching libmhash-devel
libmcrypt-devel is installed and is the latest version.
No actions to take
Catalyst
04-01-2007, 07:04 PM
Cabizeid ... that's a known issue with certain MySQL5 builds. Make sure you've updated libtool, etc. to the latest version, and that your /etc/ld.so.conf contains one line:include /etc/ld.so.conf.dNext, move /etc/ld.so.conf.d/mysql-i386.conf, type `ldconfig` and try again.
Basically, it's looking for the zlib stuff in the wrong directory --- the one supplied by ld (/usr/lib/mysql) instead /usr/lib.
cabizeid
04-02-2007, 05:55 PM
Just installed a new vps and upgraded it to IW 3x (RC) mentioned in another thread today. I'm using centos 4. Trying to upgrade php to 5.2x and getting errors:
[root@none ~]# yum install libmhash-devel libmcrypt-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
No Match for argument: libmhash-devel
Nothing to do
[root@none ~]# rpmbuild --rebuild --with cos4x http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
Installing http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
error: Failed build dependencies:
libmhash-devel is needed by php-5.2.0-100.iworx.i386
Can someone please explain why it shows installed, then not?
IWorx-Socheat
04-02-2007, 06:12 PM
Yum doesn't say it's installed, it says there's no match for "libmhash-devel" and that there's nothing to do:
No Match for argument: libmhash-devel
Nothing to do
You can find libmhash RPMs on the DAG repository:
http://dag.wieers.com/rpm/packages/libmhash/
You'll want both the libmhash and libmhash-devel package, and be sure to grab the RPMs that have "el4", as that's the correct oscode for CentOS 4.x.
Hope that helps.
cabizeid
04-02-2007, 06:35 PM
Sorry, been a *long long* day
I upgraded mysql fine, but php is still giving me a hard time after I downloaded and installed both libmhash/devel (yes, el4)
[root@none ~]# yum -c http://mirror.steadfast.net/misc/iworx/rpmforge.repo.shtml?cos4x install libmhash-devel libmcrypt-devel
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
http://apt.sw.be/%28none%29/en/i386/dag/repodata/repomd.xml: [Errno 14] HTTP Error 404: Not Found
Trying other mirror.
Cannot open/read repomd.xml file for repository: rpmforge
failure: repodata/repomd.xml from rpmforge: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from rpmforge: [Errno 256] No more mirrors to try.
[root@none ~]# yum install `rpmbuild --rebuild --nobuild --with cos4x http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print \$1 }' | xargs`
Error: Need to pass a list of pkgs to install
Catalyst
04-04-2007, 03:56 AM
You're doing it wrong --- you're supposed to download that file, and change the (none) to i386. ;-)
Just go to http://dag.wieers.com/packages/libmcrypt & http://dag.wieers.com/packages/libmhash and download the correct ones for your OS. That's the easiest way, given all that...
hubbadubba
05-22-2007, 02:47 PM
These instructions were a great primer for learning how to build an RPM from source- does anyone have some advice for patching these rpms? As in- how do I patch this PHP 5.2 build to 5.2.2?
Somewhat of a newbie, I think I understand I need to download the patch from php.net, then place it in the proper location in the directory tree and edit the spec file, with the understand that there may be addtional dependencies that will cause the build to fail until I resolve them. Am I even close to getting this right? :)
pascal
05-23-2007, 06:24 AM
Yes you exactly have to do this.
In the spec file change the version
place in the good place the php.tar (replace the old one to 5.2.2 one)
Give a try
Sometimes everything is fine, sometimes you'll have to patch some files !
So yes you are in the good direction
Pascal
Justec
05-23-2007, 10:31 AM
And more OSCOMMERCE IS NOT COMPATIBLE WITH MYSQL5 due to JOIN changement !!!
So all the clients that use OsCommerce have to patch their softs !
So there is a fix for OScommerce on PHP5/MySQL5? I have built a custom website for a client using OScommerce (with lots of customizations) and I am planning to move to PHP5/MySQL5 when CentOS5 is supported.
thinksmart12
05-31-2007, 02:02 PM
Hello,
I am trying to install PHP 4.4.4 using these instructions and I get this error:
yum install `rpmbuild --rebuild --nobuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-4.4.4-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print \$1}' | xargs`
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libc-client-devel to pack into transaction set.
libc-client-devel-2002e-1 100% |=========================| 14 kB 00:00
---> Package libc-client-devel.i386 0:2002e-14 set to be updated
---> Downloading header for postgresql-devel to pack into transaction set.
postgresql-devel-7.4.17-1 100% |=========================| 49 kB 00:00
---> Package postgresql-devel.i386 0:7.4.17-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Conflict: libc-client-devel conflicts imap-devel
--> Processing Dependency: postgresql = 7.4.17-1.RHEL4.1 for package: postgresql-devel
--> Processing Dependency: postgresql-libs = 7.4.17-1.RHEL4.1 for package: postgresql-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-7.4.17-1. 100% |=========================| 12 kB 00:00
---> Package postgresql-libs.i386 0:7.4.17-1.RHEL4.1 set to be updated
---> Downloading header for postgresql to pack into transaction set.
postgresql-7.4.17-1.RHEL4 100% |=========================| 104 kB 00:00
---> Package postgresql.i386 0:7.4.17-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Conflict: libc-client-devel conflicts imap-devel
--> Finished Dependency Resolution
Error: libc-client-devel conflicts with imap-devel
Could someone please tell me why there are conflicting packages and how to fix this?
pascal
05-31-2007, 03:41 PM
Hi
I'd do
rpm -e imap-devel
yum install libc-client-devel
yum install postgresql-devel-7.4.17-1
then install the PHP4.4.4
rpmbuild --rebuild --with oscode urlofphpsrcrpm
Pascal
pascal
05-31-2007, 03:42 PM
rpmbuild --rebuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-4.4.4-100.iworx.src.rpm
Pascal
cabizeid
06-10-2007, 07:42 AM
Problem...
[root@server ~]# yum install `rpmbuild --rebuild --nobuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print $1 }' | xargs`
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for libgcrypt-devel to pack into transaction set.
libgcrypt-devel-1.2.0-3.i 100% |=========================| 3.8 kB 00:00
---> Package libgcrypt-devel.i386 0:1.2.0-3 set to be updated
---> Downloading header for libc-client-devel to pack into transaction set.
libc-client-devel-2002e-1 100% |=========================| 14 kB 00:00
---> Package libc-client-devel.i386 0:2002e-14 set to be updated
---> Downloading header for postgresql-devel to pack into transaction set.
postgresql-devel-7.4.17-1 100% |=========================| 49 kB 00:00
---> Package postgresql-devel.i386 0:7.4.17-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Conflict: libc-client-devel conflicts imap-devel
--> Processing Dependency: postgresql = 7.4.17-1.RHEL4.1 for package: postgresql-devel
--> Processing Dependency: postgresql-libs = 7.4.17-1.RHEL4.1 for package: postgresql-devel
--> Processing Dependency: libgpg-error-devel for package: libgcrypt-devel
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for postgresql-libs to pack into transaction set.
postgresql-libs-7.4.17-1. 100% |=========================| 12 kB 00:00
---> Package postgresql-libs.i386 0:7.4.17-1.RHEL4.1 set to be updated
---> Downloading header for libgpg-error-devel to pack into transaction set.
libgpg-error-devel-1.0-1. 100% |=========================| 2.6 kB 00:00
---> Package libgpg-error-devel.i386 0:1.0-1 set to be updated
---> Downloading header for postgresql to pack into transaction set.
postgresql-7.4.17-1.RHEL4 100% |=========================| 104 kB 00:00
---> Package postgresql.i386 0:7.4.17-1.RHEL4.1 set to be updated
--> Running transaction check
--> Processing Conflict: libc-client-devel conflicts imap-devel
--> Finished Dependency Resolution
Error: libc-client-devel conflicts with imap-devel
claerosystems
06-12-2007, 11:18 AM
I am using InterWorx-CP v2.1.3 [Unlimited Domain] on CentOs 4.5 and I tried following the instructions and ran in to problems with MySQL right away. When I run
rpm -Uhv --nodeps /usr/src/redhat/RPMS/`uname -i`/mysql*-4.1.12-100.*
I get:
[root@storm3 ~]# rpm -Uhv --nodeps /usr/src/redhat/RPMS/`uname -i`/mysql*-4.1.12-100.*
Preparing... ########################################### [100%]
package mysql-devel-4.1.20-2.RHEL4.1 (which is newer than mysql-devel-4.1.12-100.rhe4x.iworx) is already installed
package mysql-server-4.1.20-2.RHEL4.1 (which is newer than mysql-server-4.1.12-100.rhe4x.iworx) is already installed
file /usr/share/man/man1/mysql.1.gz from install of mysql-client-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/man/man1/mysqlaccess.1.gz from install of mysql-client-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/man/man1/mysqladmin.1.gz from install of mysql-client-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/man/man1/mysqldump.1.gz from install of mysql-client-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/man/man1/mysqlshow.1.gz from install of mysql-client-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/bin/mysql_config from install of mysql-devel-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /etc/my.cnf from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/info/mysql.info.gz from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/charsets/Index.xml from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/charsets/latin1.xml from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/charsets/latin5.xml from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/danish/errmsg.sys from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/danish/errmsg.txt from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/serbian/errmsg.sys from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
file /usr/share/mysql/serbian/errmsg.txt from install of mysql-server-4.1.12-100.rhe4x.iworx conflicts with file from package mysql-4.1.20-2.RHEL4.1
[root@storm3 ~]#
Should I just force the install? Any help would be greatly appreciated.
Thanks!
Craig
Socheat recommended these instructions as a possible solution to my problem with PHP 5 coexisting with Interworx in CentOS 4.4
Testing environment:
Two machines with clean installs of CentOS 4.4
Joomla 1.5 and Modernbill 5
1st machine without Interworx and using CentOSPlus repo version of PHP 5.1.6-3 and MySQL 5.0.27 works great,
2nd virtual machine using Interworx and either CentOSPlus repo version of PHP 5.1.6-3 and MySQL 5.0.27, or following the instructions in the link above (both 5.1.6 and 5.2) all fail.
failure is defined as: I can't install Modernbill 5 or Joomla 1.5- trying to access Joomla install page gives this error:
With the Steadfast instructions:With the CentOSPlus repo enabled and display errors turned on I get a stream of: Quote:
Warning: preg_match: internal pcre_fullinfo() error -3
How did u fix this problem?
i have the same problem on centos 4.5 php 5.1.6 interworx 2.X.
I moved my invision forum and get same msg u were getting.
thank u
hubbadubba
06-19-2007, 11:03 AM
I used the steadfast instructions (https://support.steadfast.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,9) to build PHP from source- there must be something missing in the CentOS Extras build.
I used the steadfast instructions (https://support.steadfast.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,9) to build PHP from source- there must be something missing in the CentOS Extras build.
i am stuck here
3.Now it's time to build the RPMs you will need, again replacing oscode and url as required: rpmbuild --rebuild --with oscode url
[root@##### /]# rpmbuild --rebuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
Installing http://mirror.steadfast.net/misc/iworx/php-5.2.0-100.iworx.src.rpm
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.29095
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd /usr/src/redhat/BUILD
+ rm -rf php-5.2.0
+ /bin/gzip -dc /usr/src/redhat/SOURCES/php-5.2.0.tar.gz
+ tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd php-5.2.0
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chown -Rhf root .
++ /usr/bin/id -u
+ '[' 0 = 0 ']'
+ /bin/chgrp -Rhf root .
+ /bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ perl -pi -e 's|/usr/lib|/usr/lib|' php.ini-dist
+ rm -f ext/standard/tests/file/bug21131.phpt
+ rm -f ext/pspell/tests/01pspell_basic.phpt ext/standard/tests/file/bug22414.phpt ext/session/tests/019.phpt ext/standard/tests/math/pow.phpt ext/standard/tests/math/round.phpt ext/standard/tests/math/abs.phpt ext/iconv/tests/ob_iconv_handler.phpt
+ mkdir build-cgi build-apache
+ '[' -f /var/tmp/php-5.2.0-gcc ']'
+ '[' -x /usr/bin/gcc-3.2.3 ']'
+ '[' -x /usr/bin/gcc-3.2.2 ']'
+ '[' -x /usr/bin/gcc-3.2.1 ']'
+ '[' -x /usr/bin/gcc-3.2 ']'
+ '[' -x /usr/bin/gcc-3.1.1 ']'
+ echo gcc
+ '[' -f /var/tmp/php-5.2.0-show_flags ']'
+ cat
++ cat /var/tmp/php-5.2.0-gcc
+ chmod u+x /var/tmp/php-5.2.0-show_flags
+ /var/tmp/php-5.2.0-show_flags
RPM RELEASE: 100.rhe4x.iworx
OS TYPE IS : RedHat Enterprise 4.x
GCC IS : gcc
CCFLAGS : -O2 -g -march=i386 -mcpu=i686
LDFLAGS : -O2 -g -march=i386 -mcpu=i686
+ '[' -f /var/tmp/php-5.2.0-show_flags ']'
+ rm -f /var/tmp/php-5.2.0-show_flags
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.74077
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-5.2.0
+ '[' -n /var/tmp/php-5.2.0-root -a /var/tmp/php-5.2.0-root '!=' / ']'
+ rm -rf /var/tmp/php-5.2.0-root
+ mkdir -p /var/tmp/php-5.2.0-root
+ '[' -f /var/tmp/php-5.2.0-gcc ']'
+ rm -f /var/tmp/php-5.2.0-gcc
+ export EXTENSION_DIR=/usr/lib/php5
+ EXTENSION_DIR=/usr/lib/php5
+ touch acinclude.m4
+ export 'CFLAGS=-O2 -g -march=i386 -mcpu=i686 -fomit-frame-pointer -fPIC'
+ CFLAGS='-O2 -g -march=i386 -mcpu=i686 -fomit-frame-pointer -fPIC'
+ pushd build-cgi
/usr/src/redhat/BUILD/php-5.2.0/build-cgi /usr/src/redhat/BUILD/php-5.2.0
+ build --enable-force-cgi-redirect
+ mkdir Zend
+ cp ../Zend/zend_language_parser.c ../Zend/zend_language_parser.h ../Zend/zend_language_scanner.c ../Zend/zend_language_scanner.h ../Zend/zend_ini_parser.c ../Zend/zend_ini_parser.h ../Zend/zend_ini_scanner.c ../Zend/zend_ini_scanner.h Zend
+ ln -sf ../configure
+ ./configure --prefix=/usr --bindir=/usr/bin --mandir=/usr/share/man --localstatedir=/var --libdir=/usr/lib --datadir=/usr/share --includedir=/usr/include --sysconfdir=/etc --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --disable-debug --disable-rpath --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd --with-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-expat-dir=/usr --with-xml --with-xsl --with-xmlrpc=shared --with-readline --with-pcre=/usr --with-zlib --with-layout=GNU --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mcrypt=shared --with-mhash=shared --with-pdo-mysql=/usr --with-pdo-pgsql=/usr --with-mysql=shared,/usr --with-mysqli --with-unixODBC=shared,/usr --with-pgsql=shared --with-snmp=shared,/usr --enable-mbstr-enc-trans --enable-mbregex --enable-mbstring=shared --enable-exif --without-oci8 --enable-bcmath --enable-ftp --enable-soap --enable-magic-quotes --enable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm --enable-discard-path --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --enable-memory-limit --enable-bcmath --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mcal --enable-inline-optimization --enable-gd-native-ttf --enable-pic --disable-wddx --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --enable-force-cgi-redirect
creating cache ../config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /bin/sed
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for gcc... gcc
checking whether the C compiler (gcc -O2 -g -march=i386 -mcpu=i686 -fomit-frame-pointer -fPIC ) works... yes
checking whether the C compiler (gcc -O2 -g -march=i386 -mcpu=i686 -fomit-frame-pointer -fPIC ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether gcc and cc understand -c and -o together... yes
checking how to run the C preprocessor... gcc -E
checking for AIX... no
checking whether ln -s works... yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate PHP parsers.
checking for gawk... gawk
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 (found: none).
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3276: lex: command not found
configure: error: cannot find output from lex; giving up
error: Bad exit status from /var/tmp/rpm-tmp.74077 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.74077 (%build)
hubbadubba
06-19-2007, 02:39 PM
Not sure what to suggest- I pulled the link to steadfast from this Interworx thread this thread: http://www.interworx.com/forums/showthread.php?t=1961&highlight=steadfast
There is a lot of troubleshooting and discussion of their intrictions which you might find helpful.
Not sure what to suggest- I pulled the link to steadfast from this Interworx thread this thread: http://www.interworx.com/forums/showthread.php?t=1961&highlight=steadfast
There is a lot of troubleshooting and discussion of their intrictions which you might find helpful.
what a bad luck i just moved to new vps and having only problems on it:(
IWorx-Socheat
06-19-2007, 03:19 PM
I may have missed this from your previous posts, but you are running PHP5 on your current InterWorx VPS correct? How did you get PHP5 installed? Which distribution are you using?
IWorx-Socheat
06-19-2007, 03:20 PM
Sorry, just noticed this:
checking lex output file root... ./configure: line 3276: lex: command not found
configure: error: cannot find output from lex; giving up
error: Bad exit status from /var/tmp/rpm-tmp.74077 (%build)
yum install flex
should fix that problem.
I may have missed this from your previous posts, but you are running PHP5 on your current InterWorx VPS correct? How did you get PHP5 installed? Which distribution are you using?
Yes i am running 5.1.6 interowrx ofcourse 3:)
Hosting install php along with mysql 5.0.27 on centos 4.5
Now i am having problems with invision board and looks like i am having problems with my db as well
OK this time went further
Configuring TSRM
checking for stdarg.h... (cached) yes
Configuring libtool
checking build system type... i686-pc-linux-gnu
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking how to recognise dependent libraries... pass_all
checking for object suffix... o
checking for executable suffix... no
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.
error: Bad exit status from /var/tmp/rpm-tmp.92762 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.92762 (%build)
[root@capecodleisure ~]#
IWorx-Paul
06-19-2007, 04:50 PM
This time do
yum install gcc-c++
This time do
yum install gcc-c++
i think it went ok
Wrote: /usr/src/redhat/RPMS/i386/php-ncurses-5.2.0-100.rhe4x.iworx.i386.rpm
Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.61010
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd php-5.2.0
+ '[' -n /var/tmp/php-5.2.0-root -a /var/tmp/php-5.2.0-root '!=' / ']'
+ rm -rf /var/tmp/php-5.2.0-root
+ '[' -d /usr/src/redhat/BUILD/php-5.2.0 ']'
+ rm -rf /usr/src/redhat/BUILD/php-5.2.0
+ exit 0
Executing(--clean): /bin/sh -e /var/tmp/rpm-tmp.19120
+ umask 022
+ cd /usr/src/redhat/BUILD
+ rm -rf php-5.2.0
+ exit 0
[root@####### ~]#
Ok got to;
stuck on step 5 https://support.steadfast.net/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=45&nav=0,9
rpm -Uhv --nodeps --force /usr/src/redhat/RPMS/`uname -i`/php 5.2.0-100
error: open of /usr/src/redhat/RPMS/i386/php failed: No such file or directory
error: open of 5.2.0-100 failed: No such file or directory
i did try to skip this step and restart
service mysqld restart
service imap4 restart
service imap4-ssl restart
service pop3 restart
service pop3-ssl restart
service httpd restart
service iworx restart
but i guess i still have php 5.1.6 sucks to be new00bie
kstange
06-23-2007, 07:41 PM
Just wanted to note I have posted updated RPM packages for PHP 4.4.7 and PHP 5.2.3. These RPMs now build properly on 64-bit operating systems. Additionally, I have corrected a few instructions slightly.
There are still some issues with MySQL RPMs, apparently, which I will look into as I have a chance. I have not prepared working 5.1.6 or 5.0.4 packages that work with 64-bit because these versions have not yet been needed by steadfast customers. You should use 4.4.x or 5.2.x if at all possible anyway.
daveyw
06-30-2007, 01:51 PM
Thanks, very usefull. I have upgraded to php-4.4.7 without upgrading mysql
tepuynet
07-23-2007, 06:13 AM
Hello.-
How corrects east error?
yum install `rpmbuild --rebuild --nobuild --with cos4x http://mirror.steadfast.net/misc/iworx/php-5.1.6-100.iworx.src.rpm 2>&1 | grep "needed" | awk '{ print \$1 }' | xargs`
Error: Need to pass a list of pkgs to install
usage: yum [options] < update | install | info | remove | list |
clean | provides | search | check-update | groupinstall |
groupupdate | grouplist | groupinfo | groupremove |
makecache | localinstall | erase | upgrade | whatprovides |
localupdate | resolvedep | shell | deplist >
options:
-h, --help show this help message and exit
-t, --tolerant be tolerant of errors
-C run entirely from cache, don't update cache
-c [config file] config file location
-R [minutes] maximum command wait time
-d [debug level] debugging output level
-e [error level] error output level
-y answer yes for all questions
--version show Yum version and exit
--installroot=[path] set install root
--enablerepo=[repo] enable one or more repositories (wildcards allowed)
--disablerepo=[repo] disable one or more repositories (wildcards allowed)
--exclude=[package] exclude package(s) by name or glob
--obsoletes enable obsoletes processing during updates
--noplugins disable Yum plugins
hubbadubba
07-23-2007, 11:13 AM
I also received the error and ignored and moved on to the next step. Everything is working fine with PHP5.2.3 now.
Have you followed their instructions before?
I assume that since I had followed the instructions for from Steadfast for a PHP 5.2.0 installation earlier this year, the failure of both sections in Step 2 of the PHP install instructions were related to the fact that install libmhash-devel libmcrypt-devel were already installed and up to date, and there were no additional packages needed by rpmbuild.
tepuynet
07-24-2007, 11:23 AM
Hello.-
Este es que me aparece:
[root@#### ~]# yum install libmhash-devel libmcrypt-devel
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: libmhash-devel
Nothing to do
IWorx-Socheat
07-24-2007, 11:41 AM
You can get the mhash libraries here:
http://dag.wieers.com/rpm/packages/libmhash/
tepuynet
08-05-2007, 06:54 AM
When I execute the following line:
rpmbuild --rebuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-5.1.6-100.iworx.src.rpm
It leaves the following error in the end to me:
checking for flex... lex
checking for yywrap in -ll... no
checking lex output file root... ./configure: line 3246: lex: command not found
configure: error: cannot find output from lex; giving up
error: Bad exit status from /var/tmp/rpm-tmp.93629 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93629 (%build)
IWorx-Socheat
08-05-2007, 10:17 AM
Do:
yum install flex
There will probably be other missing dependencies before you get to the point where the build will work. Just post your errors here as the come, and we can help you figure out which packages you need to install.
tepuynet
08-28-2007, 06:53 AM
Hello.-
Recently it makes upgrade to php 5.1.6 but I had soon to lower it php 4,4 since there were scripts that was not compatible. -
Everything apparently works well but when I execute some scripts of this form:
/usr/bin/php -q -f /home/path/algo.php
The following error is originated:
Failed loading /usr/local/ioncube/ioncube_loader_lin_5.1.so: /usr/local/ioncube/ioncube_loader_lin_5.1.so: undefined symbol: _zend_hash_init
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/domxml.so' - /usr/lib/php5/domxml.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/imap.so' - /usr/lib/php5/imap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/ldap.so' - /usr/lib/php5/ldap.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/mbstring.so' - /usr/lib/php5/mbstring.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/mcrypt.so' - /usr/lib/php5/mcrypt.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/mhash.so' - /usr/lib/php5/mhash.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/mysql.so' - /usr/lib/php5/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/ncurses.so' - /usr/lib/php5/ncurses.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/odbc.so' - /usr/lib/php5/odbc.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/pgsql.so' - /usr/lib/php5/pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/snmp.so' - /usr/lib/php5/snmp.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php5/xmlrpc.so' - /usr/lib/php5/xmlrpc.so: cannot open shared object file: No such file or directory in Unknown on line 0
What will be happening?
Gracias
pascal
08-28-2007, 07:56 AM
Hi
So now you have a php4.4 version ? right ?
Are ou sure your php.ini is uptodate ?
What give you this line
; Directory in which the loadable extensions (modules) reside.
extension_dir = "/usr/lib/php4"
Pascal
tepuynet
08-28-2007, 08:22 AM
Hello.-
extension_dir is correct and is running php 4:
extension_dir /usr/lib/php4(local value) /usr/lib/php4(master value)
Here this the content of which it is within that folder:
-rwxr-xr-x 1 root root 108270 Aug 27 15:08 domxml.so
-rwxr-xr-x 1 root root 98466 Aug 27 15:08 imap.so
-rwxr-xr-x 1 root root 46130 Aug 27 15:08 ldap.so
-rwxr-xr-x 1 root root 1568435 Aug 27 15:08 mbstring.so
-rwxr-xr-x 1 root root 39149 Aug 27 15:08 mcrypt.so
-rwxr-xr-x 1 root root 9933 Aug 27 15:08 mhash.so
-rwxr-xr-x 1 root root 52382 Aug 27 15:08 mysql.so
-rwxr-xr-x 1 root root 85830 Aug 27 15:08 ncurses.so
-rwxr-xr-x 1 root root 65276 Aug 27 15:08 odbc.so
-rwxr-xr-x 1 root root 95763 Aug 27 15:08 pgsql.so
-rwxr-xr-x 1 root root 24662 Aug 27 15:08 snmp.so
-rwxr-xr-x 1 root root 91295 Aug 27 15:08 xmlrpc.so
mihakot
12-15-2007, 07:51 AM
run this
rpmbuild --rebuild --with rhe4x http://mirror.steadfast.net/misc/iworx/php-5.2.5-100.iworx.src.rpm
have this.
/bin/sh /usr/src/redhat/BUILD/php-5.2.5/build-cgi/libtool --silent --preserve-dup-deps --mode=link gcc -export-dynamic -I/usr/include -O2 -g -march=i386 -mcpu=i686 -fomit-frame-pointer -fPIC -L/usr/local/lib -L/usr/kerberos/lib -L/usr/lib/mysql
............... (removed becouse very long text)
main/internal_functions.lo -lcrypt -lexslt -lcrypt -lhistory -lreadline -lncurses -lrt -lgmp -lfreetype -lpng -lz -ljpeg -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lcurl -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lidn -lssl -lcrypto -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lz -lxml2 -lz -lm -lssl -lcrypto -lgssapi_krb5 -lkrb5 -lcom_err -lk5crypto -lresolv -ldl -lz -lmysqlclient -lz -lcrypt -lnsl -lm -lssl -lcrypto -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm -lcrypt -o sapi/cgi/php-cgi
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1a3f): In function `zim_xmlreader_setSchema':
/usr/src/redhat/BUILD/php-5.2.5/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate'
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1d68): In function `zim_xmlreader_XML':
/usr/src/redhat/BUILD/php-5.2.5/ext/xmlreader/php_xmlreader.c:1109: undefined reference to `xmlTextReaderSetup'
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.80596 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.80596 (%build)
What can do?
Catalyst
12-15-2007, 09:05 AM
Make sure libxml2-devel is installed.
mihakot
12-15-2007, 09:17 AM
Make sure libxml2-devel is installed.
installed.
Name : libxml2-devel
Arch : i386
Version: 2.6.16
Release: 10
Size : 8.4 M
Repo : installed
Summary: Libraries, includes, etc. to develop XML and HTML applications
hubbadubba
12-15-2007, 01:05 PM
If you are running RH or Centos, I suggest you save yourslef some time and install rpms from this repo: http://remi.collet.free.fr/rpms/
I used the MySQL and PHP 5 rpms on my X86_64 Centos 5 box and they work perfectly for me.
hubbadubba
12-15-2007, 01:12 PM
This will help you configure yum to use remi's site repo's through yum- wasn't to hard to figure out, though it is in french- use google language tools to translate the site if you must: http://remi.collet.free.fr/index.php?2005/10/02/8-telechargement-installation-et-yum
mihakot
12-15-2007, 02:53 PM
If you are running RH or Centos, I suggest you save yourslef some time and install rpms from this repo: http://remi.collet.free.fr/rpms/
I used the MySQL and PHP 5 rpms on my X86_64 Centos 5 box and they work perfectly for me.
Sorry, but i have CentOS 4.5
sliqua
12-21-2007, 12:19 PM
Quite honestly, I hate using 3rd party RPM Repositories. The chance of things getting screwed up or being incompatible at a later date is quite high. Unless I build packages from sources, I tend to stick to the CentOS and InterWorx repos only.
My current solution at this point for getting users on PHP 5 has been moving them onto a CentOS 5 machine running PHP 5. With the EOL of PHP coming up in a few weeks it would be very nice if the InterWorx team would release PHP 5 rpms for CentOS 4 users. This would save quite a few users the trouble of using third party repos, or building packages themselves for deployment.
The thing that I like about CentOS 5, however, is the fact that the InterWorx developers rely more on upstream packages for php/mysql/etc. However, the current situation going on with CentOS 4 with PHP 4 reaching EOL is quite annoying for the majority of the folks in this community, I'm sure.
Just my 2 cents.
hubbadubba
12-24-2007, 02:59 PM
Sorry, but i have CentOS 4.5
I believe CentOS 4 rpms from remi's repo are compatible with all versions of centos 4.
CrazyTech
01-30-2008, 09:45 PM
I'm running CentOS5 and I was trying to up PHP to 5.2. I followed the directions, but it's just not letting me upgrade or install (either way).
Transaction Check Error:
file /etc/php.ini from install of php-5.2.5-100.rhe5x.iworx conflicts with file from package php-common-5.1.6-15.el5
file /usr/bin/php from install of php-5.2.5-100.rhe5x.iworx conflicts with file from package php-cli-5.1.6-15.el5
file /usr/bin/php-cgi from install of php-5.2.5-100.rhe5x.iworx conflicts with file from package php-cli-5.1.6-15.el5
file /usr/share/man/man1/php.1.gz from install of php-5.2.5-100.rhe5x.iworx conflicts with file from package php-cli-5.1.6-15.el5
Any suggestions on how to get around this?
Thanks!
cabizeid
02-07-2008, 11:12 PM
edit, nevermind
johan_hammy
02-12-2008, 09:40 AM
rpmbuild --rebuild http://mirror.steadfast.net/misc/iworx/mysql-5.0.51a-100.iworx.src.rpm --with rhe4x
RPM build errors:
File not found: /var/tmp/mysql-5.0.51a-root/usr/lib/mysql/libz.a
File not found: /var/tmp/mysql-5.0.51a-root/usr/lib/mysql/libz.la
I am a Steadfast customer running CentOS 4.6
IWorx-Chris
02-18-2008, 06:53 PM
I'm running CentOS5 and I was trying to up PHP to 5.2. I followed the directions, but it's just not letting me upgrade or install (either way).
Any suggestions on how to get around this?
Thanks!
You have a few options:
1) remove the PHP packages that are there and then install the new packages
2) "force" the install over the old packages (not recommended)
The cleanest way is #1 but you may find that centos isn't happy with the new RPMs as I'm not sure how much they've been used on centos5 since it ships with php5. An "easier" method may just be to grab the centos SRPMs for php5 and then just drop the new 5.2.5 source in there and recompile. This would stay within the boundaries more than likely. Note, doing this method often requires some SPEC file tweaking.
Chris
IWorx-Chris
02-18-2008, 06:55 PM
Quite honestly, I hate using 3rd party RPM Repositories. The chance of things getting screwed up or being incompatible at a later date is quite high. Unless I build packages from sources, I tend to stick to the CentOS and InterWorx repos only.
This is sound advice. The *more* you can rely on *just* the CentOS repos the better off you are for compatibility long-term. Obviously there are iworx RPMs that are provided but as in the case of using php5 on CentOS 5 I'd use the CentOS 5 SRPMS and make your own php5 RPMS before making ours work.
Chris
CrazyTech
02-19-2008, 09:38 AM
Thanks Christ, but uninstalling PHP was what I tried. My server would confirm that no PHP package was installed, but I'd still get that error when I tried to install tthe PHP 5.2.5 rpms that were given in this thread. I'm still trying to wean my way off of cPanel and Plesk, so I guess I'll just have to stick with the current PHP version and wait for an update.
Scan-Host
03-16-2008, 02:57 AM
Hi,
Whats wrong whit this php upgrade?
/bin/sh /usr/src/redhat/BUILD/php-5.2.5/build-cgi/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/main -I/usr/src/redhat/BUILD/php-5.2.5 -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/date/lib -I/usr/src/redhat/BUILD/php-5.2.5/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl/mbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/ncurses -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/Zend -I/usr/src/redhat/BUILD/php-5.2.5/main -I/usr/src/redhat/BUILD/php-5.2.5/Zend -I/usr/src/redhat/BUILD/php-5.2.5/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ -I/usr/include -O2 -g -fomit-frame-pointer -fPIC -o ext/mhash/mhash.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/redhat/BUILD/php-5.2.5/build-cgi/modules -L/usr/kerberos/lib64 -L/usr/lib64/mysql ext/mhash/mhash.lo -lmhash
/bin/sh /usr/src/redhat/BUILD/php-5.2.5/build-cgi/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/main -I/usr/src/redhat/BUILD/php-5.2.5 -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/date/lib -I/usr/src/redhat/BUILD/php-5.2.5/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl/mbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/ncurses -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/Zend -I/usr/src/redhat/BUILD/php-5.2.5/main -I/usr/src/redhat/BUILD/php-5.2.5/Zend -I/usr/src/redhat/BUILD/php-5.2.5/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ -I/usr/include -O2 -g -fomit-frame-pointer -fPIC -o ext/mysql/mysql.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/redhat/BUILD/php-5.2.5/build-cgi/modules -L/usr/kerberos/lib64 -L/usr/lib64/mysql ext/mysql/php_mysql.lo -lmysqlclient
/bin/sh /usr/src/redhat/BUILD/php-5.2.5/build-cgi/libtool --silent --preserve-dup-deps --mode=link gcc -DPHP_ATOM_INC -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/main -I/usr/src/redhat/BUILD/php-5.2.5 -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/date/lib -I/usr/src/redhat/BUILD/php-5.2.5/ext/date/lib -I/usr/include/freetype2 -I/usr/include/imap -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/oniguruma -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl -I/usr/src/redhat/BUILD/php-5.2.5/ext/mbstring/libmbfl/mbfl -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ext/mbstring/libmbfl/mbfl -I/usr/include/mysql -I/usr/include/ncurses -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/Zend -I/usr/src/redhat/BUILD/php-5.2.5/main -I/usr/src/redhat/BUILD/php-5.2.5/Zend -I/usr/src/redhat/BUILD/php-5.2.5/TSRM -I/usr/src/redhat/BUILD/php-5.2.5/build-cgi/ -I/usr/include -O2 -g -fomit-frame-pointer -fPIC -o ext/ncurses/ncurses.la -export-dynamic -avoid-version -prefer-pic -module -rpath /usr/src/redhat/BUILD/php-5.2.5/build-cgi/modules -L/usr/kerberos/lib64 -L/usr/lib64/mysql ext/ncurses/ncurses.lo ext/ncurses/ncurses_fe.lo ext/ncurses/ncurses_functions.lo -lpanel -lncurses
/usr/bin/ld: /usr/lib64/mysql/libmysqlclient.a(libmysql.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/mysql/libmysqlclient.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [ext/mysql/mysql.la] Error 1
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.87091 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.87091 (%build)
how can I fix it?
Thanks
omelin
05-30-2008, 03:10 PM
Hi every one ,
Is ther any other option to upgrade to php 5.2.x with cent os5x64
hubbadubba,
what instructions thit you use to configure yum wint Cent os 5 x64, whas it this :
wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-2.noarch.rpm wget http://rpms.famillecollet.com/el5.i386/remi-release-5-4.el5.remi.noarch.rpm rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
thanks in advanced
This will help you configure yum to use remi's site repo's through yum- wasn't to hard to figure out, though it is in french- use google language tools to translate the site if you must: http://remi.collet.free.fr/index.php?2005/10/02/8-telechargement-installation-et-yum
Lightfoot
03-07-2009, 01:09 PM
The latest Steadfast upgrade to php 5.2.9 was causing a problem for me. Apache died and gave me the message "httpd dead but subsys locked" whenever I would check the status. I've since gone back to php 5.2.6 and removed the iworx-php-release-5.2-2.steadfast.noarch.rpm. Any ideas as to why this would cause the problems with Apache? I need php 5.2 for roundcube.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.