So I'm trying to make a website for school and I've been following this guys tutorial on how to make a website. But for some reason when I get to lesson 32 and I enter the ec2-user:~/environment/blog $ rails server -b $IP -p $PORT command, the website doesnt run and it says " somenumbersandletters.vfs.cloud9.us-east-2.amazonaws.com refused to connect " with an error. I've followed all the steps correctly (Except for the directory he runs it from, I run it straight from blog instead of environment because it tells me I need to make a new app the other way). I've tried disabling my firewall, I've enabled Cookies and searched the internet for a solution. I am very new to Servers and Coding and any help would be greatly appreciated!
This is my Terminal Log
Answer from https://www.reddit.com/r/aws/comments/cwnbt1/aws_cloud9_server_refuses_to_connect/
Once you start the rails server, click the 'preview' button. When this tells you that it refuses to connect, find the button that looks like two overlapping squares with an arrow to "pop out into a new window." Once it was in a new tab, it worked like a charm.
Hope this helps!
I ran into this issue as well. I could view my rails application when viewing it from within a new tab, but not within the Cloud 9 IDE tab.
If you look in the browser console when viewing through the tab, you will see this error:
Refused to display 'https://xxxxxxxxxxxxxxxxxxxxxxx.vfs.cloud9.xxxxxxxxxxx.amazonaws.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
This error is being caused because you are viewing the rails application through an iFrame via the Cloud 9 IDE. By default to add security and hinder Cross Site Scripting (XSS) attacks, Rails sets SAMEORIGIN for the X-Fram-Options header. This will not allow the rails app to be visible in the Cloud 9 IDE tab using the iFrame.
In order to bypass this, you will need to set this header to use ALLOWALL instead.
NOTE: Only do this within your development environment and never in a production environment. This could open your site up to XSS attacks.
Add the following configuration option to your config/environments/development.rb file:
config.action_dispatch.default_headers = {
'X-Frame-Options' => 'ALLOWALL'
}
After saving the changes, restart your rails server and the application should now be visible within the Cloud 9 IDE tab directly.
When I click localhost in the WAMP menu, the localhost homepage opens as normal. I then click on any of my projects and instead of activating the localhost URL it goes to the server (www) based URL. For instance, one of the projects is 'chrispowell100.co.uk' and I would expect the URL that opens to be localhost/chrispowell100.co.uk but it is actually chrispowell100.co.uk which activates the www version. This has only just started happening in the last few days - prior to that I have used WAMP without issue for several years. I thought at first this may be a W10 problem which is where I first noticed it but I have identical symptoms on W8. (If I type 'localhost/chrispowell100.co.uk' in the address bar, the correct, local version opens.)
Can someone tell me what is happening and how to fix it?
Appreciate any advice!
On looking at the code for WAMP's index.php I came across $suppress_localhost variable. Googling that led me to WAMP - Remove localhost from project URL which answers my question. Case closed.
Just installed Neo4j community v1.9.4 - thanks for Windows Desktop Launcher. A couple of configuration questions:
1) How can I set the webserver to listen to any connection? In the previous versions I could set the webserver to listen on 0.0.0.0; With the new version, the properties file (neo4j-server.properties) doesn't appear any longer.
2) From the desktop launcher, is it possible to change the default database starting location? I am working with a previously created database and have to point the launcher at it every time I start.
Thanks.
When you start neo4j-community.exe, a window pops up (neo-4-j Version 2.2.2).
In the lower left corner, you find a button named Options...
Press this button, and you will find the configuration files.
C:\Users\YOUR_NAME_HERE\AppData\Roaming\Neo4j Community\neo4j-server.properties
When you push "Edit..." you can edit the files you want - in your case the file in the "Server Configuration" section.
Just add
# Disable authorization
dbms.security.auth_enabled=false
But be aware of the security problems mentioned here http://neo4j.com/docs/stable/security-server.html#security-server-auth
Hope that helps
You should see the installation folder from the Neo4j web console (last tab), in there you can change the neo4j-server.properies to your existing database. Same thing goes for the listening.
the icon of wamp server is yellow, I tried in:
1.Open file httpd.conf through wamp tray icon
Find:
# onlineoffline tag - don't remove
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
Change to:
# onlineoffline tag - don't remove
Order Deny,Allow
Allow from all
no change!
2.left click the wamp icon > Put Online
no change, still online put yellow icon --> locall host not work
3.apache --> service --> start service --> not work
4.apache --> service --> test port 80 -->
your port actually used by:
server : Microsoft
I don't know what to do?
Ok, i figured this out. What is happening is Skype is blocking port 80. So, you have to do the following:
Right click on skype.
Click on quit and allow it to quit.
Left click on the Wamp Server icon
Click Start all services.
Thats it!
If you want to use skype, do all of the steps (1-4) then start skype again.
It's my own problem and solveed it.
click start and type servicesp-> open it and stop it ( at the r8 side).
click on the yellow icon and got apache--> service--> test port 80--> if it's available,
then again go to apache --> service and --> install service
restart all services by clicking wamp icon and then you will find green
i did face this complex and i did tried all the solution to make wamp server go to green , but it did not work , every thing at all , but , when i click on test port 80 on apache , it gives your port 80 is used by http/api2.0 . and from here i found the answer from a contributor in ther web site
http://theandystratton.com/2012/wampapache-broken-from-microsoft-httpapi-2-0-using-port-80
, here is the solution :
Turning off Microsoft HTTP/API 2.0
Open your Control Panel (Start > Control Panel)
Change the view setting from Category to Small or Large Icons
Open Administrative Tools
Open Services
Find “Web Deployment Service Agent” in the list
Right click and choose Properties
Click Stop
Change it’s Start Up value to “Manual”
Hit Apply/OK to save the changes
Go to WAMP and restart all services
This should do it.
I found an issue that fixed mine on VirtualBox. For some reason the WAMP installer never installed the service. To fix it, left click on the yellow wamp icon in your task bar area, select Apache>>Service>>Install Service then follow the instructions in the DOS screen.
Next go back to Apache>>Service>> and select "Start/Resume Service"
Try installing WAMP 2.1
I also tried each and everything, but install WAMP 2.1, refrain from 2.2,
http://sourceforge.net/projects/wampserver/files/WampServer%202/WampServer%202.1/
Have a gr8 time
Try this,
Left click the wamp icon, go to apache and then test port 80.
If it shows apache then it is working fine and if it shows MicrosoftApi etc. then go to services --> search for web deployment agent service and stop it.
Restart the wamp and hope it works for you.
Here are steps to find out the wampserver's errors
Go to Control Panel -> Event Viewer
Find "Apache Service" in "Summary of Administrative Events", then double click on it
View errors and fix them.
Hope this is helpful!
There are many obscure things that can cause this, in my case I had enabled the PHP zip extension, it caused the yellow icon and the services were not started. With the services not started it wouldn't let me disable the extension, had to manually edit the php.ini and comment it out. Then wamp started fine.
Re-install WAMP and try to turn off WAMP before switching off machine and don't force stop while turning off, if WAMP is on and you will not deal with this problem in future.
My solution was using a different port rather than 80.
Left click over the "W" icon
Select Apache > Use a port other than 80
8080 worked fine for me
Good luck!
I clicked on "allow VirtualHost local ip's others than 127.*" in wamp settings.
its working fine with (green tray icon)
In my case, I click on the yellow icon and then click on start all services, try it may it will help u.
Enjoy your tech journey ;)
HOW TO FIX ANY PROBLEM WITH WAMP-SERVER:
Go to Control Panel -> Event Viewer
Find "Apache Service" in "Summary of Administrative Events", then double click on it.
View errors and fix them.
MY ERROR WAS:
MySQL was not working, mariaDB was blocking the port 3306. I had to go to services and end the service. After that I installed again MySQL service from left click menu (wamp icon). And then I Started All Services and it was green again :)
Cheers #Tin Nguyen
You can simply fix it by restart the apache service like this
Step1: install service
Step 2: then again go to the same menu (like as image) and select "Start/Resume Service"
for me, I had the code execution cannot proceed because vcruntime140.dll error in the installation process and fixed by installing Microsoft VC packages downloaded from this URL
but after that, the yellow icon not fixed by doing every possible way, it was fixed just by reinstalling wamp!
i had the same problem, click on wamp icon => apache => service => install service
however avoid installing 64 bit wamp, sometimes it throws dll errors, i recommend Laragon instead
I have recently installed wampserver 2.0 and configured it to work on port 81. Now the problem is that when I click on phpMyAdmin present at the taskbar inside wampserver 2.0 the browser redirects me to
localhost/phpmyadmin instead of localhost:81/phpmyadmin. When I manually type it, everything works fine.
How can I fix this thing? I want the browser to open localhost:81/phpmyadmin page instead of localhost/phpmyadmin when I click on phpMyAdmin.
The configuration is stored in wampmanager.ini, located in the wamp installation directory.
This file is generated from wampmanager.tpl though, so you need to change the following line there:
Type: item; Caption: "${w_phpmyadmin}"; Action: run; FileName: "${c_navigator}"; Parameters: "http://localhost/phpmyadmin/"; Glyph: 5
You can even add your own menu items in there if you like.
You need to restart Wamp after changing this configuration, since wampmanager.ini needs to be re-generated.
If I'm understanding you correctly, the problem is that your link to phpMyAdmin points to the wrong direction. Now I've never used this server, but the wampserver's taskbar is probably some HTML file. Just look for something like <a href="http://localhost/phpMyAdmin/"> and replace the HREF with your path there.
Wherever possible, you should use relative links in your website. I don't know anything about this "wampserver", but the link to phpmyadmin, instead of being <a href="http://localhost/phpmyadmin">, should be <a href="/phpmyadmin">, and that way it will continue to work no matter what port or domain you're running on.
Added :8080 to all 3 http://localhost uses in wampmanager.tpl. Saved changes. Exited wampserver. Started Wampserver. Came up green. Clicked localhost inside wampserver menu. Wampserver page opened in browser.
Thank you Peter Lang for your post. It led me to solution I've struggled with for several days.