I have a problem with installing Railgun listener on AWS EC2 of ELB.
I followed this instruction:
https://www.cloudflare.com/docs/railgun/installation.html
So, what I did:
Accessed the ec2 via Putty.
Installed the new key using this command:
$ sudo rpm --import https://pkg.cloudflare.com/pubkey.gpg
And then I was not sure how to add Cloudflare yum repository, because there seemed to be no relevant description about it.
So, I added a Redhat linux repo using this command:
$ sudo rpm -ivh http://pkg.cloudflare.com/cloudflare-release-latest.el7.rpm
Then I tried to install Railgun using this command:
$ sudo yum install railgun-stable
But I got 404 Not found error. Here’s the screenshot:
The error message is:
http://pkg.cloudflare.com/dists/2018.03/main/binary-x86_64/repodata/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
Please let me know how to install Railgun on Amazon linux instance?
Any help will be appreciated.
Thank you for your time and help.
Related
With former generation of Amazon Linux, all I needed to do is add the following in .ebextensions in order to use PostgreSQL:
packages:
yum:
postgresql93-devel: []
Now when I deploy on EB with the following platform:
Python 3.7 running on 64bit Amazon Linux 2/3.0.0
I get the following error on deployment:
[ERROR] Error occurred during build: Yum does not have postgresql93-devel available for installation
Therefore it is impossible to deploy as I need to connect to a PostgreSQL database in RDS.
What config in .ebextensions do I need to do?
The following works:
packages:
yum:
amazon-linux-extras: []
commands:
01_postgres_activate:
command: sudo amazon-linux-extras enable postgresql10
02_postgres_install:
command: sudo yum install -y postgresql-devel
postgresql93-devel is pretty old. The yum PostgreSQL repository starts at 9.5. Depending on your needs you may want to upgrade to at least 9.5. PostgreSQL 12 is the latest production release.
EDIT
As to the comment #jordanm made - that's correct, the AWS Linux 2 environment does have PostgreSQL 9.2.24 available. If you're ok with that version then you can just install postgresql-devel. Change your .ebextensions to just run:
packages:
yum:
postgresql-devel: []
This will install the devel package for 9.2.24.
If you'd like something a bit newer, it's apparently a bunch harder. I was unable to get this to work for the devel package. If you change your .ebextensions to contain something like (not tested!):
container_commands:
command: 'amazon-linux-extras install -y postgresql9.6'
Then you'll get PostgreSQL 9.6 but it does not appear to have the devel package available.
It doesn't look possible to use the RPM's from https://yum.postgresql.org/ as AWS Linux 2 is not supported. Trying CentOS or RHEL gives an error.
Is 9.2 usable for your environment?
Something that helped me with Amazon Linus 1, is the fact that I didn't need to install Postgres at all when plugging in a RDS service and specifying Postgres as the driver. It's just a thought for people having this problem. But maybe just try to not explicitly install Postgres.
I haven't validated which version will be installed by default.
This configuration works fine with the ElasticBeanstalk environment (Python 3.6 running on 64bit Amazon Linux). After this, I was able to install psycopg2 with requirements.txt
packages:
yum:
libicu-devel: []
commands:
01_postgres_libs:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-libs-10.7-1PGDG.rhel6.x86_64.rpm
02_postgres_install:
command: rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-10.7-1PGDG.rhel6.x86_64.rpm
03_symink_pg_config:
command: sudo ln -sf /usr/pgsql-10/bin/pg_config /usr/bin/pg_config
04_postgres_devel:
command: sudo rpm -ivh --force https://yum.postgresql.org/10/redhat/rhel-6.9-x86_64/postgresql10-devel-10.7-1PGDG.rhel6.x86_64.rpm
After installing phpMyAdmin on Amazon Linux using these commands...:
sudo yum --enablerepo=epel install phpmyadmin
sudo ln -s /usr/share/phpmyadmin /var/www/html/phpmyadmin
... I have tried the steps described in this tutorial (referred to in previous StackOverflow Answers), but do get the following error message after issuing the command
sudo chmod 0700 /etc/httpd/conf.d/phpmyadmin.conf: File or Directory not found.
How can I get phpMyAdmin running on Amazon Linux?
You can install phpmyadmin rpm package by yum command to enabling epel repositories
yum --enablerepo=epel install phpmyadmin
You'll then have to change the phpMyAdmin config file to allow access from your IP.
Oh and you probably need to change your sudo command to be case sensitive. Double check your filename, but on my system it would be
sudo chmod 0700 /etc/httpd/conf.d/phpMyAdmin.conf
When I first tried to install phpMyAdmin on Amazon Linux, I got some trouble; even though, I had already using epel-release options.
What I did was:
sudo yum install epel-release
sudo yum install phpmyadmin
I got error
No package phpmyadmin available.
If you got the same error you could try
sudo rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
then
sudo yum --enablerepo=remi install phpmyadmin
should works.
As previous post said, you might need update the conf of phpmyadmin on Apache for public access. After
sudo chmod 0700 /etc/httpd/conf.d/phpMyAdmin.conf
You should update the config
<IfModule !mod_authz_core.c>
# Apache 2.2
Order Deny,Allow
Allow from All
#Deny from All
#Allow from 127.0.0.1
#Allow from ::1
</IfModule>
then you should be able to access phpMyAdmin by http://domainname.com/phpMyAdmin now.
Reference:
How To Install and Secure phpMyAdmin on a CentOS 6.4 VPS
Allowing network access to PHPMyAdmin
Install phpMyAdmin 4.3.10 on Fedora 21/20, CentOS/RHEL 6.6/5.11
There's a great tutorial in the Amazon EC2 documentation that covers installing a LAMP web server stack on Amazon Linux. One of the optional procedures in that topic includes installing phpMyAdmin.
Primary Content Reference:
"http://www.windowsazure.com/en-us/documentation/articles/store-mongodb-virtual-machines-linux-install-centos/"
Beginner at linux cmd and MongoDB on Virtual Machines here.
The Tutorial: Install MongoDB on a virtual machine running CentOS Linux in Windows Azure
Is an easy follow until you reach
The Section: Install and run MongoDB on the virtual machine
As someone use to using a x64 Win8 OS I am completely lost on how I am suppose to bypass the permission denial that won't allow me to touch 10gen.repo or sudo yum install mongo-10gen mongo-10gen-server. Can someone please respond with a ELI5 format?
Related Resources:
"https://unix.stackexchange.com/questions/104916/how-do-you-configure-package-management-system-yum-for-mongodb"
You need to create the repository file with sudo as well.
Try this:
$ echo "[MongoDB]
name=MongoDB Repository
baseurl=http://downloads-distro.mongodb.org/repo/redhat/os/x86_64
gpgcheck=0
enabled=1" | sudo tee -a /etc/yum.repos.d/10gen.repo
$ sudo yum update
And then:
sudo yum install mongo-10gen mongo-10gen-server
Hope it helps
after I install phpmyadmin by "sudo yum install phpMyAdmin", it installed successfully.
However, when I type http://example.com/phpmyadmin always get "The requested URL /phpmyadmin was not found on this server."
So my question is how to configure phpmyadmin after install it, I searched online for lots post and none of them solves my problem so far, any suggestions? (I restarted apache after install phpmyadmin and it didnt work)
Background: using amazon ec2 linux ami, php/apache/mysql up and running.
(and where can I find apache installed directory and phpmyadmin configure file?
I tried /etc/apache, but apache is not there)
Thanks a lot for your help!
I'm following Github's instructions for adding an SSH key. I've generated the id_rsa.pub file from my AWS EC2 instance, but I cannot complete the step that has me copy the contents of the file using xclip because I cannot install xclip onto the EC2 instance.
I tried to install xclip on the EC2 instance using sudo yum install
xclip, but that didn't work ("No package xclip available").
So I looked around and found more detailed install instructions, but they
didn't work either ("curl: (22) The requested URL returned error: 404 Not Found"), and the suggested correct URLs in the comments also failed.
(I also tried just copying the text contents of the id_rsa.pub file using Putty and ctl-c, but Github declared the resulting key invalid.)
So, how do I install xclip on 64-bit Amazon Linux AMI 2012.09?
I needed this today for a file larger than a ssh-key, and cat was not enough. You need to enable the EPEL repo in EC2 in order to get xclip:
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo rpm -ivh epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel
sudo yum install xclip -y
You don't need xclip. Just ssh into the EC2 instance and cat the key to your terminal, then copy and paste it from your terminal to wherever you need it.
Use
sudo amazon-linux-extras install epel -y
sudo yum install xclip -y
Source: https://gist.github.com/kevin-kientopp/7a1dee73ab0f1bdb21fe158407a028ea
I don't mean to wake up the zombies but in case someone is still wondering you can wget the rpm (i.e. from here) and then
sudo yum localinstall xclip-0.12-1.el6.x86_64.rpm
Note: you may need to do the same for some dependencies.