Bitcoin Forum
May 24, 2024, 12:23:52 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Trying To Setup A Faucet  (Read 1109 times)
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 13, 2016, 10:01:03 PM
 #1

Should start off by saying I'm trying to set-up a faucetbox faucet. So, with my free hosted website I can go to hostinger.co.uk and create a database and then change the information in my config.php file to match and it sets up no problem.

When I follow the same steps for my paid hosting bluehost.com, I setup a database, user, and password. Then I go in the config.php file and update with the new information, but when I try and open the webpage I get the following error. Can't connect to database. Check your config.php.

Anyone using bluehost to run there faucetbox faucet that can help out?
FruitsBasket
Legendary
*
Offline Offline

Activity: 1232
Merit: 1017


View Profile
January 13, 2016, 10:06:38 PM
 #2

Should start off by saying I'm trying to set-up a faucetbox faucet. So, with my free hosted website I can go to hostinger.co.uk and create a database and then change the information in my config.php file to match and it sets up no problem.

When I follow the same steps for my paid hosting bluehost.com, I setup a database, user, and password. Then I go in the config.php file and update with the new information, but when I try and open the webpage I get the following error. Can't connect to database. Check your config.php.

Anyone using bluehost to run there faucetbox faucet that can help out?
In the config.php u need to change the database hostname, username and password according to the database you created on your new host, that will do the trick.

fck@dt-alwayzz_newbz
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 13, 2016, 10:18:40 PM
 #3

Should start off by saying I'm trying to set-up a faucetbox faucet. So, with my free hosted website I can go to hostinger.co.uk and create a database and then change the information in my config.php file to match and it sets up no problem.

When I follow the same steps for my paid hosting bluehost.com, I setup a database, user, and password. Then I go in the config.php file and update with the new information, but when I try and open the webpage I get the following error. Can't connect to database. Check your config.php.

Anyone using bluehost to run there faucetbox faucet that can help out?
In the config.php u need to change the database hostname, username and password according to the database you created on your new host, that will do the trick.

I've changed it already and it's still giving me the error. Obviously below isn't exactly what I changed them too, but it's just to show you I've changed it and it's still giving me the error.

$dbhost = "localhost";
$dbuser = "Nick";
$dbpass = "Password";
$dbname = "DogeFaucet";
FruitsBasket
Legendary
*
Offline Offline

Activity: 1232
Merit: 1017


View Profile
January 14, 2016, 06:48:07 AM
 #4

Should start off by saying I'm trying to set-up a faucetbox faucet. So, with my free hosted website I can go to hostinger.co.uk and create a database and then change the information in my config.php file to match and it sets up no problem.

When I follow the same steps for my paid hosting bluehost.com, I setup a database, user, and password. Then I go in the config.php file and update with the new information, but when I try and open the webpage I get the following error. Can't connect to database. Check your config.php.

Anyone using bluehost to run there faucetbox faucet that can help out?
In the config.php u need to change the database hostname, username and password according to the database you created on your new host, that will do the trick.

I've changed it already and it's still giving me the error. Obviously below isn't exactly what I changed them too, but it's just to show you I've changed it and it's still giving me the error.

$dbhost = "localhost";
$dbuser = "Nick";
$dbpass = "Password";
$dbname = "DogeFaucet";
There could me two problems:
U haven't created the databse information in the mysql/phpmyadmin. Or you need to change the hostname to something else, it should be something like: server1.bluehost.com, this is just an example, it could be totally different.

You can find you hostname in your account details.

fck@dt-alwayzz_newbz
Digitalbitcoin
Hero Member
*****
Offline Offline

Activity: 1554
Merit: 502



View Profile WWW
January 14, 2016, 07:07:18 AM
 #5

Hostinger is not bad but if you got good amount of traffic then your site may be down.
Check for unlimited hosting http://onesmartclick.in/2KgVM
FaucetRank.com
Hero Member
*****
Offline Offline

Activity: 868
Merit: 500



View Profile WWW
January 14, 2016, 09:11:27 AM
 #6

Sometimes localhost doesn't work so check in account details what is host for example it may like sqlserver1.hostinger.co.uk

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .SCAMMERS.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .EXPOSED.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
Robertt
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 14, 2016, 09:15:34 AM
 #7

There could be multiple things for you to attempt.
First of all, local host doesn't always work. Try the host; mysql.hostinger.co.uk
Secondly, didn't hostinger DB users have the typical name set as something like [u238283838]?
Check the DB user again, it's in the information bit.
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 14, 2016, 01:08:57 PM
 #8

Sometimes localhost doesn't work so check in account details what is host for example it may like sqlserver1.hostinger.co.uk

First off thanks for the all the feedback from everyone!

I can get the faucet to work on the hostinger hosting. Just not the bluehost hosting.

$dbhost = "localhost";

$dbuser = "bloggjc#_Nick";

$dbpass = "Password";

$dbname = "bloggjc#_Faucet";

and I've tried

$dbhost = " box####.bluehost.com";

$dbuser = "bloggjc#_Nick";

$dbpass = "Password";

$dbname = "bloggjc#_Faucet";

Both send back the following - Can't connect to database. Check your config.php.
Robertt
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 14, 2016, 01:12:25 PM
 #9

Sometimes localhost doesn't work so check in account details what is host for example it may like sqlserver1.hostinger.co.uk

First off thanks for the all the feedback from everyone!

I can get the faucet to work on the hostinger hosting. Just not the bluehost hosting.

$dbhost = "localhost";

$dbuser = "bloggjc#_Nick";

$dbpass = "Password";

$dbname = "bloggjc#_Faucet";

and I've tried

$dbhost = " box####.bluehost.com";

$dbuser = "bloggjc#_Nick";

$dbpass = "Password";

$dbname = "bloggjc#_Faucet";

Both send back the following - Can't connect to database. Check your config.php.


Do you use " while entering details?
Try using a ' instead.
So instead of "Password" try 'Password';
Let me know now that goes, if it doesn't work I may know the problem
FruitsBasket
Legendary
*
Offline Offline

Activity: 1232
Merit: 1017


View Profile
January 14, 2016, 01:33:42 PM
 #10

If u still have the problem, mayby I could login to your account and look what is wrong and correct it.
I can't do much with the information u provided now.

fck@dt-alwayzz_newbz
Holdaaja
Legendary
*
Offline Offline

Activity: 1274
Merit: 1000


View Profile
January 14, 2016, 01:35:07 PM
 #11

Using free hosting is bad idea.
Every faucet I have seen using free hostinger have hit cpu limit almost all the time.

      ▄▄████████▄▄
   ▄████████████████▄
 ▄█████▀▀       ▀▀████                              
▄████▀            ████      ████                  ████
█████           ▄████▀     ████▌                 ▐████
█████           ▀▀▀▀      ▐████                  ████▌    ▄▄
 █████▄                  ▄█████████▀            ▐████   ▄███▀
   ▀█████▄▄        ▄▄███████████▀▀   ▄▄▄▄       ████  ▄███▀     ▄▄▄▄
      ▀███████▄    ▀████▀████▀     ▄████▀███   ▐███████▀▀    ▄███▀ ██▌
         ▀▀██████▄▄     ▐████    ▄████  ▐██▌   ███████     ▄███▀  ▄██▌
    ▄▄▄▄     ▀▀█████    ████    ▄███▀   ███   ▐███▌███    ▐████▄▄███▀
  █████▀▀      ▀████▌  ▐████    ████   ▄███   ████ ▐███   ████
 ████▀          ████▌  ▐████▄▄██████▄▄█████▄▄█████  ▀███  ▀████▄▄▄▄██           ▄████▄  ▄████▄  ██▄██▄██▄
████▌          █████    ▀████▀▀  ▀████▀  ▀██▀ ███▀   ▀███   ▀▀████▀▀           ██▀     ██▀  ▀██ ██  ██  ██
████▄       ▄▄████▀                                   ▀███▄▄      ▄▄██  ▄████▄ ██▄     ██▄  ▄██ ██  ██  ██
 ██████████████▀▀                                       ▀▀█████████▀▀   ▀████▀  ▀████▀  ▀████▀  ██  ██  ██
   ▀██████▀▀▀



▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬
The Bitcoin Casino
▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬
▄▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▄
█                         █
█       ██                █
█      █▄▄█               █
█     █▀  ▀█              █
█                         █
█       ▄▄                █
█     ▄████▄              █
█   ▄████████▄            █
█   ▀████████▀            █
█     ▀████▀              █
█       ▀▀                █
█                         █
█                         █
█                         █
█                         █
▀▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▀
▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮
Provably fair
Free faucet

▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮
▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬
12 exclusive games
And many more...

▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬ ▮█▮ ▬▬▬▬▬▬



                ▄▄
               ▄▀▀
               ▀█
      █▀▄  ▄▄▄▄█▀▀█▄▄ ▄▀█
      █  ▀▀          ▀  █
      █▌        ██▌ █   █▌
      ▐█       ▐█████   ▐█ ▄▄ ▄▄▄
      █▌        ▀▀▀▀     █ █ ▀   █
      █       ▀▄▄▄▄▄▀     ▀    ▄▀
      █         ▀▀           ▄▀
     ▄▀                    ▄▀
   ▄▀                     █
 ▄▀                       █
█   █▄█                   █
 ▀▀▀  █       ▄▄▄▄▄       █
      █       █   █       █
      ▀▄▄▄▄▄▄▄▀   ▀▄▄▄▄▄▄▄▀
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 14, 2016, 01:44:18 PM
 #12

Quote
Do you use " while entering details?
Try using a ' instead.
So instead of "Password" try 'Password';
Let me know now that goes, if it doesn't work I may know the problem

Tried this and it still doesn't work. However I added the following code in my index.php file

Code:
echo $e->getMessage()."<br>";

And now I'm getting the following error. "could not find driver"
Robertt
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 14, 2016, 01:49:41 PM
 #13

Quote
Do you use " while entering details?
Try using a ' instead.
So instead of "Password" try 'Password';
Let me know now that goes, if it doesn't work I may know the problem

Tried this and it still doesn't work. However I added the following code in my index.php file

Code:
echo $e->getMessage()."<br>";

And now I'm getting the following error. "could not find driver"

If you'd like I can log on to your account and help you fix it, although the problem is most likely within the config.php. It looks like you've made an error with either the db_user, db_name and db_password.
Make sure to double check everything as I always seem to miss something while doing mine and realise eventually that I made a spelling mistake in the password or entered the wrong user.
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 14, 2016, 03:01:56 PM
 #14

Quote
If you'd like I can log on to your account and help you fix it, although the problem is most likely within the config.php. It looks like you've made an error with either the db_user, db_name and db_password.
Make sure to double check everything as I always seem to miss something while doing mine and realise eventually that I made a spelling mistake in the password or entered the wrong user.

Everything should be correct. I've copied and pasted it multiple times and then I thought there might be something that's copied over wrong so I typed it in a few times as well. I've triple checked everything multiple times for any sort of spelling errors that might be going on.

I'd rather not give strangers log-in information to my accounts.
Robertt
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 14, 2016, 03:04:51 PM
 #15

Quote
If you'd like I can log on to your account and help you fix it, although the problem is most likely within the config.php. It looks like you've made an error with either the db_user, db_name and db_password.
Make sure to double check everything as I always seem to miss something while doing mine and realise eventually that I made a spelling mistake in the password or entered the wrong user.

Everything should be correct. I've copied and pasted it multiple times and then I thought there might be something that's copied over wrong so I typed it in a few times as well. I've triple checked everything multiple times for any sort of spelling errors that might be going on.

I'd rather not give strangers log-in information to my accounts.

Yeah i wouldn't trust me with log-in information either.
Have you contacted the support team? They normally help you with issues like these very quickly.
There's a life chat, so you can get fast responses unlike email.
No harm in trying, here's the link: https://www.bluehost.com/cgi/chat
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 14, 2016, 05:12:54 PM
 #16

<?php

$dbhost = "localhost";
$dbuser = "bloggjc6_gnik";
$dbpass = "Password";
$dbname = "bloggjc6_doge";
$display_errors = false;
$disable_admin_panel = false;

$connection_options = array(
    'disable_curl' => false,
    'local_cafile' => false,
    'force_ipv4' => false    // cURL only
);

// dsn - Data Source Name
// if you use MySQL, leave it as is
// more information:
// http://php.net/manual/en/pdo.construct.php
$dbdsn = "mysql:host=$dbhost;dbname=$dbname";
defaultking (OP)
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile WWW
January 15, 2016, 02:06:33 PM
 #17

Quote
No harm in trying, here's the link: https://www.bluehost.com/cgi/chat

Thanks so much for the help. They turned something on in my database (I think PDO or maybe they updated it) and once they did that my faucet started working. I really appreciate all your patience and help!
FaucetRank.com
Hero Member
*****
Offline Offline

Activity: 868
Merit: 500



View Profile WWW
January 15, 2016, 03:44:08 PM
 #18

Quote
No harm in trying, here's the link: https://www.bluehost.com/cgi/chat

Thanks so much for the help. They turned something on in my database (I think PDO or maybe they updated it) and once they did that my faucet started working. I really appreciate all your patience and help!

Glad to here that finally you got the solution and your faucet has installed successfully and now working fine.
when you're going to launch your faucet?

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .SCAMMERS.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .EXPOSED.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
Digitalbitcoin
Hero Member
*****
Offline Offline

Activity: 1554
Merit: 502



View Profile WWW
January 15, 2016, 03:58:55 PM
 #19

whats url of faucet ?
Robertt
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
January 15, 2016, 03:59:36 PM
 #20

Quote
No harm in trying, here's the link: https://www.bluehost.com/cgi/chat

Thanks so much for the help. They turned something on in my database (I think PDO or maybe they updated it) and once they did that my faucet started working. I really appreciate all your patience and help!

No problem. I always use the live chat on a website for help. Honestly, I never bother with email because it takes like one week just to get a few messahes in.
Just curious, why are you using two sites to host a faucet?
Are you going to release two faucets or just one but have another one as backup/testing source
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!