How to install httpd on RedHat Server? What Yum repository? - apache

I am pretty new with this kind of server so please excuse my ignorance.
I asked my company for a Linux Server for hosting a web application and they gave me this system:
Red Hat Enterprise Linux Server release 7.7 (Maipo)
so the first thing I did was trying to install Apache HTTP, which package is called httpd in yum repositories.
Following a tutorial I did:
sudo yum list httpd
Which started returning a series of time out messages coming from a mirror related to my company (Are they hosting rhel repositories? Is this a common practice?)
Anyway I started disabling this mirrors at which point the command
sudo yum list httpd
returned just:
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
Error: No matching Packages to list
I tried adding back some repo without any basic knowledge of the technology so I'll just post the result of this command:
sudo yum repolist enabled
Loaded plugins: langpacks, product-id, search-disabled-repos, subscription-manager
Repository rhel-7-server-rpms is listed more than once in the configuration
repo id repo name status
epel/x86_64 Extra Packages for Enterprise Linux 7 - x86_64 13,457
rhel-7-server-optional-rpms/7Server/x86_64 Red Hat Enterprise Linux 7 Server - Optional (RPMs) 19,380
vmware-tools VMware Tools 1
repolist: 32,838
What should I do? How do I know which repo to add and/or enable to install this common package?

httpd2.4 for RHEL is packaged as a Software Collection, so you have to enable some repos first. See these docs:
Release notes
Installation
Once you "scl enable" the proper repos, then you'll "yum install httpd24"
If you want a shortcut for setup, use step 1 only on this Python Hello World page, then yum install.

Related

Centos 8, yum update command not working. given following error. can't find php-common-7.2

I've tried to remove php-common-7.2 but couldn't find where it located.
Problem: package php-pecl-igbinary-3.2.2-1.el8.remi.7.2.x86_64 requires php(api) = 20170718-64, but none of the providers can be installed
- package php-pecl-igbinary-3.2.2-1.el8.remi.7.2.x86_64 requires php(zend-abi) = 20170718-64, but none of the providers can be installed
- cannot install both php-common-7.2.34-3.el8.remi.x86_64 and php-common-7.4.16-1.el8.remi.x86_64
- cannot install both php-common-7.2.34-4.el8.remi.x86_64 and php-common-7.4.16-1.el8.remi.x86_64
- cannot install the best update candidate for package php-pecl-igbinary-3.2.1-1.el8.remi.7.4.x86_64
- problem with installed package php-common-7.4.16-1.el8.remi.x86_64
- package php-common-7.2.24-1.module_el8.2.0+313+b04d0a66.x86_64 is filtered out by modular filtering
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
My server configuration is
NAME="CentOS Linux"
VERSION="8"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
PLATFORM_ID="platform:el8"
PRETTY_NAME="CentOS Linux 8"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:8"
HOME_URL="https://centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-8"
CENTOS_MANTISBT_PROJECT_VERSION="8"
Apache Web Server
php7.4-cli
using Webmin & virtaulmin`
You are trying to install igbinary extension for PHP 7.2 with PHP 7.4. This cannot work.
For a proper configuration, please follow the Wizard instructions
And not enough information for more help:
rpm -qa php\*
dnf repolist
dnf module list PHP

Terminal command in fedora

What does the yum and -y means
yum install httpd -y
new to fedora. please guide me.
the above code will install Apache server in fedora
yum is a software package manager that installs, updates, and removes packages on RPM-based systems. It automatically computes dependencies and figures out what things should occur to install packages. yum makes it easier to maintain groups of machines without having to manually update each one using rpm.
-y means that we did't want to gave yes to install any package (here httpd)
httpd installs apache web server
Thanks for Support and advice

yum install activemq activemq-client - no package activemq available

I am trying to install activemq and activemq-client on RHEL 6.6 with yum.
But after typing
yum install activemq activemq-client
the machine just saying
No package activemq available
No package activemq-client available
Nothing to do.
Is there a way to get yum working for this ?
Thanks for your help.
For a simple installation following the tutorial you have to enable different repos for yum, this can be done by
subscription-manager repos --enable=*repoid*
To get a list of Repo IDs, you can use:
subscription-manager repos --list
After this, everything works fine.

Which yum repositories for Oracle Linux 7 can I use to install Kubernetes?

I've been able to successfully install Kubernetes in a CentOS 7 testing environment using the "virt7-testing" repo as described in the CentOS "Getting Started Guide" in the Kubernetes github repo. My production environment will be running on Oracle Linux 7, and so far enabling "virt7-testing" on OL7 hasn't been working.
Are there any other yum repositories out there that are compatible with OL7 and include Kubernetes?
It's not the best solution to pull outside of OEL, but I couldn't find an OEL repository with these packages, so I used this:
[]# cat /etc/yum.repos.d/virt7-common.repo
[virt7-common]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=http://mirror.centos.org/centos/7/extras/$basearch/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
A good start would be the rapidly updated fedora / epel kubernetes repositories.
Something like (untested)
yum --enablerepo=updates-testing install kubernetes kubernetes-devel flanneld docker
Should do it for you.

Fedora 21 packages repo in cobbler not found

I am attempting to install Fedora 21 with additional packages (dhcp, tftp-server, tftp, subversion, vim) using cobbler as my provisioning system over pxeboot.
The problem is that the installation will show an error about packages/groups not existing when it tries to install packages for Fedora, specifically it will pop up an error for all of the packages I try to install in the list below. It seems that the repo information is not right because not a single one of my packages is being installed even though when I check the repo on the web they are present.Here are the relevant sections from my kickstart file.
install
url --url=http://192.168.1.1/cblr/links/Fedora_21_Server-i386/
repo --name="Fedora_21_i386_Server" --baseurl=http://192.168.1.1/cblr/repo_mirror/Fedora_21_i386/
auth --useshadow --passalgo=md5
graphical
firstboot --disable
keyboard us
lang en_US
timezone America/Los_Angeles
selinux --disabled
logging --level=info
reboot
bootloader --location=mbr
zerombr
clearpart --all --initlabel
part swap --fstype="swap" --size=1000
part / --fstype="ext3" --grow --size=1
%packages
#base
#base-x
#editors
#graphical-internet
#system-tools
#admin-tools
#fonts
#lxde-desktop
dhcp
tftp
tftp-server
subversion
vim-enhanced
vsftpd
minicom
%end
I have also tried setting --baseurl as a Fedora mirror (--baseurl=http://mirror.pnl.gov/fedora/linux/releases/21/Server/i386/os/) but that does not work either. I have the above repo added as a cobbler repo and I have linked my Fedora 21 profile to it. One caveat is that I chose "No" for the local mirror option because right now my VM does not have enough space for the Fedora repo.
One solution is to install the packages in a post-install section using standard yum commands. For example,
%post
yum -y install minicom
yum -y install vsftpd
I've used this workaround with F20 installs.