PHP build failure

Discussion in 'Install/Configuration' started by jimothyinnothy, Jun 5, 2010.

  1. jimothyinnothy

    jimothyinnothy New Member

    Hi all,
    I have just installed litespeed, and all is well, bar the PHP config/build.
    The person who set the server up I think has put MYsql in a bit of an odd place. When I build PHP, I get:

    PHP:
    checking whether to enable embedded MySQLi support... no
    mysql_config not found
    configure
    errorPlease reinstall the mysql distribution
    **ERROR** Could not configure PHP build
    Is there anyway I can flag where the builder can find the mysql config?
    I have tried --mysqli= /usr/bin/mysql in the first page, and the following flags too:

    --mysqli=/etc/mysql
    and
    --mysqli=/etc/mysql/my.cnf

    None are helping.

    The server is running ubuntu 2.6.28-16-generic #55-Ubuntu 64bit

    This is the only thing stopping me getting this running :(

    Mysql is currently running happily under apache, and I have Litespeed pulling the apache config.

    Is there anyway I can get litespeed to use the PHP build that apache is using?

    Cheers

    J
  2. mistwang

    mistwang LiteSpeed Staff

    Try
    "--with-mysql=/usr" "--with-mysqli=/usr"
  3. anewday

    anewday Moderator

    This one should work:

    "--with-mysqli=/usr/bin/mysql_config"
    Last edited: Jun 7, 2010

Share This Page