简体   繁体   中英

How to solve this This sample requires a Mysql database. Please edit the configuration file: application.config.php?

i am using hybridauth to get userinformation from social web sites like facebook,twitter, etc. PHP lib to connect i configured using install.php which is available in lib itself.

when i tried to use some examples available i get the following errore This sample requires a Mysql database. Please edit the configuration file: application.config.php This sample requires a Mysql database. Please edit the configuration file: application.config.php

i really don't know where this file application.config.php is available.

also i get got an error! Hybridauth Library needs the CURL PHP extension. got an error! Hybridauth Library needs the CURL PHP extension.

since i am very new to PHP blinking what to do next.

Please help me to solve this.

Regards Tony

Firstly, you need php-curl.. most repo's php installs include this, so it's odd you haven't gotton it. You have specified what OS you're working on, but a quick google search will give you instructions on installing this. If you're working on a RHEL-based system, do;

yum install php-common
yum install php-curl

The former installing all php common packs, and the latter specifically installing curl.

likewise, you'll need to find where application.config.php is - again, on RHEL-based systems, you can run;

find -name application.config.php

- otherwise, find out how to do a system search on the OS you're currently working on. Looks like it's just a standard issue where you haven't defined your mysql information (database name, username, password); once you input these into your application.config.php, you should be good to go.

Best of luck with it.

  • Eoghan

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM