Link to home
Start Free TrialLog in
Avatar of NerdsNow
NerdsNowFlag for United States of America

asked on

Recompiling PHP

I previously installed php 5.3.6 via yum onto my CentOS server. but it seems that it did not install with pdo, mysqli, etc... how do I go about recompiling it, do I need to remove the current version? do I have to download the source since I had previously used yum to get it? and what commands are recommeneded to get most typical functionality put in from the start?
Avatar of jeremycrussell
jeremycrussell
Flag of United States of America image

Did you install the php-mysql package?
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Beverley Portlock
Beverley Portlock
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
@wesly_chen

I obviously need to type faster

;-)


Avatar of NerdsNow

ASKER

no these are the exact commands I had used to install the latest versions of php and mysql but not php-mysql

# yum install php 
# yum install mysql-server mysql
# wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
# rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm
# yum --enablerepo=remi update php php-*
# yum --enablerepo=remi update mysql mysql-server

Open in new window

Try running

yum install php-pdo php-mysql

Installing MySQL may not install the PHP/MySQL connector.
Please post
rpm -qa |grep -i php
yum search php| grep ^php
# yum install php53-mysql php53-pdo php53-dba
gives me this error

 --> php53-common conflicts with php-common
Error: php53-common conflicts with php-common

 and
# yum install php-pdo php-mysql
gives me this error

  --> Missing Dependency: php-common = 5.1.6-27.el5_5.3 is needed by package php-mysql-5.1.6-27.el5_5.3.x86_64 (base)
# rpm -qa |grep -i php
returns
php-5.3.6-4.el5.remi
php-common-5.3.6-4.el5.remi
php-cli-5.3.6-4.el5.remi

Open in new window


#yum search php| grep ^php
returns
 
php-eaccelerator.x86_64 : PHP accelerator, optimizer, encoder and dynamic
php-pear.noarch : PHP Extension and Application Repository framework
php.x86_64 : The PHP HTML-embedded scripting language. (PHP: Hypertext
php-IDNA_Convert.noarch : Provides conversion of internationalized strings to
php-PHPMailer.noarch : PHP email transport class with a lot of features
php-Smarty.noarch : Template/Presentation Framework for PHP
php-adodb.noarch : Active Data Objects Data Base
php-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php-channel-htmlpurifier.noarch : Adds htmlpurifier channel to PEAR
php-channel-phpunit.noarch : Adds phpunit channel to PEAR
php-cli.x86_64 : Command-line interface for PHP
php-common.x86_64 : Common files for PHP
php-dba.x86_64 : A database abstraction layer module for PHP applications
php-dbase.x86_64 : Standard dBase module for PHP applications
php-devel.x86_64 : Files needed for building PHP extensions.
php-domxml-php4-php5.noarch : XML transition from PHP4 domxml to PHP5 dom module
php-email-address-validation.noarch : A PHP class for validating email addresses
php-facedetect.x86_64 : PHP extension to access the OpenCV library
php-feedcreator.noarch : Create RSS feeds
php-fpdf.noarch : PHP class to generate PDF Files
php-fpdf-doc.noarch : Documentation for php-fpdf
php-gd.x86_64 : A module for PHP applications for using the gd graphics library
php-geshi.noarch : Generic syntax highlighter
php-idn.x86_64 : PHP API for GNU LibIDN
php-imap.x86_64 : A module for PHP applications that use IMAP.
php-interbase.x86_64 : Standard PHP module provides interbase/firebird support
php-layers-menu.noarch : Hierarchical PHP based DHTML menu system
php-ldap.x86_64 : A module for PHP applications that use LDAP.
php-libdmtx.x86_64 : PHP bindings for libdmtx
php-libpuzzle.x86_64 : PHP extension for libpuzzle
php-magickwand.x86_64 : PHP API for ImageMagick
php-magpierss.noarch : MagpieRSS is an RSS parser written in PHP
php-mapi.x86_64 : The PHP MAPI extension by Zarafa
php-mapserver.x86_64 : PHP/Mapscript map making extensions to PHP
php-mbstring.x86_64 : A module for PHP applications which need multi-byte string
php-mcrypt.x86_64 : Standard PHP module provides mcrypt library support
php-mhash.x86_64 : Standard PHP module provides mhash support
php-mssql.x86_64 : Standard PHP module provides mssql support
php-mysql.x86_64 : A module for PHP applications that use MySQL databases.
php-ncurses.x86_64 : A module for PHP applications for using ncurses interfaces
php-nusoap.noarch : SOAP Toolkit for PHP
php-odbc.x86_64 : A module for PHP applications that use ODBC databases.
php-pdo.x86_64 : A database access abstraction module for PHP applications
php-pear-Auth-RADIUS.noarch : Wrapper Classes for the RADIUS PECL
php-pear-Auth-SASL.noarch : PEAR: Abstraction of various SASL mechanism
php-pear-Benchmark.noarch : Framework to benchmark PHP scripts or function calls
php-pear-CAS.noarch : Central Authentication Service client library in php
php-pear-Cache-Lite.noarch : Fast and Safe little cache system for PHP
php-pear-CodeGen.noarch : Framework to create code generators that operate on
php-pear-CodeGen-PECL.noarch : Tool to generate PECL extensions from an XML
php-pear-Console-CommandLine.noarch : A full featured command line options and
php-pear-Console-Getargs.noarch : Command-line arguments and parameters parser
php-pear-Console-ProgressBar.noarch : This class provides you with an
php-pear-Console-Table.noarch : Class that makes it easy to build console style
php-pear-Crypt-Blowfish.noarch : Quick two-way blowfish encryption
php-pear-Crypt-CHAP.noarch : Class to generate CHAP packets
php-pear-DB.noarch : PEAR: Database Abstraction Layer
php-pear-DB-DataObject.noarch : An SQL Builder, Object Interface to Database
php-pear-DB-DataObject-FormBuilder.noarch : Automatically build HTML_QuickForm
php-pear-DB-QueryTool.noarch : An OO-interface for easily retrieving and
php-pear-Date.noarch : Date and Time Zone Classes
php-pear-Date-Holidays.noarch : Driver based class to calculate holidays
php-pear-Date-Holidays-USA.noarch : Driver based class to calculate holidays in
php-pear-Event-Dispatcher.noarch : Dispatch notifications using PHP callbacks
php-pear-File.noarch : Common file and directory routines
php-pear-File-Find.noarch : Class which facilitates the search of filesystems
php-pear-File-Passwd.noarch : Manipulate many kinds of password files
php-pear-File-SMBPasswd.noarch : Class for managing SAMBA style password files
php-pear-HTML-Common.noarch : Base class for other HTML classes
php-pear-HTML-QuickForm.noarch : Class for creating, validating, processing HTML
php-pear-HTML-QuickForm-ElementGrid.noarch : Meta-element which holds any other
php-pear-HTML-QuickForm-advmultiselect.noarch : Element for HTML_QuickForm that
php-pear-HTML-Table.noarch : Class to easily design HTML tables
php-pear-HTML-Template-IT.noarch : Integrated Templates
php-pear-HTML_Template_PHPLIB.noarch : PHP template system based on preg_*
php-pear-HTTP.noarch : PEAR: Miscellaneous HTTP utilities
php-pear-HTTP-Client.noarch : Easy way to perform multiple HTTP requests and
php-pear-HTTP-Request.noarch : Provides an easy way to perform HTTP requests
php-pear-HTTP-Upload.noarch : Secure managment of files submitted via HTML Forms
php-pear-Image-Canvas.noarch : Common interface to image drawing
php-pear-Image-Color.noarch : Manage and handles color data and conversions
php-pear-Image-Graph.noarch : Displays numerical data as a graph/chart/plot
php-pear-Image-GraphViz.noarch : Interface to AT&T's GraphViz tools
php-pear-Log.noarch : Abstracted logging facility for PHP
php-pear-MDB2.noarch : Database Abstraction Layer
php-pear-MDB2-Driver-mysql.noarch : MySQL MDB2 driver
php-pear-MDB2-Driver-pgsql.noarch : PostgreSQL MDB2 driver
php-pear-MDB2-Schema.noarch : Database Abstraction Layer
php-pear-Mail.noarch : Class that provides multiple interfaces for sending
php-pear-Mail-Mime.noarch : Classes to create and decode mime messages
php-pear-Math-Stats.noarch : Classes to calculate statistical parameters
php-pear-Net-Curl.noarch : OO interface to PHP's cURL extension
php-pear-Net-DIME.noarch : Implements Direct Internet Message Encapsulation
php-pear-Net-FTP.noarch : Provides an OO interface to the PHP FTP functions plus
php-pear-Net-POP3.noarch : Provides a POP3 class to access POP3 server
php-pear-Net-Ping.noarch : Execute ping
php-pear-Net-SMTP.noarch : Provides an implementation of the SMTP protocol
php-pear-Net-Sieve.noarch : Communication with timsieved
php-pear-Net-Socket.noarch : Network Socket Interface
php-pear-Net-Traceroute.noarch : Execute traceroute
php-pear-Net-URL.noarch : Easy parsing of URLs
php-pear-Net-URL-Mapper.noarch : Simple and flexible way to build nice URLs for
php-pear-Net-URL2.noarch : Class for parsing and handling URL
php-pear-Net-UserAgent-Detect.noarch : Extract information from an HTTP user
php-pear-Numbers-Roman.noarch : Provides methods for converting to and from
php-pear-Numbers-Words.noarch : Methods for spelling numerals in words
php-pear-OLE.noarch : Package for reading and writing OLE containers
php-pear-PHP-CodeSniffer.noarch : PHP coding standards enforcement tool
php-pear-PHP-Compat.noarch : Provides missing functionality for older versions
php-pear-PHP-CompatInfo.noarch : Find out version and extensions required for a
php-pear-PHPUnit.noarch : Regression testing framework for unit tests
php-pear-Pager.noarch : Data paging class
php-pear-Payment-Process.noarch : Unified payment processor
php-pear-Phlickr.noarch : Phlickr is a PHP5 based api kit used with the Flickr
php-pear-PhpDocumentor.noarch : The complete documentation solution for PHP
php-pear-PhpDocumentor-docs.noarch : Documentation for PhpDocumentor
php-pear-SOAP.noarch : Simple Object Access Protocol (SOAP) Client/Server for
php-pear-Spreadsheet-Excel-Writer.noarch : Package for generating Excel
php-pear-Structures-DataGrid.noarch : Tabular structure for converting data
php-pear-Structures-DataGrid-DataSource-Array.noarch : DataSource driver using
php-pear-Structures-DataGrid-DataSource-DataObject.noarch : DataSource driver
php-pear-Structures-DataGrid-DataSource-MDB2.noarch : DataSource driver using
php-pear-Structures-DataGrid-DataSource-RSS.noarch : DataSource driver using RSS
php-pear-Structures-DataGrid-Renderer-Pager.noarch : Renderer driver using
php-pear-Text-Diff.noarch : Engine for performing and rendering text diffs
php-pear-Validate.noarch : Validation Class for Various Data Types
php-pear-Validate-Finance-CreditCard.noarch : Validation class for Credit Cards
php-pear-Var-Dump.noarch : Provides methods for dumping structured information
php-pear-XML-Beautifier.noarch : Class to format XML documents
php-pear-XML-Parser.noarch : XML parsing class based on PHP's bundled expat
php-pear-XML-RSS.noarch : RSS parser
php-pear-XML-Serializer.noarch : Swiss-army knife for reading and writing XML
php-pear-XML-Util.noarch : XML utility class
php-pecl-Fileinfo.x86_64 : Fileinfo is a PHP extension that wraps the libmagic
php-pecl-apc.x86_64 : APC caches and optimizes PHP intermediate code
php-pecl-geoip.x86_64 : Extension to map IP addresses to geographic places
php-pecl-gmagick.x86_64 : Provides a wrapper to the GraphicsMagick library
php-pecl-imagick.x86_64 : Provides a wrapper to the ImageMagick library
php-pecl-json.x86_64 : PECL library to implement JSON in PHP
php-pecl-lzf.x86_64 : Extension to handle LZF de/compression
php-pecl-mailparse.x86_64 : PECL package for parsing and working with email
php-pecl-memcache.x86_64 : Extension to work with the Memcached caching daemon
php-pecl-memcached.x86_64 : Extension to work with the Memcached caching daemon
php-pecl-mongo.x86_64 : PHP MongoDB database driver
php-pecl-radius.x86_64 : Radius client library
php-pecl-runkit.x86_64 : Mangle with user defined functions and classes
php-pecl-xdebug.x86_64 : PECL package for debugging PHP scripts
php-pecl-zip.x86_64 : A zip management extension
php-pgsql.x86_64 : A PostgreSQL database module for PHP.
php-phpunit-File-Iterator.noarch : FilterIterator implementation that filters
php-readline.x86_64 : Standard PHP module provides readline library support
php-simplepie.noarch : Simple RSS Library in PHP
php-snmp.x86_64 : A module for PHP applications that query SNMP-managed devices.
php-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php-spyc.noarch : A simple php yaml class
php-suhosin.x86_64 : Suhosin is an advanced protection system for PHP
php-tidy.x86_64 : Standard PHP module provides tidy library support
php-voms-admin.noarch : Web based interface to control VOMS parameters written
php-xml.x86_64 : A module for PHP applications which use XML
php-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC protocol
php53.x86_64 : PHP scripting language for creating dynamic web sites
php53-bcmath.x86_64 : A module for PHP applications for using the bcmath library
php53-cli.x86_64 : Command-line interface for PHP
php53-common.x86_64 : Common files for PHP
php53-dba.x86_64 : A database abstraction layer module for PHP applications
php53-devel.x86_64 : Files needed for building PHP extensions
php53-gd.x86_64 : A module for PHP applications for using the gd graphics
php53-imap.x86_64 : A module for PHP applications that use IMAP
php53-intl.x86_64 : Internationalization extension for PHP applications
php53-ldap.x86_64 : A module for PHP applications that use LDAP
php53-mbstring.x86_64 : A module for PHP applications which need multi-byte
php53-mysql.x86_64 : A module for PHP applications that use MySQL databases
php53-odbc.x86_64 : A module for PHP applications that use ODBC databases
php53-pdo.x86_64 : A database access abstraction module for PHP applications
php53-pgsql.x86_64 : A PostgreSQL database module for PHP
php53-process.x86_64 : Modules for PHP script using system process interfaces
php53-pspell.x86_64 : A module for PHP applications for using pspell interfaces
php53-snmp.x86_64 : A module for PHP applications that query SNMP-managed
php53-soap.x86_64 : A module for PHP applications that use the SOAP protocol
php53-xml.x86_64 : A module for PHP applications which use XML
php53-xmlrpc.x86_64 : A module for PHP applications which use the XML-RPC
phpFlickr.noarch : PHP client for the Flickr web service
phpMyAdmin.noarch : Web based MySQL browser written in php
phpPgAdmin.noarch : Web-based PostgreSQL administration
phpdoc.noarch : Command-line utility for PhpDocumentor
phpldapadmin.noarch : Web-based tool for managing LDAP servers

Open in new window

SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks everybody
yum --enablerepo=remi install php-mysql php-pdo
installed the packages and then restarted apache and everything works! thank you!!!!