Jump to content
  • 0
iZeal

Help with Hercules FluxCP on CentOS

Question

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 Error

An 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 Details

Error: 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.

Edited by iZeal

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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

Share this post


Link to post
Share on other sites
  • 0

@Dastgir Sir actually they're on same vps :D really confused with this :(

 

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

Have a nice day :D

Edited by iZeal

Share this post


Link to post
Share on other sites
  • 0

<p>nvm sorry i figured my error out through the power of google </p>

<p> </p>

Edited by True Zeal

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.