Install/config php/MySQL

Discussion in 'Install/Configuration' started by Jim O, Jul 31, 2008.

  1. Jim O

    Jim O New Member

    I created a new VPS with CentOS 5.2, php 5.2.1, and MySQL 5.0.45.

    I then installed Litespeed and the phpinfo for my vhost tells me I am running php 4.4.8 and MySQL 4.1.22.

    I would prefer to be running php 5.2 and MySQL 5.0, How do I reconfigure?
  2. mistwang

    mistwang LiteSpeed Staff

  3. Jim O

    Jim O New Member

    Thanks.

    Compile (--with-mysqli --with-zlib --with-gd --enable-shmop --enable-track-vars --enable-sockets --enable-sysvsem --enable-sysvshm --enable-magic-quotes --enable-mbstring --with-iconv --with-mcrypt) failed. Error log attached.

    The last few lines are:


    Code:
    checking for mSQL support... no
    checking for MSSQL support via FreeTDS... no
    checking for MySQL support... no
    checking for specified location of the MySQL UNIX socket... no
    checking for MySQLi support... yes
    checking whether to enable embedded MySQLi support... no
    checking for mysql_set_server_option in -lmysqlclient... no
    configure: error: wrong mysql library version or lib not found. Check config.log for more information.
    

    Attached Files:

  4. mistwang

    mistwang LiteSpeed Staff

    You need to install mysqlclient-devel package, if it is 64bit, also add --with-libdir=lib64
  5. Jim O

    Jim O New Member

    Thanks! That worked.

Share This Page