CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat.

learn more… | top users | synonyms

1
vote
0answers
17 views

Pinning packages in RH SpaceWalk on Centos 7?

Is there any way to pin rpm packages to versions in SpaceWalk? We have kernels running on rare hardware, compiling the kernel is a pain and we don't want or need to do it any more often than major ...
0
votes
1answer
55 views

Cloudlinux + CageFS + PHP Selector - how to update default php.ini for each PHP version or for each domain account?

My server runs Cloudlinux 5.11 with CageFS and PHP Selector. Default PHP version is 5.3. I have one account using PHP 5.3, one account using PHP 5.5, and one account using PHP 5.6. I'm trying to ...
0
votes
0answers
13 views

Adding mfa verification code to ssh command?

Im trying automate the login process using shell script. I got MFA + pub key authentication working. However Im stuck at how to pass verfication code as a parameter to ssh command. I tried go ...
0
votes
1answer
28 views

Establishing new IP address when launching multiple instances of the same Oracle VirtualBox image

I've created a new Oracle Virtual Box image and exported it to an "Open Virtualization Format Archive" (ova file). The original image used "NAT" settings. I've since changed it to "Bridged Adapter" ...
0
votes
1answer
55 views

Can't open port

I can't open port 25 and 587. Background information: I am running CentOS 7 with firewalld and httpd. Now I want to run a mailserver. I started with installing postfix. Then I added firewall rules for ...
1
vote
3answers
142 views

CentOS7 Kerberos Auth: Improper format of Kerberos configuration file;

I'm working on setting up a Squid 4.0 explicit proxy for group based AD authentication against a Active Directory domain (Server 2012 R2) with SSL bumping on a minimal CentOS 7 (64b) install. The ...
0
votes
0answers
14 views

How to set up vm delay start when KVM host boot? [duplicate]

I have a KVM host server and running 6 VMs on it. When the server recovers from power failure, all the VMs always autostart at the very same time. I want to autostart one by one, preferably the ...
3
votes
1answer
168 views

Upgrade cURL to latest on CentOS 5.8

I need to update cURL on my MediaTemple DV server with CentOS. My server is running cURL version: 7.15.5 and CentOS version: 5.8 (final). I've seen commands like yum update curl, but just want to be ...
0
votes
0answers
16 views

How do you speed up an SQL query on a huge database? [duplicate]

I'm currently dealing with a table that has 30 million rows of 8 columns. I'm only selecting the columns that I need. SELECT column_a, column_b FROM table_name This is happening from a python script ...
-2
votes
2answers
60 views

How to set BIND9 with the ability to resolve internal domain addresses (CentOS) [closed]

I have some problem. I have a domain controller on windows server 2003 with dns server. IP that dns is: 192.168.110.5. For example, i have some computers with names: guard-01.piduna.pp.ua. ...
0
votes
1answer
61 views

KeepAlived on different subnets

I am trying to setup keepalived on ESXi based setup where 2 physical box have ESXi installed and each one having a node which works as load-balancer using HAProxy. Now in order to achieve high ...
0
votes
0answers
28 views

Upstart - how to convert ubuntu daemon to centos?

On Ubuntu this upstart service did a brilliant job at making sure the app always stayed running (and logged) start on started mountall respawn respawn limit unlimited exec node ...
0
votes
0answers
45 views

High RAM usage by Apache without any visitors

I have recently bought a VPS server with the below configuration Centos 6 64bit 20GB SSD 512MB RAM 512 VSwap I have hosted around 10 websites. In that 4 of them is WordPress. Others are ...
-2
votes
1answer
26 views

How we can see SElinux policies running on a centos system?? [closed]

I am given with an assignment that how we can see what selinux policies are running on a system(centos), as i am a new and dont know about the system
0
votes
3answers
38 views

Password recovery on CentOS with SSH keys

I can login to my sudo account on CentOS 5.11 VPS (through the ssh keys) , but I have to reset root password and sudo user passwords (any of these two). Is it possible and how?
0
votes
0answers
38 views

TCP Handshake failing only on outside internet access

I have an Apache webserver using https which suddenly stopped working with access from outside the internet. LAN access to the webserver is working fine. I was tracing the packets using tshark and it ...
0
votes
1answer
43 views

Nginx specific rewrite [closed]

i am confused in nginx rewrite. please help me if can..Thanks you xxxx.conf #vhost-xxxxx server { listen 80; server_name xxxx.xxxx.com; root /var/www/html; ...
2
votes
1answer
49 views

use Sudo in apache

I am using CentOS 6 and trying to call sudo in Apache using this command: exec("sudo -u kouser whoami 2>&1",$output,$code); However SElinux add a line to output array(2) { [0]=> ...
2
votes
1answer
90 views

How to use automatic Restart with Jenkins on Systemd

I have Jenkins running on a CentOS7 and it kind of crashes from time to time and I'd like to restart it automatically when this happens. Googleing a bit I've found that on Systemd you can use ...
1
vote
0answers
17 views

Garbled SSH packets, garbled HTML packets, but not in all situations

I am having a very strange problem with lost headers on packets when trying to contact a guest VM. I have bare metal running CentOS 7 and VirtualBox v.5.0.14. I then have a guest running Ubuntu 15.10 ...
5
votes
3answers
72 views

Block RSA authentication when password is expired

I'm setting up a FreeIPA server on CentOS 7, and I want to block RSA authentication over SSH when the password is expired. By default, when I expire the user password and they login, they are forced ...
1
vote
1answer
46 views

Why can't Win7 user move files, instead it just copies them on Samba share?

I'm running a CentOS server with Samba. Connected on the LAN is one Windows 7 PC and the rest are Macs and Linux. The Macs don't have this problem, but on the Windows PC when a user attempts to move a ...
0
votes
1answer
103 views

Resizing CentOS partition using parted

I am using CentOS 6.x. I would like to resize the LVM partiion, but I am little confused when I use parted to see the partition information. I have a few questions. Please look at the partition ...
-1
votes
1answer
36 views

Predict: fork: Cannot allocate memory

Using many bash parallel processes: process1 & ... process30 & Doing multiple git operations within each process randomly will produce: fork: Cannot allocate memory The system is CentOS ...
-2
votes
1answer
73 views

Why can't I install libdwarf.so.0 and libdwarf.so.1 at the same time?

I'm trying to build hhvm from source as well as install it from a package (to compare differences). When building it from source, it requires a recent version of libdwarf, so I downloaded an rpm and ...
-1
votes
2answers
71 views

Deleting folder with rm -rf [closed]

I have a folder which name is photo and it is 13gb. I checked my HDD space with df -h command and it said you have 50GB free space. Then I deleted my photo folder with rm -rf photo/ command. It ...
0
votes
0answers
73 views

configure exim smarthost on centos6.6 to use id and password for exchange

On centos 6.6 how do I reconfigure exim to send all email to a microsoft exchange. The exchange server is up and working and does not need anything else done to it. I need to have all email sent to ...
1
vote
1answer
25 views

CentOS Firewall Contingency

What happens if the firewalld service fails to start on CentOS 7? Will the network still function? Will firewall rules still be partially enforced? If the firewall rules are not enforced, is there a ...
0
votes
1answer
44 views

Gitlab rpm version

It is recommended to installed Gitlab as a Omnibus package. Packages are available for the popular deb and rpm formats. Packages are available here. There is a also script that automates ...
0
votes
2answers
70 views

Installing libevent extension for php on Centos

How to install the libevent extension for php on Centos 7? I spent many many hours trying this, googling many times and really really struggled, so I'm going to document my own answer to this in the ...
0
votes
1answer
47 views

Close ports with firewalld

I want to close all ports but 22 on interface enp0s3. I have netcat listening on port 1234 for testing purposes. Here's where I'm stuck: $ sudo firewall-cmd --state running $ sudo firewall-cmd ...
0
votes
1answer
81 views

CentOS 6.7 HA Cluster with 2 Nodes, No shared storage, No physical fence device

My attempts in realizing the setup in the question didnt produce any results over 3 full days' of research and trying. The HA services necessary are Apache which serves numerous virtual hosts each ...
1
vote
0answers
65 views

Random SSH connection timeout on first try to CentOS servers

Have got a curious issue with SSH on CentOS 6 and haven't found a solution yet. We have our CentOS 6 servers all joined to an Active Directory 2012 R2 domain using Winbind. It is not used for ...
2
votes
1answer
34 views

Determine NFS usage based on client

We have big NFS server (~50TB of data, millions of files). 12x 6TB SATA disks w/ SSD cache (MegaRAID CacheCade). CentOS 7. 1x Xeon E5-2620 Our problem is that we have ~100 processes from 6 servers ...
0
votes
0answers
26 views

PHP not sending email while CLI is sending

I am on CentOS and I have run into a problem with PHP not sending email yet command line sendmail does send the mail. The output of /var/log/maillog is: SYSERR(apache): putbody: Cannot open ...
0
votes
1answer
60 views

Varnish 4.1: Is this the proper VCL code to use default localhost unless it's unhealthy, then fallback to director?

I just wanted to make sure this is the most ideal way to accomplish this. Here's the setup: Basically we have 3 servers "balanced" by DNS Round Robin. Varnish is configured on each server with a ...
0
votes
1answer
26 views

CentOS/Apache webserver exits every few days [closed]

My Apache webserver (on CentOS7) exits every few days, resulting in all my domains getting offline - but I couldn't find out the reason so far. Can anyone give me hints on where to look? When I enter ...
0
votes
1answer
63 views

How to maintain ssh connection for multiple scp transfers?

I'm using the scp command to copy files from my local machine (ArchLinux) to my server (CentOS 6.5). But for each scp command a new connection is established and although I'm using SSH keys for ...
-1
votes
1answer
24 views

HTTPS activated, how to refuse HTTP connections [duplicate]

I recently installed an SSL certificate on my server and now HTTPS seems to work for all the pages. However, the server is still accepting connections from HTTP. How do I enforce HTTPS? I use a ...
0
votes
1answer
14 views

Tomcat7 fails to restart and log issue

I have a CentOS (CentOS release 6.7 (Final)) server running Tomcat7. I ran some updates using yum and now Tomcat will not restart. etc/rc.d/init.d/tomcat restart Stopping tomcat: ...
1
vote
2answers
49 views

CentOS Hostname on Linode

Just getting back into Linux and my first CentOS install in nine years. So I thought I would use the Getting Started Guide to augment my 'rtfm' habits. When I got to the set hostname, I noticed that a ...
1
vote
0answers
59 views

Cannot connect to remote MySQL server (RDS)

When I am trying to connect to RDS from my vps, it says connection refused. When I tried connecting it from local or other vps, it worked fine. I figured out that it must be a firewall issue on my ...
0
votes
0answers
32 views

DataTables warning: JSON data from server could not be parsed

This is my first post on ServerFault. I hope that this question is detailed enough for someone to help me. I have looked online for two days regarding, "DataTables warning (table id = ...
0
votes
1answer
29 views

How should I provide a replacement for a package in yum?

I'm writing a spec file to replace a yum package with one from our own repository. The new package will be a drop-in replacement for the original. I thought the best way to do it would be to give the ...
0
votes
2answers
31 views

varnish cache working good but creates new cache for every visitor

I have installed varnish cache in my server Caching and its TTL working good But the system create new cache object and age for every visitor How can I config the system to create one cache object ...
8
votes
1answer
94 views

How do I build a Linux environment that specifies specific versions of packages?

I am creating a dockerfile that runs a custom application that is tied to a specific version of Java. I'm using a centos7 base image because that's what an article I was referring to was using and ...
1
vote
0answers
23 views

Rate Limit for users in exim

I tried to put a limit of sending messages, based on users who are placed in a text file, using the following ACL: acl_check_limit: deny authenticated = * message = Lo sentimos, ha agotado el ...
0
votes
1answer
59 views

Mounting 40 iSCSI HP 3PAR SAN volumes in single CentOS7 server

I need to mount 40 HP 3PAR SAN volumes iSCSI LUN/target in single CentOS7 server that run nginx, each volume size is 8 TB, and that 40 mount points need to appear as single share path. Does such ...
0
votes
1answer
34 views

CentOs server intermittent long response time. [atop screenshot included]

I am in charge of a website that has about 150 unique users a day. The website hosts forms and gauge data, providing calculations and alerts. It runs well, but for some reason there are intermittent ...
0
votes
1answer
28 views

Issue with libproc (version _3_2_5 not defined in file libproc-3.2.8.so)

There is an issue with libproc it seems. There is no mem usage or cpu usage info available. See: [root@server ~]# free -m free: relocation error: free: symbol kb_main_available, version _3_2_5 not ...