This site can’t be reached localhost refused to connect - php

I am getting a very strange error which I have no idea what is going on or how to fix. The strange thing is that I can connect to the /admin on my wordpress site. As soon as I try and view the site it crashes and I get this message - Any Ideas?
I have just downloaded a new copy of wordpress from the website. I go into php my admin create a database and username and password and matching what it is in wp-config file.
I then expect to login to localhost 8887 but as as soon as I hit that route I get to that site the port number disappears and I get this error message.
I have been experimenting with ssh tunneling this week so worried I have may have messed up some config but not really sure where to begin ? I dont think it is a wordpress problem more a networking problem?

In the picture localhost is written with double L-s. Isn't that the problem?
http:// locallhost..

Related

My website keeps going back to WordPress Installation xampp localhost

i'll try to explain better this time .Yesterday i quit xampp app and today i just open like everyday i start the service and when i tried to reach my localhost page to work the page gives me these errors:
install wordpress again ( i don´t want to reinstall wordpress again, i just want to reach my localhost page to work on it )
Wordpress Error when i try to reach my localhost page
Well after that i put the same site title etc etc and give me this errors:
Wordpress error databases
Wordpress error databases
and then i get this error : Table 'olivosdearagon.wp_options' doesn't exist in engine and more wp_ errors
and when i try click on "olivosdearagon" databases it says this:
Databases error

Troubleshoot log in connection after changing server and adding wildcard ssl

I've moved hosting companies and a website I built (somehow) and manage has stopped working after trying to log in, it goes to a blank page and loads a 500 error.
I know from some digging the fault lies here: $db = mysql_connect($hostname,$username,$password) or die("Database connection failed");
I have made sure I've changed the database connection details, I've tried changing the password.
I thought it might be linked with adding a wildcard ssl, but even removing it doesn't make any difference - although it still defaults to ssl.
Please can anyone help?
What have I missed please
As I said I've tried changing log in details,
When I try and log in with a correct user name & password, The url in the bar stays as the index page (where the screen is either blank or showing a 500 code), instead of progressing to the welcome page

Laravel 5.4 - Issue with 404 page

I am facing a weird issue with one of my project, the website is hosted on two RHEL 6.9 linux machines and a load balancer is in place, following are the servers configuration:
192.168.10.1 - First server with website and database copy
192.168.10.2 - Second server with website and database copy
192.168.10.3 - Load Balancer
10.66.0.3 - Load Balancer's public IP
Now as you can see, we have same copy of the website and database on two servers (which we manually configured with apache, php and mysql). The website url for example is: www.mywebsite.com
The problem is, when we try to open a wrong URL, e.g. www.mywebsite.com/asdfa it takes us to 404 page successfully e.g. www.mywebsite.com/404
But when we put a / at the end of the wrong url e.g. www.mywebsite.com/asdfa/ it doesn't take us to 404 page, instead it shows Connection Timed Out error and shows the load balancer's public IP address in the url: 10.66.0.3/asdfa
I am not able to find why this is happening. The domain is not pointed to public folder as per laravel's recommendation and I am using .htaccess to remove public from the URL. Could this be the problem?
------- EDIT ---------
Actually, upon inspecting more i have realized that the issue is with the / at the end of the url. Whenever i type any URL, even if its a valid URL but it is ending with / - it takes some time to process the request and then we get the connection timed out error. Please see the error page here: Connection Timed Out error notice i tried to open a valid URL i.e. mywebsite.com/big-data-analytics which works but when I open same url with a / at the end, it gives me connection timed out error and the url on error page is changed with IP address.
There is a route in your route files that is causing this. It must be.
Something like
Route::get('/{something}/{something}', ...

Wordpress Error Establishing Database Connection

I have reinstalled phpAdmin (due to another issue) and updated wp-config with the correct names for DB, user name, password, etc, but now I cannot access the wordpress site (www.enablie.co.uk, www.enablie.co.uk/wp-admin or http://www.enablie.com/phpmyadmin).
I have tried adding the repair code
define('WP_ALLOW_REPAIR', true);
But still cannot access via : http://www.enablie.co.uk/wp-admin/maint/repair.php.
I am also getting this error when trying to access sql -
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
On Chrome is is showing a basic version of the site (broken styles) when not logged in, but get the EEDC as soon as try to log in. On Safari I have the EEDC immediately.
I assume I have just done something stupid, but most errors seem to suggest naming errors in the config file which I know is not the case. I have also checked the db still exists via mysql to ensure that there is not a problem there.
I assume that the re-install removed something from the overall settings that I now need to manually reconfigure, but I can't find any guidance that points me where to look so would appreciate some help on what I need to change. Much appreciated!
I rebooted by instance and that seemed to fix the issue.

cakephp remove https at localhost

im working with cakephp 2.x..
some of my page cannot display in localhost, they give me "An Internal Error Has Occurred."
but when i run in server there is no problem at all..
when evrytime i start my localhost page then it come out the "website's security certificate."
i think the problem is permission from https..
how can i remove the https or get the certificate or anything that can fix this..
i hope somebody can help me with this..thanks..
when your computer time is not set correctly then it shows website's security certificate.

Categories