Tag Info

Hot answers tagged

5

It should be: ec2-54-208-90-77.compute-1.amazonaws.com ...which resolves correctly. Additionally, that record is not a CNAME. It's an A record. ~ dig ec2-54-208-90-77.compute-1.amazonaws.com ; <<>> DiG 9.8.3-P1 <<>> ec2-54-208-90-77.compute-1.amazonaws.com ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- ...


3

Is there a way to assign the public elastic IP address directly to the eth0 interface? No, there is not. Internet traffic to/from EC2 instances always traverse the Elastic IP 1:1 NAT infrastructure. If not, does anyone know a work around to using Vyatta in a VPC configured with an ipsec VPN? I have all manner of IPsec operating in VPC ...


2

Heavy usage Apache 2.4 on a t1.mirco instance is like humpty dumpty sitting on a couple toothpicks. He's too big and heavy! So of course he's squashed the toothpicks to pieces and rolled down the hill. You have at least two basic solutions to the root cause of this problem: Get more server resources, and less steal time. Either with AWS, or go to Digital ...


2

According to their Security Practices statement: http://aws.amazon.com/articles/1697 Packet sniffing by other tenants: It is not possible for a virtual instance running in promiscuous mode to receive or "sniff" traffic that is intended for a different virtual instance. While customers can place their interfaces into promiscuous mode, the hypervisor will ...


1

First, CPU percentage != load average. You probably ought to read up on what the difference is. Now, to your question. If the load average spikes right on login, even for a few seconds, that is enough to push it over 1.00, which will disable Ubuntu's system information display. Short spikes like this frequently get "averaged out" when displayed in ...


1

Is it correct to interpret that there is a correlation between the 100% RAM consumption problem and the I/O perf issue? You have things backwards - the most likely scenario is that the memory contention is causing the high IO. When freeable RAM dwindles, pages start getting swapped to disk, which kills IO performance. Or should I go back to my ...


1

This trick has saved me a few times. If you don't know if the machine is live or not... use these steps. Find the public IP address of your local machine (PC you are on). In the AWS EC2 Dashboard, find the security group attached to your VPS/EC2. Add a rule for inbound/outbound ALL Traffic to/from your IP address to the public address of the EC2. ...


1

Since you're on the free tier, I'm assuming you're using a t1.micro instance. This particular instance lacks the ephemeral storage (the gigs of "temporary" space) and must be EBS-backed, as you see there. Ephemeral storage is very useful for worker servers but very bad for permanent storage because this gets wiped if the server is shut down or terminated. ...


1

As an alternative to command line tools you may use PHP script developed by me. It is easier to setup as you do not need write even a line of code and you do not need to setup environment. Not only this script create snapshots automatically, it can also delete old snapshots after given period of time. How to setup Open SSH connection to your server. ...


1

Try the following link. Add a config file in your root inside .ebextensions directory. Then add this. files: "/etc/httpd/conf.d/vhost.conf": mode: "000644" owner: root group: root encoding: plain content: | NameVirtualHost *:80 <VirtualHost *:80> DocumentRoot "/var/app/current/" <Directory ...


1

I found what was the reason for these messages and why I was not able to get rid of them with apt-get install && apt-get update. The reason why I was not able to install them is after each upgrade they were keeping back (not installed). This is because these are security updates and as far as I got they modify the kernel. So you need to tell the ...


1

You could the innodb_file_per_table (https://dev.mysql.com/doc/refman/5.5/en/innodb-parameters.html#sysvar_innodb_file_per_table). Unfortunately you will get a file per table and not per DB (I don't know about an option for this in MySQL). With this you could link each table-file per symlink to different EBS-Volumes which are mounted to the instance. You ...


1

If you don't have port 3389 available to you because of firewall restrictions, then I'd say your options are to either install Remote Desktop Gateway (formally Terminal Services Gateway) on the computer, which is an RPC over HTTP proxy to get remote desktop connections over port 443 (with the added bonus of being able to forward the RDP traffic to another ...


1

S3 is a storage service. Code of any sort will not execute on it. There are cheaper options than AWS if you just want to run a tiny, non-critical contact form script. Shared hosting might run you as low as a buck a month, or a small Digital Ocean instance runs $5/month. If your current website has PHP support and it's still not working, though, you're ...


1

When you install both 32 bit (.i686) and 64 bit (x86_64) versions of the same library, they must be of the same version. If you examine the Error messages that you posted above, you'll see that the versions are not the same (the "!=" part means "does not equal"). Use following commands to fix the error, Use package-cleanup to remove duplicates. ...


1

You need to be more specific. Can an EBS volume be detached from one EC2 instance and attached to another EC2 instance? Yes, as long as both instances are part of the same Availability Zone. EBS volumes can be thought of the same way as a portable Hard Drive. Now the caveat to this part of your question is, is this EBS volume the root volume, or was it added ...


1

I'll work on the premise here that you are talking about the root EBS volume. ie You have launched an instance, and you now want to detach the EBS root volume, and attach that to another instance. Yes, you can do this. Stop the instance (1). Detach the root volume. Launch another instance (2), for which another root volume will be created. Stop that ...


1

As EEAA mentioned, you can't actually assign the elastic IP to an interface on your instance. That's not how EC2 publicly-routed IPs work. I'm not sure how much it will help you, but if you do want to know the IP programatically, you can query it from the metadata "API": curl -s http://169.254.169.254/latest/meta-data/public-ipv4 If an elastic IP is ...


1

You can use the instance metadata documented here http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AESDG-chapter-instancedata.html below I wrote a simple piece of java code which prints the running instance-id import java.net.URL; import java.net.URLConnection; import java.util.Scanner; public final class Main { public static void main(String[] args) ...


1

No, you can't download a disk image (at least not easily). Here's my recommendation: Fire up a new ubuntu server and configure it as you wish. This will become the replacement for your failed server. Detach the disk from your old server and attach as a second disk to the new server. I cover this basic process in this answer. Copy over any data you need ...


1

After installation, Amazon doesn't do anything to your instances anymore so I don't think they have functionality to provide for this scenario. You could hack up a script to loop over all instances and check if his key is there (it's not pretty, but it'll work :) ): for INSTANCE in $(ec2-describe-instances | grep INSTANC | grep running | awk '{print $4;}') ...


1

Firstly, private ip addresses don't change after reboots; they change after an instance is stopped and then started again. Different things. You can create an AMI from any EBS backed instance. Look for "Create Image" under the actions menu. If you can do this, redploy the AMI in a dedicated Security Group, and then use that Security Group ID as the source ...



Only top voted, non community-wiki answers of a minimum length are eligible