Help with Hercules FluxCP on CentOS

iZeal

New member
Messages
158
Points
0
Emulator
Hi guys I've been trying to install Hercules FluxCP on my webhost Ubiquityhosting using CentOS 6.4 but somehow at the prompt on Updating/installing the db for FluxCP I always encounter this error. tried Xantara's version and also rAthena but no luck.

I already done chmod 0777 for logs, itemshop, tmp

and the information regarding servers.php I just input the same information from my inter-server.conf

the Hercules server has no problem accessing MySQL.

Critical ErrorAn error was encountered during the lifetime of the application.

This could be due to a variety of problems, such as a bug in the application.

However, normally it is caused by misconfiguration.

Exception DetailsError: PDOException

Message: SQLSTATE[HY000] [2003] Can't connect to MySQL server on '127.0.0.1' (13)

File: /var/www/html/lib/Flux/Connection.php:81

File Line Function/Method /var/www/html/lib/Flux/Connection.php 81 PDO::__construct() /var/www/html/lib/Flux/Connection.php 94 Flux_Connection::connect() /var/www/html/lib/Flux/Connection.php 159 Flux_Connection::getConnection() /var/www/html/modules/install/index.php 17 Flux_Connection::getStatement() /var/www/html/lib/Flux/Template.php 375 include() /var/www/html/lib/Flux/Dispatcher.php 170 Flux_Template::render() /var/www/html/index.php 180 Flux_Dispatcher::dispatch() Exception Trace As String#0 /var/www/html/lib/Flux/Connection.php(81): PDO->__construct(*hidden*)
#1 /var/www/html/lib/Flux/Connection.php(94): Flux_Connection->connect(Object(Flux_Config))
#2 /var/www/html/lib/Flux/Connection.php(159): Flux_Connection->getConnection()
#3 /var/www/html/modules/install/index.php(17): Flux_Connection->getStatement('SELECT VERSION(...')
#4 /var/www/html/lib/Flux/Template.php(375): include('/var/www/html/m...')
#5 /var/www/html/lib/Flux/Dispatcher.php(170): Flux_Template->render()
#6 /var/www/html/index.php(180): Flux_Dispatcher->dispatch(Array)
#7 {main}
any help is very much appreciated..

Thanks in advance.

 
Last edited by a moderator:
Assuming your webhost and mysql on different hosts(not on same vps), I would recommend doing this command via putty.

/usr/sbin/setsebool -P httpd_can_network_connect=1

error code 13(2003) means connection is refused by the host, so the above command will enable the php(fluxcp) to connect to your mysql on vps

 
Last edited by a moderator:
@Dastgir Sir actually they're on same vps
default_biggrin.png
really confused with this
default_sad.png


I think it fixed it thanks for help Dastgir appeciate it..

Have a nice day
default_biggrin.png


 
Last edited by a moderator:
<p>nvm sorry i figured my error out through the power of google </p>

<p> </p>

 
Last edited by a moderator:
Back
Top