Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [centos7]

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. ...

0
votes
0answers
4 views

Firewall Kubernetes using Calico

I've created a Kubernetes cluster with calico as network plugin. It's working fine. Now I try to setup the firewall. What rules do I need for calico? I can only find rules for flannel. At the moment ...
0
votes
1answer
16 views

Systemctl: Java not found! when using systemctl

I am using CentOs 7.5.1804 and have a problem with a service. When i start my service with systemctl it fails with the message which: no java in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin) ...
0
votes
1answer
19 views

mariadb service script doesn't create /var/run/mysqld

I have issues starting a MariaDB service on a Centos 7 server, because the directory /var/run/mysqld/ is not created by default, as well as the /var/log/mysqld.log file. Creating this directory and ...
0
votes
0answers
9 views

Maximized window bigger than display on CentOS 7.5 with vncserver

im running into a problem on a CentOS 7.5 machine with the default vncserver (TigerVNC). Everything is working fine, except one visual flaw: the maximized size of the display is unequal to the actual ...
0
votes
0answers
15 views

ldap users are not able to login in centOS 7

i'm not able to login using ldap user, getting authentication failure. here are some o/p's - please let me know if anything is required. [root@server01 pam.d]# getent passwd testuser testuser:*:...
1
vote
1answer
20 views

Failing to PXE Boot UEFI Server

I've been having a lot of issues with UEFI boots lately. I have two VMs that I've been using for testing. One is running DHCP/TFTP (CentOS 7) and the other is a client set to UEFI boot. I have ...
1
vote
1answer
31 views

How can I find disk space usage?

I have a Ubuntu docker run on CentOS host in Google Cloud. The docker runs a spring-boot application used for image uploading to S3. I do not save anything on local disk. Every 2 weeks or so, I have ...
0
votes
0answers
14 views

How can I set templates and apply different condition?

I try to set rules of rsyslog that make following rule: 1. my programs send log to local0 2. log file store in directory by program name and filename has time information So I write following rule ...
0
votes
1answer
39 views

How to add more disk space to “/” folder centos

By check fdisk -l I see (more than 900 GB) fdisk -l Disk /dev/sda: 959.7 GB, 959656755200 bytes, 1874329600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 ...
0
votes
1answer
27 views

php error installing imagick

System - CentOS 7.5.1804 PHP Version - 7.0.3 So, I'm trying to install Imagick in order to be able to render/make an image off the first page of a PDF. I'm tried to understand how it is setup, but ...
-1
votes
0answers
10 views

vps XFS corruption [closed]

please help, what could it be? enter image description here enter image description here
0
votes
0answers
29 views

How to upgrade apache httpd to latest version (2.4.34) on Centos 7.5.1804?

Is there a "simple" way to upgrade Centos 7.5.1804's version of httpd in order to support http/2? Currently running Apache/2.4.6 and PHP 7.0.30. For this production server, compiling from source is ...
0
votes
0answers
21 views

Ubuntu 16.04 guest virt-install on CentOS 7 libvirtd server “Unreachable gateway”

I'm trying to (automatedly) virt-install an Ubuntu 16.04 guest on a CentOS 7 libvirtd with a kickstart file. The Ubuntu guest is to have two interfaces which are mapped to two bridged interfaces on ...
1
vote
0answers
30 views

iptables stopped translating DNS packets?

# iptables -t nat -S ... -A PREROUTING -d 217.xxxx/32 -p tcp -m tcp --dport 53 -j DNAT --to-destination 10.x.x.9 -A PREROUTING -d 217.xxxx/32 -p udp -m udp --dport 53 -j DNAT --to-destination 10.x.x.9 ...
0
votes
1answer
54 views

X server session of CentOS7 freezes when cat-ing (or any other print) of a lot of data through ssh

The specs of my system is CentOS7 with Cinnamon GUI. I usually work with a server so I almost always have a lot of sessions of ssh -X running. If I try to do anything that will print a lot of data on ...
0
votes
1answer
38 views

Moodle: Error during Installation

I am trying to install Moodle and everything seems fine but then when it comes to Admin user creation process, it seems as there is no CSS file, and "update profile" button does not perform any action....
0
votes
0answers
23 views

How to change hostname localhost to example.com and access it from another Machine in network when tomcat is hosted on centos7

I have installed tomcat 8 on centos7 having IP 10.208.27.152 web.xml is as follow:: <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" ...
4
votes
4answers
2k views

How to secure servers from a cgi-bin/php POST request attack

We got a POST request to our server with the following in it: %63%67%69%2D%62%69%6E/%70%68%70?%2D%64+%61%6C%6C%6F%77%5F%75%72%6C%5F%69%6E%63%6C%75%64%65%3D%6F%6E+%2D%64+%73%61%66%65%5F%6D%6F%64%65%3D%...
0
votes
0answers
7 views

Disabling mod_autoindex dies on autoindex.conf being replaced

I was hardening my webserver - CentOS 7.5.1804, httpd 2.4.6_80 - and followed the myriad of examples that suggested disabling mod_autoindex. (see Commenting out "LoadModule autoindex_module modules/...
-1
votes
0answers
21 views

RHEL 7: record all sftp activity from a specific user only

I am trying to configure the rsyslog to record all the sftp activity from a specific user. At the moment, the sftp activity is recorded from all users that use this protocol. cat /etc/rsyslog.conf |...
-1
votes
1answer
70 views

Can not NAT from IP routed via VPN

I have a linux server running Centos7 that uses a VPN to route to a public IP homed in a remote network. I want to NAT from an IP address on that remote network to a local subnet over a VPN connection ...
0
votes
2answers
94 views

How to configure <Location> Directive specific to a Location/Directory on Apache Server and not on Server Level?

I am new to Apache Server Configuration. I went through the Apache Documentation and tried to understand the Basics as well as the Directives. But still, I am not able to figure out a configuration ...
0
votes
0answers
9 views

How do I make my backspace key functional in a bash script for Linux being accessed remotely from Windows? [migrated]

I have a bash script on CentOS 7.4 with the following line that lets a user input a variable and then lets them confirm that what they entered is indeed correct: read -p "Enter the name of the ...
0
votes
1answer
20 views

Centos 7 / MariaDB, 1gig DigitalOcean Droplet high traffic kills MySQL [duplicate]

I have a Centos 7 / MariaDB, 1gig DigitalOcean Droplet with 2 low traffic Wordpress sites on. When the server gets approx 15 concurrent users MySQL runs out of memory and drops. Log below: 180806 14:...
1
vote
0answers
36 views

CentOS 7 kickstart hangs

I'm trying to install CentOS 7 using kickstart. I created a bootable USB key containing a modified ISO. I'm not able to launch a regular installation with the inst.ks parameter. I precise that the ...
0
votes
1answer
36 views

Unable to start VNC server: configured resource limit was exceeded

VNC service was working fine until a recent power outage. When I try to run systemctl start vncserver@:1.service it gives a message as Job for vncserver@:1.service failed because a configured ...
0
votes
1answer
37 views

Why won't firewalld install?

I am trying to get firewalld running on a centos 7 machine. I know the service is installed from yum: yum install firewalld Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached ...
2
votes
1answer
42 views

Why is my ssl certificate self signed?

I followed the following steps to install an ssl-certificate on a website; https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-centos-7. However, the website is ...
0
votes
0answers
10 views

How to regenerate the initrd for an ovirt node manually via shell?

While deploying gluster on an existing ovirt cluster I was forced to create a new initrd because there was a config change in /etc/multipath.conf. So I did a dracut -f to regenerate the initrd. Turns ...
0
votes
0answers
10 views

Configure logwatch on CentOS 7 with apache httpd behind CloudFlare

How do I get logwatch to output the IP addresses that probe my http server? It does not seem to output IP addresses although they are shown in the apache logs. ################### Logwatch 7.4.0 (03/...
0
votes
1answer
16 views

vsftpd error 530 Login incorrect error occurs with valid credentials

Though there are a number of similar existing question/answers that reference vsftpd and error code 530, but they do not seem to be helpful in this case: vsftpd login error: 530 VSFTPD 530 Login ...
0
votes
2answers
38 views

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 ...
0
votes
0answers
8 views

CentOS 7 kickstart arguments

How to pass arguments to a kickstart installation procedure on CentOS 7? I need to install multiple servers that have similar configuration except some differences that I would like to pass to ...
0
votes
0answers
18 views

managing a process with supervisord instead of sytemctl

I have a VPN service that I would like to manage through supervisord. When the VPN service installs itself, it makes an entry in /etc/systemd/system/pgateway.service. Contents below: [Unit] ...
1
vote
1answer
49 views

Vsftpd user authentication

I've set up a virtual machine running Centos 7 and VSFTPD. VSFTPD is working great when connecting with local users. It chroots the user into his previously created home in /ftp/pub/{user_name} with ...
0
votes
0answers
16 views

Crontab is not working in centos 7 [duplicate]

I am trying to setup crontab in my centos 7. I have /etc/crontab file is like below. SHELL=/bin/bash PATH=/sbin:/bin:/usr/sbin:/usr/bin MAILTO=root */5 * * * * root /php /root/Downloads/chat/pass.php ...
0
votes
1answer
48 views

CentOS 7: sshfs can't find fuse, even though fuse is loaded

When I try to run sshfs, I get the error fuse: device not found, try 'modprobe fuse' first. I already ran sudo modprobe fuse, but it just returns immediately without any output and the error persists: ...
0
votes
1answer
33 views

MySQL not finding database/tables through symlink

In my installation of MySQL the database files are located in ./var/lib/mysql. I wanted to move one of those databases to another drive, so I followed instructions to move one database to a different ...
0
votes
0answers
61 views

CentOS VLAN tagging is not working

I am trying to enable two VLANS in CentOS 7 and following the article of Redhat. 1.Configure the parent interface in /etc/sysconfig/network-scripts/ifcfg-em1, where X is a unique number corresponding ...
0
votes
1answer
52 views

how to stop dns amplification attack from my server

We have dedicated server with centos7. For last 3 days we are receiving Abuse reports that saying 'we detected the following DoS attack with DNS related pattern.' And the source is our server. How ...
0
votes
1answer
33 views

logstash won't run as a service

Ive installed logstash v6.3.2 via yum on CentOS7. When I start it via systemctl start logstash it appears to start properly but then exits almost immediately. There are no (apparent) errors shown. (...
-2
votes
1answer
45 views

Get differences between two server paths (one remote) and sync differences

I would like to sync two paths on demand (not automatically) on two CentOS servers. The goal is to send files from server A to server B if they are different. It's about 1 gig of data in text files (...
0
votes
0answers
8 views

start service after GLB (Galera Load Balancer) has started

On CentOS 7, the goal is to start a service after the glb service has started. The problem is that glb.service not a native service when I run systemctl enable glb glb.service is not a native ...
0
votes
1answer
36 views

Write permission error in /tmp in python call to MySQL on Centos 7

I have a python (3.6 anaconda distribution) scrip on Centos 7 which at some point executes a simple query of the following structure import MySQLdb cursor = cnn.cursor() # cnn is the open ...
0
votes
1answer
66 views

openscap and CentOS 7 OVAL definitions

I'm using the Redhat cve reports to run OVAL scans against CentOS 7. I'm trying to understand if the results are accurate, or if I should be doing it differently. If I run an OVAL report like this: ...
1
vote
0answers
25 views

`systemctl show` outputs incorrect MemoryCurrent value

on one box, systemctl show get an incorrect value for unit memory usage: $ systemctl show crond | grep MemoryCurrent MemoryCurrent=18446744073709551615 18446744073709551615 == UINT64_MAX, this must ...
0
votes
1answer
20 views

XFS fs does not mount on boot but mounts ro ok from cli

I have a server with a LSI raid controller. The server shows two devices sda and sdb. sdb is not partitioned but has a xfs fs formatted directly (i don't know why) into it. We decide to reboot it ...
0
votes
0answers
8 views

Resolving input/output error in virtualenv

I know what the issue is, but just not sure the best way to approach fixing it. These are the steps I take when the issue occurs. Launch virtualenv not using sudo or being root Serve Django/React ...
0
votes
0answers
16 views

Want to share multiple remote season(VNC) on Centos7 for same user

I have enabled VNC server in centos7 GUI and able to access remotely. But when I take another remote season, it connects with the existing one. I want to create another season for the same user, so ...
0
votes
0answers
30 views

Having trouble running supervisord using systemctl (systemd)

I am unable to get supervisor to successfully run via systemctl. I am running Centos 7.5 I install supervisor with sudo pip install supervisor $ supervisor -v: 3.3.4 $ which supervisord: /usr/bin/...