I need to be able to run Wordpress and, for that, I need PHP.
I've compiled PHP using the 'Compile PHP' option under 'Actions' and then manually built PHP (with --with-mysqli).
I then ran 'sudo -u nobody ./lsphp5 -i' and have confirmed that mysqli is present.
I've run phpinfo in a web browser which shows a whole lot of info about Mysql and which indicates that PHP itself is working.
However, when I try and connect to an existing Mysql database I get the following error message:-
Fatal error: Call to undefined function mysql_connect() in /usr/local/httpd/htdocs/phptest.php on line 10
How can I resolve this as I need PHP with Mysql for Wordpress?
TIA
Doug
PS - I'm on SuSE Linux 11.3 and Litespeed v4.0.18
I've compiled PHP using the 'Compile PHP' option under 'Actions' and then manually built PHP (with --with-mysqli).
I then ran 'sudo -u nobody ./lsphp5 -i' and have confirmed that mysqli is present.
I've run phpinfo in a web browser which shows a whole lot of info about Mysql and which indicates that PHP itself is working.
However, when I try and connect to an existing Mysql database I get the following error message:-
Fatal error: Call to undefined function mysql_connect() in /usr/local/httpd/htdocs/phptest.php on line 10
How can I resolve this as I need PHP with Mysql for Wordpress?
TIA
Doug
PS - I'm on SuSE Linux 11.3 and Litespeed v4.0.18