Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

PHP 5 to 4 downgrade

Posted on 2006-11-05
6
Medium Priority
?
871 Views
Last Modified: 2013-12-13
Okay experts, I am out of my league on this one so I need some very specific help.  My company has been using a LINUX based file exchange package that runs on PHP and Zend.  We LOVE this thing but the hardware decided it didn’t want to play any more.  I have replaced the HW with newer, better, stronger (you get the idea) and installed Red Hat Fedora.  This version comes with PHP 5.1.4.  Apparently this version does not have the --with-mysql' option turned on.  I have spent 7 days trying to figure out how to turn it on and recompile PHP with no luck.  

The questions:  Can I just uninstall 5 and go back to 4? OR Is it easier to recompile with the option on and if so, what specific command do I need to put in?

I ran phpinfo.php and this is the configure command:

'./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' '--without-pear' '--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-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' '--without-unixODBC' '--disable-pdo' '--disable-xmlreader' '--disable-xmlwriter'

If I am ready the instructions correctly, I need to change ‘--without-mysql' to –with-mysql=/usr/bin/mysql but I do not know whare or how to do this.

Help help help

0
Comment
Question by:Helixx
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 17879163
you take this command, and run it in the command line. (of course with the option --with-mysql set instead of --without-mysql)
you only have to ensure that the resource file mysql.o is present also in the inluced lib directory
0
 
LVL 48

Expert Comment

by:hernst42
ID: 17880059
If you use Fedore core there must be a package php5-mysql or php-mysql which will bring the support for mysql and php5. after installing that package restart the webserver and check if the mysql-extension is activated automaticly. If not edit the php.ini and add
extension=mysql.so
and restart the webserver again. Now you should habe mysql-support. Many distibutuion create php without an extension, but have many small packages with the extensions.
0
 
LVL 1

Author Comment

by:Helixx
ID: 17886271
okay.  
Where do I get the php5-mysql or php-mysql or mysql.o?
Do I just put it in the /lib directory?
I have to type everything in the block above starting with ./configure?  !!  (Can't I just do ./configure –with-mysql=/usr/bin/mysql? and the computer will remember the rest?)
Which directory do I do this process in? ./lib? there is no file called configure in /lib.
Is there an RPM command that will downlaod and install this option?

I still have hope!
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 1

Author Comment

by:Helixx
ID: 17893934
Anyone?
0
 
LVL 1

Author Comment

by:Helixx
ID: 17894787
I ended up runing this from the command

yum install yumex

Then under the GUI going to Applications and System Tools and running Yum Extender.
I found the PHP-mysql module and selected it for download.  Yum installed and configured everything for me.
0
 
LVL 14

Accepted Solution

by:
ygoutham earned 2000 total points
ID: 17963964
normally a simple

yum install php-mysql

should have done the trick.  i had a FC5 and selected php-mysql at install and it worked fine.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question