CentOS is a Linux distribution standing for "Community ENTerprise Operating System" and is a rebuild of "Red Hat Enterprise Linux" (RHEL), belonging to the same company that distributes RHEL (Red Hat, Inc.). The "CentOS7" tag refers to versions 7.x-xxxx of CentOS, working only on 64-bit hardware. Maintenance updates for CentOS/RHEL 7 will stop on June 30, 2024, with full updates ceasing in winter of 2019.
Questions tagged [centos7]
2960 questions
15
votes
3 answers
SELinux preventing Apache from writing to a file
SELinux is preventing the apache user from writing to a log file which it owns. When I do setenforce 0 it works. Otherwise it shows this error
IOError: [Errno 13] Permission denied: '/var/www/webapp/k/site/k.log'
The security context of the file:
$…

Clodoaldo
- 403
- 2
- 4
- 9
14
votes
1 answer
Refused to frame '' because it violates the following Content Security Policy directive: "frame-src *"
I have found many solutions to various situations with "refused to xyz" due to Content-Security-Policy Settings.
However I can't seem to find what might be wrong if '' gets refused.
The literal error message in the browser is
Refused to frame ''…

Worp
- 327
- 1
- 4
- 15
14
votes
1 answer
Is there a simple way to export/import firewalld settings?
Is there a simple way to export/import firewalld settings? I'd like to set firewalld on one server an then use the same for a lot of others. Including adding custom zones, direct rules etc.

ludek michera
- 153
- 1
- 1
- 7
13
votes
3 answers
How to `Graceful Restart Apache` in centos 7?
My system is centos 7.4, with apache 2.4
Based on apache manual,apachectl -k graceful should be the way to graceful restart apache, but I got notice as below:
[root@localhost root]# apachectl -k graceful
Passing arguments to httpd using apachectl is…

kittygirl
- 945
- 5
- 13
- 33
13
votes
2 answers
HAproxy health check for https backend
I have haproxy configuration that works perfect for vault server in the backend with http configuration and it load balance based on unsealed and active vault server using 200 OK code. This works for http. But we make everything to be https (tls)…

Jayabalan Bala
- 311
- 1
- 2
- 8
13
votes
2 answers
How to remove a yum repo GPG key?
I have a custom RPM repo in Artifactory, and GPG signing keys were recently enabled.
When I ran sudo yum check-updates I was prompted to add the key:
Retrieving key from https://artifactory.example.com/myrepo/repodata/repomd.xml.key
Importing GPG…

cherdt
- 405
- 2
- 4
- 13
13
votes
1 answer
Systemctl: find out which commands are applicable for a service
How do I find out which commands are applicable for a service with systemctl?
# systemctl reload nagios.service
failed to reload nagios.service: Job type reload is not applicable for unit nagios.service.
With init.d you could run the script without…

Lerkes
- 191
- 1
- 1
- 7
13
votes
3 answers
Apache's PidFile directory is removed every boot
Every time the server is rebooted, the directory /run/httpd is removed. /run is a tmpfs filesystem, therefore, mounted in RAM.
/run/httpd is created only during installation. When I start httpd after reboot, the directory isn't recreated.
Server has…

João Olavo Vasconcelos
- 321
- 2
- 7
13
votes
2 answers
Why isn't systemctl starting redis-server on CentOS 7?
I've installed redis on a new CentOS 7 box but can't start it using systemctl.
It was installed like this:
rpm -i http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm
yum install redis
Attempting to start it like this…

Zubin
- 509
- 1
- 4
- 9
12
votes
1 answer
Accidentally deleted python and yum is not working in centos7
I am new to linux and was trying to delete python so I can install it from scratch. Instead of deleting only the python files in /usr/local/bin/ I also deleted…

jdhash
- 121
- 1
- 1
- 3
12
votes
8 answers
Vgextend : "device excluded by a filter"
I am at a new internship and I am asked to extend a volume group, seemed fine :
vgextend [my_group] /dev/sdb
But now I get an error message telling me :
Device /dev/sdb excluded by a filter`
Could anyone help me figure out what when wrong, or…

Tibor BERNARD
- 123
- 1
- 2
- 9
12
votes
3 answers
What is the meaning of the IPv6 config options in CentOS 7?
What exactly are the meanings of the following settings when manually configuring network interfaces on CentOS (I'm trying to configure an IPv6 only host)?
I can guess what some of them mean by their name but I don't know what all of them mean (and…

jwbensley
- 4,202
- 11
- 58
- 90
12
votes
4 answers
How to move disk space from centos-home to centos-root
I have a VM with 1 280GB disk. For some reason my layout is:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 50G 21G 30G 41% /
devtmpfs 5.8G 0 5.8G 0% /dev
tmpfs …

GodAtum
- 317
- 1
- 3
- 11
11
votes
1 answer
Force chrony time check
Context:
Centos 7.0
chronyc (chrony) version 3.1 (+READLINE +IPV6 +DEBUG)
Issue
I want to find a way to force chronyd to change the hardware clock
instantly without waiting.
The program chronyd is currently running on my machine :
[root@localhost…

Orelsanpls
- 213
- 1
- 2
- 7
11
votes
1 answer
How can I add a default gateway with the ip command, not the route command?
I want to set a default gateway using the ip route command, since I'm under the impression that ip is newer and preferred. If I'm not mistaken, ip is included in a minimal CentOS installation and not route.
What's the equivalent of route add default…

royco
- 573
- 3
- 8
- 17