Title: Trying To Setup A Faucet Post by: defaultking on January 13, 2016, 10:01:03 PM 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? Title: Re: Trying To Setup A Faucet Post by: FruitsBasket on January 13, 2016, 10:06:38 PM 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. 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.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? Title: Re: Trying To Setup A Faucet Post by: defaultking on January 13, 2016, 10:18:40 PM 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. 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.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? 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"; Title: Re: Trying To Setup A Faucet Post by: FruitsBasket on January 14, 2016, 06:48:07 AM 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. 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.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? 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"; 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. Title: Re: Trying To Setup A Faucet Post by: Digitalbitcoin on January 14, 2016, 07:07:18 AM 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 Title: Re: Trying To Setup A Faucet Post by: FaucetRank.com on January 14, 2016, 09:11:27 AM Sometimes localhost doesn't work so check in account details what is host for example it may like sqlserver1.hostinger.co.uk
Title: Re: Trying To Setup A Faucet Post by: Robertt on January 14, 2016, 09:15:34 AM 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. Title: Re: Trying To Setup A Faucet Post by: defaultking on January 14, 2016, 01:08:57 PM 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. Title: Re: Trying To Setup A Faucet Post by: Robertt on January 14, 2016, 01:12:25 PM 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 Title: Re: Trying To Setup A Faucet Post by: FruitsBasket on January 14, 2016, 01:33:42 PM 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. Title: Re: Trying To Setup A Faucet Post by: Holdaaja on January 14, 2016, 01:35:07 PM Using free hosting is bad idea.
Every faucet I have seen using free hostinger have hit cpu limit almost all the time. Title: Re: Trying To Setup A Faucet Post by: defaultking on January 14, 2016, 01:44:18 PM 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" Title: Re: Trying To Setup A Faucet Post by: Robertt on January 14, 2016, 01:49:41 PM 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. Title: Re: Trying To Setup A Faucet Post by: defaultking on January 14, 2016, 03:01:56 PM 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. Title: Re: Trying To Setup A Faucet Post by: Robertt on January 14, 2016, 03:04:51 PM 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 Title: Re: Trying To Setup A Faucet Post by: defaultking on January 14, 2016, 05:12:54 PM <?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"; Title: Re: Trying To Setup A Faucet Post by: defaultking on January 15, 2016, 02:06:33 PM 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! Title: Re: Trying To Setup A Faucet Post by: FaucetRank.com on January 15, 2016, 03:44:08 PM 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? Title: Re: Trying To Setup A Faucet Post by: Digitalbitcoin on January 15, 2016, 03:58:55 PM whats url of faucet ?
Title: Re: Trying To Setup A Faucet Post by: Robertt on January 15, 2016, 03:59:36 PM 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 |