Results 1 to 3 of 3

Thread: recompile PHP5 with mysql support in redhat

  1. #1
    Junior Member
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Exclamation recompile PHP5 with mysql support in redhat

    hi there,

    I am a newbie. I have been given a test server to install the typo3 cms. but before i could start, i need to get something done first.

    When i looked at the phpinfo(), i see that it has
    Code:
    '--without-mysql' '--without-gd' '--without-odbc'
    I know that mysql is installed since i can login via command line as root.

    in /etc/php.d/ i find that mysql.ini file is not there, so i created one and set the mysql extension hoping that it will work
    Code:
    [root@webtest php.d]# more mysql.ini 
    ; Enable mysql extension module
    extension=mysql.so
    But it didnt. I still have without-mysql in php. Can someone please help me here. I do not know what to do.
    thanks

    this is some information

    Code:
    [root@webtest /]# more /proc/version 
    Linux version 2.6.18-8.el5 (mockbuild@builder4.centos.org) (gcc version 4.1.1 20070105 (Red Hat 4.1.1-52)) #1 SMP 
    Thu Mar 15 19:57:35 EDT 2007
    [root@webtest /]#mysql --version
    mysql  Ver 14.12 Distrib 5.0.22, for redhat-linux-gnu (i686) using readline 5.0
    [root@webtest php.d]# php --version
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    PHP 5.1.6 (cli) (built: Sep 20 2007 10:16:10) 
    Copyright (c) 1997-2006 The PHP Group
    Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
    [root@webtest /]# php -m
    PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/mysql.so' - /usr/lib/php/modules/mysql.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [PHP Modules]
    bz2
    calendar
    ctype
    curl
    date
    exif
    ftp
    gettext
    gmp
    hash
    iconv
    ldap
    libxml
    mime_magic
    oci8
    openssl
    pcntl
    pcre
    posix
    pspell
    Reflection
    session
    shmop
    SimpleXML
    sockets
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    wddx
    xml
    zlib
    
    [Zend Modules]

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,514
    Thanks
    17
    Thanked 808 Times in 511 Posts
    Rep Power
    10

    Default Red Hat Install php-gd / php-mysql

    No need to recompile anything remove mysql.ini and type the following to install php mysql module:

    Code:
    rm /etc/php.d/mysql.ini
    yum install php-mysql php-gd
    Now restart apache and you should have support
    Code:
    service httpd restart
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


  3. #3
    Junior Member
    Join Date
    May 2008
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Cool

    Hey there,
    thanks. is worked for me.

    cheers

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Redhat php5 x86_64 install
    By raj in forum Getting started tutorials
    Replies: 0
    Last Post: 5th August 2007, 07:59 PM
  2. Download php5 source rpm for Redhat Linux 5
    By sweta in forum Linux software
    Replies: 1
    Last Post: 31st July 2007, 04:59 AM
  3. NIS Support
    By indan02 in forum Solaris/OpenSolaris
    Replies: 0
    Last Post: 9th September 2005, 05:00 PM
  4. NIS support
    By indan02 in forum Shell scripting
    Replies: 1
    Last Post: 8th September 2005, 05:08 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •