Followed kick start video. opensip server works however I got stuck with problems getting the cp to work. This is a fedora system. I can access the cp login web page but after I enter admin/admin, I receive a blank page. Syslog shows the following error:
PHP Fatal error: Call to undefined method MDB2_Error::setFetchMode() in /var/www/opensips-cp/web/db_connect.php on line 31, referer: http://192.168.1.152/cp/
Anybody recognize what''s wrong here?
You need to install the PHP pear for MDB2 + mysql support.
I installed php-pear-MDB2 and php-pear-MDB2-Driver-mysql.
There was a package php-pear-MDB2-Schema that I did not install.
I already had a package php-mysql install which I left installed.
Also I reinstalled and initialized msql to make sure it was a pristine installation.
Still no change, after login with admin//admin, a blank page is displayed.
Thanks for the help.
I used menuconfig to build opensips. Is there any configuration required here to allow the cp to interact with opensips?
Usually when you get this error and you have all the necessary stuff properly installed, means that your DB credentials are wrong. MDB2 is not smart enough to be able to send back a "connection failed" error message. Instead sends back the error you got there.
I am not 100% sure that you are experiencing this issue, but, to be sure, please check the opensips-cp/config/db.inc.php file and make sure that you can connect to DB using the credentials that you have placed there.
Let me know.
Yes this was the problem. Now I get the main web page.