I am using wamp to host a local version of my WordPress site. It was working gine until I restarted my computer and now I get this error.
This site can’t be reached
The connection was reset.
I tried restarting the services, and creating a new copy of this site under I different folder and the error still persists. My other non WordPress sites work fine.
Not sure what is going on so any suggestions would be great.
If you've moved your site to a different folder then the root has probably changed. Go to Preferences > Web Server and click on the folder next to Document Root, and navigate to the root directory that has your site then click on Select.
Also, make sure Apache and MySQL servers are running. Hope this helps.
You might have changed your port number from default port number.
Open with the port number that apache server is listening.
In your browser give "localhost:portNumber/WordPress"
Example: localhost:80/wordpress or
localhost:8080/wordpress or
localhost:8081/wordpress.
You Can check your port number from apache part config file.
Watch this video: https://www.youtube.com/watch?v=blmOFr8uZQI
I think its plugin issue from the codebase. Just rename the plugins name one by one in (wp-content/plugin/) folder and check.
Related
I'm using 'MAMP for windows' to install and develop wordPress in my Local Windows 10 machine. The port which my Apache is listening to is localhost:8888. I'm successfully able to install WordPress in my local machine and login to my dashboard.
As you can observe from the below 3 screenshot. All my theme images and CSS are broken. The reason I found out(and highlighted) is that the all my theme related files are not taking the port address and it is referring to localhost, instead of localhost:8888/
I have my httpd.conf listening to localhost:8888
I've my Git configured with Openshift and hence my theme and plugin folders are moved from WordPress folder to .openshift folder. My wp-config is updated to reflect the same.
I'm not sure what I'm doing wrong here. Please throw some lights on this issue.
Finally got this issue resolved and saved a lot of time.
I just have to append the port number to the http server in the wp-config.php file.
define( 'WP_CONTENT_URL', 'http://'.$_SERVER['SERVER_NAME'].':8888/folder' );
Thanks to my friend Amit for helping me out.
I installed XAMPP and WordPress along it. Created a database and installed the platform all along. Opened the needed ports (8080) so it's publicly accessible also before that. It works.
The problem is that the I can't reach http://IPaddress/wordpress/wp-admin from an outside computer.
I can reach http://IPaddress:8080/xampp/, but thats the only page it will allow me to open. For the rest I get timeouts, unreachable.
I'd appreciate if someone tells me how do I make the C:\xampp\htdocs\wordpress folder accessible publicly just like the /xampp one. Do I need to set some special permissions?
I recommend you next:
You should move Wordpress folder to htdocs.
Change apache port to 80, not 8080.
Open 80 port in your router to your host, example: 192.168.1.32
Change wordpress folder permissions.
Try http://IPADDRESS/
Anyway your solution is also in google.
I'm working on a project that has a single domain on a WHM Server. So we access through an IP to the Wordpress Installation that is on the only account (Cpanel): server/~account1/.
To be more clear, when we access to http://xxx.xxx.xxx/ we were actually accesing to http://xxx.xxx.xxx/~account1/.
After a server migration, however, this stopped working, so we are trying to make it work again. I'm trying to figure out what is wrong here.
Now when we browse to http://xxx.xxx.xxx/ we get the default webpage http://xxx.xxx.xxx/cgi-sys/defaultwebpage.cgi, but we can access the real directory by typing the /~account1/.
Can you help me to figure where to start looking or what could be the problem? Could i fix it by editing the httpd.conf?
I'm a programmer but not an expert of server configuration so I'm kinda lost.
httpd.conf would be the place to start.
You are looking to check the Virtual Hosts setings, often in the above file or conf/extra/httpd-vhosts.conf
http://httpd.apache.org/docs/2.2/vhosts/examples.html
If all else fails, try running the httpd.conf rebuild script as root:
/scripts/rebuildhttpdconf
I have installed Apache2.2 on my computer, PHP 5, and MySQL. Everything was working fine until last night. Suddenly, I could no longer connect to the localhost. I think my computer was infected with a trojan, but that has since been removed and I am unable to reconnect to my localhost.
I have updated my hosts file Windows(C:)/Windows/System32/drivers/etc hosts in notepad: see attachment.
I have tested my connection in the CMD prompt see attachment.
You'll notice [::]1, but after updating my host file, it now displays as 127.0.0.1
Additionally, port 80 IS LISTENING
instead of my web browser loading the page as localhost/vote/home.php NOW it loads as file:///C:/Websites/Vote/home.php AND NOW my PHP no longer works i.e. not being pulled into my web page.
...can't establish a connection to the server at localhost.
Why is my local host not working? Thoughts? Thank you in advance.
Additionally, my web browser page does not time out when requesting localhost....
(I'm a new user so I am unable to post images)?
× 257296
if you put localhost/vote/home.php into your browser's address bar you should get an unabled to connect error,
not a redirect to a file. The only time the address bar will show file:///C:/Websites/Vote/home.php is if you open
that file directly in your browser.
Your details about why apache isnt working are not to clear, but you can try a couple of things.
First, how did you install apache, is it a service? you can check this by going to control panel > Administrative Tools > Services and
see if apache is in that list. If its, you have to start it, if its not then apache is not installed as a service and
you need to start it by running the executable. Go to the whichever directory your httpd executable is and run it.
Some things to try:
Make sure Apache is actually running, that it haven't failed during startup.
Check if it's listening to the expected port (80, or whatever you have configured it to)
> netstat -nb
Check your hosts file to make sure nothing fishy is going on there. localhost should point to 127.0.0.1, but maybe it's been set to point somewhere else by your virus thing.
If you can't figure it out, you can always try to remove/uninstall and try to set it up again. If this is a developer machine, I can recommend using the WAMP package installer instead of setting it all up yourself. It provides fairly easy switching between php/apache/mysql versions and easy switching on and off of most regular apache and php modules.
run command prompt as administrator and go to Apache bin folder (usually 'cd \apache\bin' ) and type httpd -k start. it worked for me with the same issue.
I had the exact issue. If you have a XAMPP control panel pull it up. There you will see XAMPP Control Panel Image the different modules that you have open... Apache will be one of them. In the 'Actions' column you will have 'Stop' adjacent to it. Hit the 'Stop' and wait about 1 minute for everything to calm down. The button will change to 'start' so hit it. This will reset Apache. It worked for me...Good Luck.
If you don't have the control panel on your desktop, go into your programs list and drop-down the XAMPP icon. The control panel is right there. Just click it and it will show
I'm starting a new CodeIgniter project, so I grabbed a fresh copy of version 2.1, and unarchived it to my local Apache root. I set up config.php and tested the site from localhost and another machine via the computer's LAN IP, and it worked as expected.
I also have my router forward WAN port 443 to port 80 on my server machine, so that I can access my Apache server from school (via wan_ip:443). This usually works fine, but when I try access my new CodeIgniter copy, I get a 403 Forbidden page.
I can still access all other sub-folders on my Apache server via WAN, including other, older, CodeIgniter projects.
There is no .htaccess file in the root of the fresh copy. I tried chmod-ing 755 and 777 recursively, but with no change.
Anybody have any idea what could be causing this? I've done quite a few CodeIgniter projects, and I've never had this issue.
I would have a look at the apache config maybe there is something related to the ip.
Also check your codeigniter config. Maybe it is doing some routing.
Try to replace your project with a simple index.html if that works apache is fine.
Check if your project itself does some redirect or something like this...
Turns out it was an Apache issue. I created an .htaccess file and added "Allow from all" to it, and now it works. I'm not sure why I needed to do that since I could access all my other Apache directories over WAN just fine, but it worked.