EC2 Server troubleshooting - mysql

I have an instance running that points to an elastic IP. I also have the A record on GoDaddy pointing to that same elastic IP. I created a key, installed php, httpd, etc... through putty, gave ec2-user chown permissions in var/www/html and sub directories and plopped a simple index.html in that folder.
The problem is, I still get the 404 - so the site is completely unresponsive. I can nav into the site with WinSCP fine and the directories are all there. Is there something I am completely overlooking that is just an oversight on my part or do I have deeper issues?
Much thanks!
EDIT:
I did a simple service httpd status to check if Apache is running, and sure enough it is.

If you recently updated the dns on GoDaddy it may just be that you have to wait for the dns to propagate to the right nameservers. Have you checked that you are getting a 404 from the right ip address?

Related

Running online website through virtual box/ubuntu with godaddy domain

I really need help setting my website online with my GoDaddy domain. OK this is what I've done so far, please let me know if I did anything wrong, help will be much appreciated.
Ok so what I did was:
-Download virtualbox and downloaded Ubuntu Desktop (was I supposed to download the Server one?)
-I then bought my GoDaddy domain, example.com and pointed it to my home's router/ provided my IP address.
-So then I went to my routers config and allowed port 80 to my Ubuntu Desktop's IPV4/IP address (Starts with 10.0...
-I have Apache running on my Ubuntu/Linux Desktop, and made a file in the /etc/apache2/sites-available/example.com and provided the document root, server name, etc and then enabled the site using
sudo a2ensite example.com.
-I enabled bridge network on my Ubuntu and linux settings.
What else do I have to do? When I went to my router's configuration, it say's that my Ubuntu/virtual box is offline even though the Ubuntu does have internet. I'm able to access Facebook for example on my Ubuntu.
Is there anything else that I'm missing, please and please and please help. Would greatly appreciate it.
Maybe you will find this doc helpful http://catlingmindswipe.blogspot.ru/2012/06/how-to-virtualbox-networking-part-two.html But still, remember that the author of the article intends to create a sandbox, not a website for a regular use.
By the way, what is the operating system on your hardware box ?

trouble with hg serve on the lan

Our team started using mercurial about a month ago and it was a rough start, but it's working out well now. At the end of last week though, we suddenly had issues pulling from each other's repositories.
Normally, I would pull from, for example, prog12:800, and it would work great. Now, I get the message
URLError: [Errno 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
The hg server is running, and it's not a firewall issue. This issue only occurs when trying to access my repo and two other people's. Accessing everyone else's, and the one on our webdev server, is fine. We are all on the same lan (though two of us connect via vpn) We all have the same issue - from my own computer, i can type in my computer name:8000 and it works, but no one else can see it.
I appreciate any suggestions!
It it possible your IT department deployed something that's acting as a firewall on each machine? Being able to connect to your own port 8000, but not others' just screams firewalls.
That said, most people don't actually run hg serve on developer boxes. Instead you let each developer freely create repos on the "central" "webdev" box. So I might create 'work-in-progress-ry4an' and do push/pull from there, and other can pull from it.
The hg serve functionality is a great way to pass someone some quick changesets, but not built to be used as an always-on server.

Can't Access localhost or 127.0.0.1 in wamp

I was using wamp 2.1a for my wordpress blog and a website. It was working fine. Then I caught a google redirect virus. I tried hard to get rid of it, finally i fixed it. Then, suddenly my wamp server stopped working, I mean both the services were running but when I opened localhost or 127.0.0.1, it just kept loading, and went on forever till I closed the browser's tab. Then I upgraded to wamp 2.2a and the problem is still there.
I've also checked the hosts file, tried to change the port to 8080 for apache, but it didn't help. I do not have skype (and never used it) so there's no port 80 conflict. When I restart the services, the apache service starts but the mysql service doesn't. When I click wamp tray menu, click on the remove service for mysql, a message box appears saying - mysqld.exe has stopped working. The only option I have there is close program.
I can't access my blog so I can't so any testing. Please tell me if this happened to you or if you have a solution to this. Any help is appreciated.
Did you try different web browser? I guess it is browser problem, clear your browser cache, might solve your problem.
I have found the following solution in another post here (from Sergiu Butnarasu) which worked for me.
Modify the apache HTTPD.CONF file. Change "Listen 80" to "Listen 0.0.0.0:80 http://forum.wampserver.com/read.php?2,93143

Hosting subdomains separately with and without SSL while using a wildcard certificate

I'm having a strange problem with a separately hosted subdomain I have. I'm running an application on Engine Yard, let's call it mysite.com. I have a wildcard SSL certificate installed there which covers all the subdomains (things like api.mysite.com). We recently decided to migrate our blog to be hosted independently (right now it lives on wordpress.com). Because I can't run the blog alongside our Rails app with ease on Engine Yard, I decided to grab some cheap hosting space from Dreamhost to host our Wordpress blog there. I set up the server there to fully host our subdomain (let's call it blog.mysite.com), and updated the DNS A record on Hover (our DNS provider) to point blog.mysite.com to the Dreamhost server. So here's the issue:
If I go to blog.mysite.com via Firefox or Safari on my Mac I see the basic Wordpress install which I set up. However, if I try to view things with Chrome I get the following error:
This webpage is not available
Error 118 (net::ERR_CONNECTION_TIMED_OUT): The operation timed out.
This happens on all Macs running Chrome I could get my hands on. I tried both clearing the cache and flushing the DNS but nothing. The weirdest part is Chrome keeps looking for https://blog.mysite.com instead of http://blog.mysite.com. There is no SSL cert installed on the subdomain for the blog on Dreamhost because it's not necessary.
Has anyone ever come across this before? And in case anyone wants to try the actual address is http://blog.frestyl.com.
sounds like you have a 301 permanent redirect that Chrome registered http://blog.frestyl.com -> https://blog.frestyl.com. Besides clearing the cache I'm not sure what else can be done.

Local workstation as Mercurial server

I am trying to follow the instructions posted here but am getting stuck at step 3. After setting up my local workstation to serve the Repository; I cannot clone it from my server. When I run the following command
hg clone http://COMPUTER-XXXXX.hsd1.va.comcast.net:8000/
I receive
abort: error: getaddrinfo failed
What am I missing? I am running TortoiseHg on my Windows XP laptop and a Server 2008 set up on a VM. Thanks.
Are you sure your server is able to reach the work station by name? Try this on the command line:
ping COMPUTER-XXXXX.hsd1.va.comcast.net
It looks like the DNS lookup is failing, but that's just a guess.
Perhaps try cloning by IP?
hg clone http://192.168.1.134:8000
or whatever the IP of your desktop is?
(also there's no trailing period after your clone command, right?)
Reading this issue: https://www.mercurial-scm.org/bts/issue535 it seems that other people had problems with their http proxy settings on windows. Could you try editing the proxy settings in IE and set "direct connect to the internet" (or something like that) instead, to see if this works around your problem ? Then as someone suggested it might be a firewall problem: you might want to try to "telnet < machine > 8000" to see if the port is blocked somewhere or not (but the error messages looks more like a name resolution problem..).
Hope it'll help.
Try changing 'HTTPS' to 'HTTP'.
Also check your proxy settings. If you're behind a corporate firewall, you may need to go into Global Settings --> Proxy and copy your proxy server address and port into the Host field.
I had same problem but i was connecting to CVS through VPN and VPn was not active on my machine resulted in this error....once i started VPN, it went through