PDA

View Full Version : Install/config php/MySQL


Jim O
07-31-2008, 11:38 AM
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?

mistwang
07-31-2008, 12:22 PM
If you use cPanel, http://www.litespeedtech.com/support/wiki/doku.php?id=litespeed_wiki:apache:ezcpanel

otherwise, build your php 5.2 binary from our web console.

Jim O
07-31-2008, 12:38 PM
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:


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.

mistwang
07-31-2008, 12:45 PM
You need to install mysqlclient-devel package, if it is 64bit, also add --with-libdir=lib64

Jim O
07-31-2008, 01:14 PM
Thanks! That worked.