Upgrade Guide for PHP and MySQL

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 ~]#

This time do

yum install gcc-c++

[quote=IWorx-Paul;13590]This time do

yum install gcc-c++[/quote]

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

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.

Thanks, very usefull. I have upgraded to php-4.4.7 without upgrading mysql

Error.-

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

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.

Eroor

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

You can get the mhash libraries here:

http://dag.wieers.com/rpm/packages/libmhash/

Error

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)

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.

Dynamic library

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

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

extension_dir

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

error xmlreader

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?

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

Easier way- RH and Centos OS RPMs from Remi’s repo

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.

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

[quote=hubbadubba;14826]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.[/quote]
Sorry, but i have CentOS 4.5