I've been trying to port a standalone website I've been working on to WordPress. However, I haven't been able to install WordPress locally because MAMP isn't working properly.
I've installed MAMP on my computer fine. However, when I start the server and press "Open WebStart page", my default browser tells me "This site can't be reached. localhost refused to connect." I also noticed that there is only one green dot by MySQL Server; both the Apache Server and Cloud have white dots next to them.
I've tried a couple things with no luck. I've restarted my computer, but the same problem persisted. I went into MAMP Preferences and reset the ports to the default (8888 for Apache, 7888 for Nginx and 8889 for MySQL) but that had no effect. I've tried switching to Nginx, but kept getting 504 errors. Lastly, I've tried accessing the WebStart page in multiple different browsers with no luck, as well.
I'm running this on Windows 10 Professional.
Any help would be greatly appreciated. Thanks.
The issue is that you're probably trying to hit http[s]://localhost instead of http[s]://localhost:8888 ... your Apache port is set to 8888 so you need to tell the browser to look to that port. If you want to use the standard ports, you'd go to the "ports" section in MAMP and click the "Set server ports to 80, 81, 443, 7443, 3306, and 11211" option (or the equivalent). There's also the "Set server to MAMP ports" which moves all the ports back to 8888, 7888, 8890, etc.
I had the same problem, here's the fix that worked for me.
Launch MAMP stop the server then at the toolbar at the top press on MAMP-> ports then press set ports to default and then restart the servers it should work fine then.
Click on MAMP drop down, and click on preferences.
Then go to PHP.
Click on the Standard version drop down; and change it from 7.3.7 to 7.2.14.
Click OK.
Everything should be working fine now.
Related
I am developing a website on localhost wamp using Wordpress. Today when I tried to open my wordpress account it was displaying an error "This webpage is not available ERR_CONNECTION_REFUSED",also I am not able to see any of my webpages.
I tried using IP address instead and tried to open on other browser like firefox,IE also (initially, I was working on chrome) but nothing worked.
Can anyone please suggest some solution to this??
Skype reserves port 80 for its incoming connection which conflicts with WAMP, so simply configure Skype to use another port by doing the following:
In Skype go to Tools|Options|Advanced|Connection uncheck the option --> Use port 80 and 443 as alternatives for incoming connections, that's it
For this change to take effect restart Skype and Restart all services on WAMP by doing the following:
Left-click WAMP tray icon > Restart All Services"
Now Wamp and Skype can co-exist together, hope this solves your problem!!
Have a look at this post:WAMP Server not working
In short, I can create a new MAMP Pro 3 host with success and then download and install Wordpress 4.0 via MAMP Pro's "Extra's" feature also seemingly with success (no errors, ) ...yet it doesn't turn out that way as the browser says, "Error code: ERR_CONNECTION_REFUSED".
Full Details: Hi, I've just installed MAMP Pro for the first time on Mac OS 10.9.5 with all the default settings, the WebStart page loaded in the browser, php looks to be running fine. The problem I'm having occurs when running a preliminary test of MAMP by trying the Extras feature and installing Wordpress 4.0. I get no indication that anything went wrong with the default install yet clicking the button next to the Server Name "Open the hosts web page in a browser"... I am greeted with an error in Google Chrome, Firefox, Safari, etc....
"This webpage is not available. Google Chrome's connection attempt to was rejected. Error code: ERR_CONNECTION_REFUSED
Google Chrome's connection attempt to testwpextra.dev was rejected. The website may be down, or your network may not be properly configured.
Check your Internet connection
Allow Chrome to access the network in your firewall or antivirus settings.
Check your proxy settings
"
I'm not using a proxy, I am running apache as my local user and have confirmed the document root is owned by the same user (with read/write permissions), I turned off firewall/littlesnitch just to be sure, same result in various browsers.
I read some fella saying something about setting up his host with IPv6 but I'm using the MAMP control panel to manage the process for me and don't see settings of that nature. Maybe this is done via the Extended tab with directory or VirtualHost parameters, I don't know... wish I did. Please help! Thanks!
I solved my problem by changing MAMPs ports from the default 8888 etc... to 80,443,3306 (on MAMPs General tab). Now all my includes are broken because MAMP doesn't allow "php_value" in htaccess files...one step at a time i guess. =]
i am having problem with my visual studio 2010 web developer , when every time i run my aplication my localhost is not working i dont event use IIS for my project just a localhost and page not found i have tried to configure my internet properties and checked USE a proxy server for the connection , but still my localhost does'nt work , is there any other way to fix my problem , please help me
Add the following line to your C:\Windows\System32\drivers\etc\hosts :
127.0.0.1 localhost
Ps: to edit hosts, copy it to your desktop, add the line : 127.0.0.1 localhost , save , copy the new host to your folder C:\Windows\System32\drivers\etc\ then replace the old one
The problem could be in another application you are running.
Visual studio uses the same ports/localhosts like steam and other applicitions.
To clear this, make sure the program you think is causing the problem doesnt start automaticly start when your PC starts and then restart your pc.
if that isn't the problem you schould look at your localhost itself by typing 127.0.0.1 in your browser to see if it works
I've recently installed WordPress onto localhost using XAMPP to host it. For some bizarre reason, accessing any page from the WordPress site (including the admin panel) is very slow.
I've tried changing the host file to show:
127.0.0.1 127.0.0.1
127.0.0.1 localhost
But it hasn't made the slightest difference. My machine specs are fairly high, so this doesn't seem to be an issue. I'm currently in the process of downloading a new browser (currently using IE) - although i doubt this'll help the issue.
I've been digesting the web to find a solution for that, and it seems that it depends on your environment; in my case, it was working just fine until I installed Eclipse with Worklight.
Anyway, I just figured out how to overcome the very slow response time.
If Apache and MySQL are not installed as a service (no green checkmark beside the module name in XAMPP control panel) like this...
...follow these steps to do so:
Stop Apache and MySQL and close XAMPP
Go to XAMPP location (by default c:/xampp)
Right-click on xampp_start.exe > "Properties" > "Compatibility" tab; check "Run this program as an administrator"
Repeat the above step with xampp_control.exe (don't run XAMPP now)
Now you will be able to start mysql_start.bat and apache_start.bat
Now open XAMPP (you will get a UAC alert about launching the program as administrator)
You will find a red crossmark beside Apache and MySQL module, just click on the red crossmark beside each module and agree to install as service (if modules are running you have to stop them first)
This really works for me after a very long time-consuming web search with no luck at all. I hope it helps.
In your WordPress wp-config.php file, is the entry for DB_HOST ‘localhost’? If so, change it to ‘127.0.0.1’ and see if it helps.
How about disabling LoadModule cgi_module modules/mod_cgi.so in httpd.config. It might speed up your loading page.
You can try comment out the IPv6 localhost in your host file.
# ::1 localhost
Based on my previous experience, one of the most common reasons of slowness is caused by your code trying to connect to MySQL server via 'localhost', which then resolved to the IPv6 address ::1. However, for XAMPP package, MySQL server is not listening to this address by default. It only listen to the IPv4 address of 127.0.0.1. It will only try to reconnect with 127.0.0.1 after ::1 timeout.
Another option would be to amend your code to connect to MySQL server via '127.0.0.1' directly.
I have read thru a lot of posts and tried out most of the given solutions. Nothing worked for me :( Finally I have got my problem fixed very easily by just adding an exception in windows defender for the folder (located on my sd card) containing all my websites.
I run xampp 3.2.2. on windows 10 on my MS surface Pro and had trouble mostly with WordPress sites running extremely slow (minutes to load). But in general the loading of all sites was not fast enough. Now it went from minutes to the normal 2-3 seconds on WordPress sites with lost of css effects.
Hopes this helps someone ;)
Create a rule and allow XAMPP in Windows firewall did the trick for me. Now loads instantly.
When i developed for wordpress, i too had this issue. My solution was to set up a virtualbox running debian with 2 set cores and 2GB of ram using the netinstall, then set up openlitespeed and the usual with lsphp. XAMPP uses apache but with only essentials, so you do not get php-fpm and other goodies as the idea is on xampp is that it works rather than it works fast.
Since wordpress setups tend to be heavy on resource, not even a high spec machine will run xampp and wordpress well. The easiest solution is to use virtualbox and set up openlitespeed (with 2GB of ram you could install cyberpanel enterprise package for free, ready to use on install with all webserver utilities). This is why most hosts like around 80% including "wordpress recommended" are actually super slow and terrible. Where i work we have our own dedicated server for client wordpress sites that we optimise for to make it very fast, where even a thousand hits on the login page in a second takes barely any resource rather than relying on a shared host for each client.
Apache is actually very slow for your typical plugin heavy wordpress, and needs a lot of tweaking to run fast. Openlitespeed comes ready to use so you only have to configure your hosts file and virtual hosts to get started with a lot of performance
I'm trying to enable SSL in IIS 7 on my dev machine using a self signed cert. This is turning out to be quite frustrating.
I have followed THIS guide and several others that are almost identical. The configuration goes ok, but when I try and navigate to the website I get various errors.
http://localhost/index.htm - Results in HTTP Error 404 - Not Found.
https://localhost/index.htm - Results in Internet Explorer cannot display the webpage.
If I go into IIS and remove the https binding from the website then it works as expected (in http only obviously).
I'm gussing that there is something that needs to be set up / configured / installed in windows before this will work?
Thanks.
You shouldn't need to reboot, it looks like IIS is not responding for some reason. Do you have Skype installed by any chance? It is unfortunately one of the most common reasons we see issues with ports.
So do this:
Open IIS Manager, and select the server
Click in the Sites page and make sure Default Web Site is Started.
If it is not running click Start
Also to troubleshoot in case it is a port issue:
OPen an elevated command prompt and type
netstat -ano
Search in there for something like 0.0.0.0:80 and :443
You will be able to see the Process ID (PID) that i using that port.
Also to troubleshoot SSL, you can run in the same command prompt "netsh http show sslcert" and you should see in there the certificate you assigned.