Author

Topic: Trying To Setup A Faucet (Read 1122 times)

member
Activity: 112
Merit: 10
January 15, 2016, 10:59:36 AM
#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
hero member
Activity: 1568
Merit: 502
January 15, 2016, 10:58:55 AM
#19
whats url of faucet ?
hero member
Activity: 868
Merit: 500
January 15, 2016, 10:44:08 AM
#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?
full member
Activity: 140
Merit: 100
January 15, 2016, 09:06:33 AM
#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!
full member
Activity: 140
Merit: 100
January 14, 2016, 12:12:54 PM
#16

$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";
member
Activity: 112
Merit: 10
January 14, 2016, 10:04:51 AM
#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
full member
Activity: 140
Merit: 100
January 14, 2016, 10:01:56 AM
#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.
member
Activity: 112
Merit: 10
January 14, 2016, 08:49:41 AM
#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()."
";

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.
full member
Activity: 140
Merit: 100
January 14, 2016, 08:44:18 AM
#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()."
";

And now I'm getting the following error. "could not find driver"
legendary
Activity: 1274
Merit: 1000
January 14, 2016, 08:35:07 AM
#11
Using free hosting is bad idea.
Every faucet I have seen using free hostinger have hit cpu limit almost all the time.
legendary
Activity: 1232
Merit: 1017
January 14, 2016, 08:33:42 AM
#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.
member
Activity: 112
Merit: 10
January 14, 2016, 08:12:25 AM
#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
full member
Activity: 140
Merit: 100
January 14, 2016, 08:08:57 AM
#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.
member
Activity: 112
Merit: 10
January 14, 2016, 04: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.
hero member
Activity: 868
Merit: 500
January 14, 2016, 04: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
hero member
Activity: 1568
Merit: 502
January 14, 2016, 02: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
legendary
Activity: 1232
Merit: 1017
January 14, 2016, 01: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.
full member
Activity: 140
Merit: 100
January 13, 2016, 05: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";
legendary
Activity: 1232
Merit: 1017
January 13, 2016, 05: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.
full member
Activity: 140
Merit: 100
January 13, 2016, 05: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?
Jump to: