php for linux

Posted on 2012-09-21
Last Modified: 2012-09-26
hello there,
I have downloaded the latest version of php which is v5.4.7
I am able to compile on my centos v5.7 web server running apache and all is good until I try to compile the php extensions to use as modules..
I have been trying to find the compiled extensions for 32/64bit but I cant find them and I also have issues compiling them.. half of them compile ok and the others give errors..

this is what I do
cd /php-5.4.7/ext/mysqli
CFLAGS=-m64 CPPFLAGS=-m64 CCASFLAGS=-m64 ./configure

make: *** [mysqli.lo] Error 1
Question by:XK8ER
    LVL 13

    Expert Comment

    Found some info that might help:
     To install the mysqli extension for PHP, use the
    --with-mysqli=mysql_config_path/mysql_config configuration
    option where mysql_config_path represents the location of
    the mysql_config program that comes with MySQL versions
    greater than 4.1.  
    If you would like to install the mysql extension along
    with the mysqli extension you have to use the same client
    library to avoid any conflicts.
    LVL 1

    Author Comment

    okay.. how about for these?

    imap            configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing.
    ldap            configure: error: Cannot find ldap libraries in /usr/lib.
    mbstring      make: *** [mbstring.lo] Error 1
    mcrypt            configure: error: mcrypt.h not found. Please reinstall libmcrypt.
    mysql            make: *** [php_mysql.lo] Error 1
    mysqli            make: *** [mysqli.lo] Error 1
    zip            make: *** [php_zip.lo] Error 1
    xsl            configure: error: xslt-config not found. Please reinstall the libxslt
    pdo            make: *** [pdo_dbh.lo] Error 1
    pdo_mysql      make: *** [pdo_mysql.lo] Error 1
    pdo_sqlite      configure: error: Please reinstall the sqlite3
    LVL 13

    Expert Comment

    It looks like all of these are because some configuration is flag.

    Try searching on Google for the error message and you should get the answer you need.

    Example: google search for: make: *** [pdo_dbh.lo] Error 1 should lead you to the configuration setting you need to build it.

    If you get stuck on a couple after you tried a few different solutions, let us know :)
    LVL 1

    Author Comment

    I am still looking around to at least get some more extensions compiled i installed development tools that someone said it works from a forum but that did not help either..
    LVL 15

    Accepted Solution


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Join Greg Farro and Ethan Banks from Packet Pushers ( and Greg Ross from Paessler ( for a discussion about smart network …
    The viewer will learn how to dynamically set the form action using jQuery.
    This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

    732 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

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now