ec2-ami

Allowing Apache on EC2 to run sudo commands via CGI script

冷暖自知 提交于 2019-12-11 08:04:59
问题 I have an Amazon (AMI) Linux EC2 instance running on AWS. I'm create a perl script that will create directories when it is called through a web url (CGI script). However, because the browser is executing the script, the user apache is running the perl script. Because apache is not allowed to do mkdir command without using sudo none of the directories are being created. I've modified the scripts permissions to execute (755) via the browser, however none of the mkdir commands work. I even tried

AWS EC2 Instance starting time

帅比萌擦擦* 提交于 2019-12-11 06:03:46
问题 Sometimes the starting time of the instance takes more than 5 minutes. In this case, the Status Checks takes more than 4 minutes. How can I make the instance run less than a minute, including checking the status? 回答1: You do not need to wait for the Instance Status Check to complete before using an Amazon EC2 instance. Linux instances are frequently ready 60-90 seconds after launch. Windows instances take considerably longer because the AMI has been configured for sysprep , which involves a

mysqlnd_ms error - getaddrinfo failed, mysqlnd_global_stats in Unknown

爷,独闯天下 提交于 2019-12-10 11:19:04
问题 I'm trying to set up mysqlnd_ms so that it serves its purpose of doing the reads on the slave db and writes on the master db. However, I'm getting this error when httpd is restarted. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd_ms.so' - /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_global_stats in Unknown on line 0 I'm running an Amazon EC2 x64 AMI instance and ran the following commands on a fresh instance: sudo yum update sudo

mysqlnd_ms error - getaddrinfo failed, mysqlnd_global_stats in Unknown

本小妞迷上赌 提交于 2019-12-06 11:15:08
I'm trying to set up mysqlnd_ms so that it serves its purpose of doing the reads on the slave db and writes on the master db. However, I'm getting this error when httpd is restarted. PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/mysqlnd_ms.so' - /usr/lib64/php/modules/mysqlnd_ms.so: undefined symbol: mysqlnd_global_stats in Unknown on line 0 I'm running an Amazon EC2 x64 AMI instance and ran the following commands on a fresh instance: sudo yum update sudo yum install -y gcc make gcc-c++ sudo yum install -y httpd24 php54 sudo yum install -y php54-devel php54

How can I use/install “make” on the Amazon Linux AMI for EC2?

爱⌒轻易说出口 提交于 2019-12-06 02:55:35
问题 I'm a new user of Amazon EC2. I want to compile the pptpd package on EC2, but receive the following error: [root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory I searched the entire root directory tree, but make isn't available: [root@ip-10-112-59-187 /]# find . -name "make" ./etc/mail/make I'm wondering whether make is actually installed on the Amazon Linux AMI initially? If not, how do I install it? 回答1: Preface The Amazon Linux AMI is

How to avoid GRUB errors after running apt-get upgrade - Ubuntu [closed]

余生长醉 提交于 2019-12-06 02:26:27
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm running ubuntu 14.04 on an EC2 After running apt-get upgrade I'm prompted with a screen that asks me to reinstall GRUB boot loader The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason. It is important to make sure that the

R + httr and EC2 api authentication issues

半腔热情 提交于 2019-12-05 01:40:45
问题 I would like to use the R package httr to access the EC2 services via their API. But I am a little bit unsure how to get started as it does not fall into the usual authentication format of "Oauth2.0" in which you have the usual: key, secret, token and signature system. I think EC2 uses the "signature version 2" method, but I am unclear as to how that works. Looking at the documentation that EC2 provides with regard to making query requests at http://docs.amazonwebservices.com/AWSEC2/latest

How can I use/install “make” on the Amazon Linux AMI for EC2?

。_饼干妹妹 提交于 2019-12-04 08:55:27
I'm a new user of Amazon EC2. I want to compile the pptpd package on EC2, but receive the following error: [root@ip-10-112-xxx-xxx /]# /var/tmp/rpm-tmp.2eILT0: line 58: /usr/bin/make: No such file or directory I searched the entire root directory tree, but make isn't available: [root@ip-10-112-59-187 /]# find . -name "make" ./etc/mail/make I'm wondering whether make is actually installed on the Amazon Linux AMI initially? If not, how do I install it? Preface The Amazon Linux AMI is (loosely) based on CentOS and a perfectly decent OS for EC2, in fact it has been tailored by Amazon for EC2

How to avoid GRUB errors after running apt-get upgrade - Ubuntu [closed]

烈酒焚心 提交于 2019-12-04 08:47:25
Closed. This question is off-topic. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I'm running ubuntu 14.04 on an EC2 After running apt-get upgrade I'm prompted with a screen that asks me to reinstall GRUB boot loader The GRUB boot loader was previously installed to a disk that is no longer present, or whose unique identifier has changed for some reason. It is important to make sure that the installed GRUB core image stays in sync with GRUB modules and grub.cfg. Please check again

How do I save an AMI to a S3 bucket?

五迷三道 提交于 2019-12-03 23:56:12
I've created an AMI(EBS AMI) using the Amazon AWS console. That AMI has 2 snapshots attached to it. Now I want to backup that AMI to a S3 bucket. Is this possible? I actually need to do this to be able to then move that AMI to a bucket in a different region and register that AMI for use in that different region. Any clues? Update My initial answer still applies concerning the question as such (see below), however, given you actually need to do this to be able to then move that AMI to [...] a different region , you will be pleased that AWS has just released Cross Region EC2 AMI Copy to address