2020-06-12, 02:42 PM
I try to install my live website on localhost with the help of swamp but it give following error.
"This site can’t be reachedlocalhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED.
I done as following.
1. Installed Wamp
2. Download home directory form cpanel.
3. In my live website panel, I click on phpmyadmin and download database.
4. Created mybb folder in c://wamp64/www/mybb
5. Copy and paste all data which are inside public_html folder into c://wamp64/www/mybb
6. Through toolbar---> left click on swamp icon-----> click on phpmyadmin ----> open local host phpmyadmin ----> add username "root" and password keep blank and server choice as mysql----> Go
It will open phpmyadmin.
8. Clicked on user account and created user with same username and password as on live website database. (from inc/config.php file)
User name: Use text field: username as in my database
Host name: Local : localhost
Password : same as in my database
In Database for user account
Ticked - Create database with same name and grant all privileges.
Ticked - Grant all privileges on wildcard name (username\_%).
Global privilege: Checked all
Clicked Go
So user created with same name of database as user.
9. Now go to database and click on above point no. 8 created database and install downloaded database copy.
10. Change username in inc/config.php file as here I created database having name same as username.
11. Do changes in /setting.php file as below
/inc/settings.php:
$settings['cookiedomain'] = "";
$settings['cookiepath'] = "https://localhost/mybb/";
$settings['cookieprefix'] = "";
$settings['homeurl'] = "https://localhost/mybb";
$settings['bburl'] = "https://localhost/mybb";
12. NOW When I try o open https://localhost/mybb it give above error. I am not able to open my website on localhost.
Please guide me for solve this iisue.
Thank you.
"This site can’t be reachedlocalhost refused to connect.
Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED.
I done as following.
1. Installed Wamp
2. Download home directory form cpanel.
3. In my live website panel, I click on phpmyadmin and download database.
4. Created mybb folder in c://wamp64/www/mybb
5. Copy and paste all data which are inside public_html folder into c://wamp64/www/mybb
6. Through toolbar---> left click on swamp icon-----> click on phpmyadmin ----> open local host phpmyadmin ----> add username "root" and password keep blank and server choice as mysql----> Go
It will open phpmyadmin.
8. Clicked on user account and created user with same username and password as on live website database. (from inc/config.php file)
User name: Use text field: username as in my database
Host name: Local : localhost
Password : same as in my database
In Database for user account
Ticked - Create database with same name and grant all privileges.
Ticked - Grant all privileges on wildcard name (username\_%).
Global privilege: Checked all
Clicked Go
So user created with same name of database as user.
9. Now go to database and click on above point no. 8 created database and install downloaded database copy.
10. Change username in inc/config.php file as here I created database having name same as username.
11. Do changes in /setting.php file as below
/inc/settings.php:
$settings['cookiedomain'] = "";
$settings['cookiepath'] = "https://localhost/mybb/";
$settings['cookieprefix'] = "";
$settings['homeurl'] = "https://localhost/mybb";
$settings['bburl'] = "https://localhost/mybb";
12. NOW When I try o open https://localhost/mybb it give above error. I am not able to open my website on localhost.
Please guide me for solve this iisue.
Thank you.