croxinuz Posted May 16, 2018 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 62 Reputation: 0 Joined: 03/18/12 Last Seen: April 19 Share Posted May 16, 2018 (edited) hi, i got this error when install new flux on my webhosting Error: PDOException Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '202.83.122.72' (111) File: /home/ropk8475/public_html/lib/Flux/Connection.php:81 File Line Function/Method /home/ropk8475/public_html/lib/Flux/Connection.php 81 PDO::__construct() /home/ropk8475/public_html/lib/Flux/Connection.php 94 Flux_Connection::connect() /home/ropk8475/public_html/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /home/ropk8475/public_html/modules/install/index.php 17 Flux_Connection::getStatement() /home/ropk8475/public_html/lib/Flux/Template.php 375 include() /home/ropk8475/public_html/lib/Flux/Dispatcher.php 170 Flux_Template::render() /home/ropk8475/public_html/index.php 169 Flux_Dispatcher::dispatch() Exception Trace As String #0 /home/ropk8475/public_html/lib/Flux/Connection.php(81): PDO->__construct(*hidden*) #1 /home/ropk8475/public_html/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config)) #2 /home/ropk8475/public_html/lib/Flux/Connection.php(159): Flux_Connection->getConnection() #3 /home/ropk8475/public_html/modules/install/index.php(17): Flux_Connection->getStatement('SELECT VERSION(...') #4 /home/ropk8475/public_html/lib/Flux/Template.php(375): include('/home/ropk8475/...') #5 /home/ropk8475/public_html/lib/Flux/Dispatcher.php(170): Flux_Template->render() #6 /home/ropk8475/public_html/index.php(169): Flux_Dispatcher->dispatch(Array) #7 {main} i have do setsebool -P httpd_can_network_connect=1 and firewall-cmd --zone=public --add-port=3306/tcp --permanent; firewall-cmd --reload on my server VPS but nothing change. someone can help me ? Edited May 16, 2018 by croxinuz Link to comment Share on other sites More sharing options...
0 croxinuz Posted June 24, 2018 Group: Members Topic Count: 27 Topics Per Day: 0.01 Content Count: 62 Reputation: 0 Joined: 03/18/12 Last Seen: April 19 Author Share Posted June 24, 2018 solved, i'm request my webhosting enable remote mysql to my VPS IP. Link to comment Share on other sites More sharing options...
0 iamhyd Posted May 16, 2018 Group: Members Topic Count: 4 Topics Per Day: 0.00 Content Count: 64 Reputation: 9 Joined: 09/28/13 Last Seen: March 9, 2023 Share Posted May 16, 2018 Your port is open. Check the account information in servers.php make sure it is correct. Link to comment Share on other sites More sharing options...
Question
croxinuz
hi, i got this error when install new flux on my webhosting
Error: PDOException Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '202.83.122.72' (111) File: /home/ropk8475/public_html/lib/Flux/Connection.php:81 File Line Function/Method /home/ropk8475/public_html/lib/Flux/Connection.php 81 PDO::__construct() /home/ropk8475/public_html/lib/Flux/Connection.php 94 Flux_Connection::connect() /home/ropk8475/public_html/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /home/ropk8475/public_html/modules/install/index.php 17 Flux_Connection::getStatement() /home/ropk8475/public_html/lib/Flux/Template.php 375 include() /home/ropk8475/public_html/lib/Flux/Dispatcher.php 170 Flux_Template::render() /home/ropk8475/public_html/index.php 169 Flux_Dispatcher::dispatch() Exception Trace As String #0 /home/ropk8475/public_html/lib/Flux/Connection.php(81): PDO->__construct(*hidden*) #1 /home/ropk8475/public_html/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config)) #2 /home/ropk8475/public_html/lib/Flux/Connection.php(159): Flux_Connection->getConnection() #3 /home/ropk8475/public_html/modules/install/index.php(17): Flux_Connection->getStatement('SELECT VERSION(...') #4 /home/ropk8475/public_html/lib/Flux/Template.php(375): include('/home/ropk8475/...') #5 /home/ropk8475/public_html/lib/Flux/Dispatcher.php(170): Flux_Template->render() #6 /home/ropk8475/public_html/index.php(169): Flux_Dispatcher->dispatch(Array) #7 {main}
i have do setsebool -P httpd_can_network_connect=1 and firewall-cmd --zone=public --add-port=3306/tcp --permanent; firewall-cmd --reload
on my server VPS but nothing change.
someone can help me ?
Edited by croxinuzLink to comment
Share on other sites
2 answers to this question
Recommended Posts