Fatal error: Call to undefined function mysql_connect()

#1
I installed OLS beta from sources:

Code:
cd openlitespeed-1.x.x
./configure
make && make install
and then installed PHP with these commands:

Code:
yum install lsphp54-* --skip-broken
ln -sf /usr/local/lsws/lsphp54/bin/lsphp /usr/local/lsws/fcgi-bin/lsphp5
Unfortunately the simple mysql_connect function doesn't work:

Code:
Fatal error: Call to undefined function mysql_connect()
 
#2
Hi ckissi,

Our rpm repository is constantly growing, so the --skip-broken option will skip more packages.

That said, to get the package, you can either run:
Code:
yum install lsphp54-mysql
or
Code:
yum install lsphp54-mysqlnd
But you cannot install both. Since we have the two of them in our repository, the --skip-broken option caused the installation to skip both of them.

Let us know how it goes!
Kevin
 
Top