Questions tagged [centos6]

CentOS was an Linux distribution standing for "Community ENTerprise Operating System" based on "Red Hat Enterprise Linux" (RHEL). The "CentOS6" tag refers to versions 6.x of CentOS. CentOS 6 was released on November 27, 2011 and reached End Of Life on November 30, 2020.

Filter by
Sorted by
Tagged with
6 votes
1 answer
4k views

Excessive number of sleeping processes in CentOS - howto diagnose? [closed]

I have a a large number of sleeping processes, about 600, the majority of which are Apache processes. Should I kill all these sleeping processes, or will that make Apache fail completely? Why are ...
mr.soroush's user avatar
9 votes
2 answers
5k views

Is there a big difference between CentOS 6.4 to 6.2 and should I up/down-grade?

We have two separate managed web servers. One is running CentOS 6.2 and is used as a production environment for a number of sites. The second one runs CentOS 6.4, and hosts some internal applications, ...
charliefortune's user avatar
13 votes
2 answers
10k views

Persist IP address alias across reboots in CentOS/RHEL 6 using "ip" command

I've always used the ifcfg-eth0:1 alias files to create additional addresses. However, in recent rhel documentation, it states that: As the ip command of the iproute package now supports assigning ...
prl77's user avatar
  • 430
34 votes
1 answer
36k views

What's the difference between postfix/smtp and postfix/smtpd

A bit confused when reading through the logs of my smtp/mail server, I'm turning this questions to you guys. In the maillog files I'm seeing entries for postfix/smtp as well as postfix/smtpd. I can ...
Edwin Krause's user avatar
-2 votes
1 answer
4k views

How do I open custom ports in my iptables firewall? [closed]

I need IPTables, like everyone else, but I don't use it enough to really keep my knowledge complete and fresh. The setup utility in CentOS is too basic. It doesn't seem to allow me to open up custom ...
Jonesome Reinstate Monica's user avatar
35 votes
2 answers
90k views

How do I configure LDAP on Centos 6 for user authentication in the most secure and correct way?

During the last couple of days I have been using a lot of F-words, while browsing Internet for good documentation about how to setup an LDAP-server. So far I have found none, but plenty that are less ...
Arlukin's user avatar
  • 1,233
23 votes
2 answers
45k views

How do I view the contents of a SELinux policy package

As the title says, how do I view the contents of a SELinux policy package? The resulting files end with .pp. I'm running on centos 6, but I guess it's the same way on "all" distros. For example ...
Arlukin's user avatar
  • 1,233
14 votes
2 answers
50k views

Upgrade CentOS 5.x to CentOS 6.x - tips and techniques

Now that CentOS 6.0 is making its way to the various mirror sites, I wanted to solicit opinions on the upgrade process. In working with the commercial RedHat 5.6 and 6.x distributions for the past few ...
1 vote
1 answer
493 views

Apache fails silently after installation of MapServer 6.2.0

THIS QUESTION SHOULD BE MARKED AS CLOSED I've recently compiled MapServer 6.2 on a CentOS 6.3 machine, using ./configure --with-ogr=/usr/bin/gdal-config --with-gdal=/usr/bin/gdal-config --with-proj=...
grssnbchr's user avatar
  • 157
54 votes
4 answers
184k views

ipmitool - can't find /dev/ipmi0 or /dev/ipmidev/0

Based on a previous question, I installed ipmitool (yum install ipmitool). Even after a reboot, though, i get the following error when trying to run ipmitool power status: Could not open device at /...
warren's user avatar
  • 18.8k
38 votes
5 answers
105k views

Changing the maximum mail size in Postfix

When sending large email to a new CentOS6 server running Postfix as the MTA, the following message is returned: tried to deliver your message, but it was rejected by the recipient domain. We ...
warren's user avatar
  • 18.8k
22 votes
3 answers
60k views

How do I upgrade to the latest PHP version in CentOS with yum?

I found some blog posts about this, but it's rather lack of descriptions on possible side effects. I could really use some detailed on these steps: How to add a repo that provides PHP 5.4 into yum ...
Vicary's user avatar
  • 333
8 votes
1 answer
52k views

Failed to retrieve directory listing in Filezilla connecting to vsftpd

newbie here. At first I was unable to connect to vsftpd but I added port 21 in iptables (i'm running on Centos 6) and managed to make it work. But now, I can't get past Command: LIST in Filezilla ...
AJ Naidas's user avatar
  • 199
2 votes
1 answer
3k views

Specifying a Postfix Instance to send outbound email

I have a CentOS 6.5 server running Postfix 2.6x (the default distribution) with five public IPv4 IPs bound to it. Each IP has DNS and rDNS set separately. Each uses a different hostname at a ...
Catherine Jefferson's user avatar
1 vote
1 answer
4k views

Nginx tries to run on port 80 but the configs have been removed

I have a server that runs nginx with varnish. I cannot run nginx and varnish at the same time as the they are both trying to listen on port 80. nginx is configured to listen on port 8080 ...
Bridgewater's user avatar
43 votes
2 answers
89k views

CentOS /usr/local/lib system wide $LD_LIBRARY_PATH?

I install custom software in /usr/local/lib. How do I set the PATH and LD_LIBRARY_PATH in CentOS 6 system-wide to use /usr/local/lib. I realize there may be more than one way. What's the simplest and ...
unixman83's user avatar
  • 1,952
33 votes
5 answers
75k views

How do I change timezone in centos 6.2?

Here is the output of my date command: [root@r1304 ~]# date Wed Apr 18 15:43:28 GST 2012 I want to change the default system timezone to Asia/Dubai. I've followed a tutorial and did this: ln -sf /...
Temnovit's user avatar
  • 1,127
19 votes
3 answers
7k views

Should I be worried that yum update suddenly wants to update well over 100 packages on my CentOS 6 system?

I get an email alert whenever there's something to update, and typically do them that day. This tends to happen most days. For whatever reason I've had no alerts since 20th July until today (I ...
Codemonkey's user avatar
  • 1,138
14 votes
2 answers
4k views

HP DL380p Gen8 (p420i controller) I/O oddity on XFS partitions

On DL380p gen8 servers using XFS on top of LVM on top of raid 1+0 with 6 disks, an identical workload results in a ten-fold increase in disk writes on RHEL 6 compared to RHEL 5, making applications ...
Dennis Kaarsemaker's user avatar
8 votes
5 answers
45k views

How do I Control the Ordering of Network Interfaces?

I'm attempting to configure a machine with 3 NICs, the first two are built-in GbE controllers, the third is a 10GbE controller. Via NetworkManager, I've configured the 'first' GbE NIC (which at the ...
Andy's user avatar
  • 215
7 votes
3 answers
37k views

SSH sessions terminate abruptly with message: Corrupted MAC on input. Disconnecting: Packet corrupt

We have a Dell PowerEdge 840 Server running CentOS 6.0 64 bit with 2GB ECC memory. When any user sshs in, after some time the session gets terminated with the output: Corrupted MAC on input. Packet ...
rchhe's user avatar
  • 676
5 votes
2 answers
4k views

Modify XFS filesystem creation parameters during kickstart installation

I'm streamlining the kickstart process for a series of EL6.2 (RHEL, CentOS, SL, etc.) systems. I'd prefer to use XFS over ext4 for the growth/data partition. However, I'd like some control over the ...
ewwhite's user avatar
  • 198k
5 votes
6 answers
5k views

Reloading a kernel "live" in CentOS / RHEL 6

When upgrading the kernel package on CentOS or RHEL 6, is it possible to load the new kernel without rebooting? My gut tells me it's not, but if it were, it'd be handy - especially when compiling ...
warren's user avatar
  • 18.8k
3 votes
3 answers
7k views

Safely update php 5.3.3 to >=5.3.4 on centos 6

Would the following works fine without any issues? I have apc cache installed, the other packages the usual php configuration. yum update php would that be enough? it is an active server, so want ...
Dreaded semicolon's user avatar
2 votes
1 answer
4k views

LDAP Login fails, but su to ldap users works

I have a new ldap setup and I am trying to login, either directory to the machine or remotely over SSH. When I try to actually login, my authentication fails. If I login with a local user, (root), ...
Tom's user avatar
  • 21
2 votes
1 answer
11k views

Howto enable SMPTS (465) postfix CentOS

I need help is enabling SMTPS. I use postfix , dovecot with MySQL(virtual domains). I do not know how to enable SMTPS(465). I already added tls related settings and key and certificate in the "/etc/...
Abdul's user avatar
  • 85
2 votes
4 answers
31k views

How to install php56 on CentOS 6 x86_64

When I run yum install php php-devel php-mysql php-gd php-mbstring, it will install php5.3. yum list installed *php* Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile ...
shin's user avatar
  • 333
2 votes
4 answers
27k views

CentOS & moving /var to a new disk/partition

Slightly older system, roughly 2 years old. Running CentOS I'm noticing I have /var using a lot of space, and it's all good stuff...so deleting space isn't the answer. Is there any easy/safe way to ...
Will Ashworth's user avatar
83 votes
3 answers
144k views

What does that mean: packages excluded due to repository priority protections

When updating with yum i recieve the following message: yum update Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * atomic: www7.atomicorp.com * base: mirror....
mate64's user avatar
  • 1,691
70 votes
9 answers
58k views

gpg --gen-key hangs at gaining enough entropy on centos 6

Trying to generate a key for a server. gpg --gen-key We need to generate a lot of random bytes. It is a good idea to perform some other action (type on the keyboard, move the mouse, utilize the ...
stormdrain's user avatar
  • 1,469
58 votes
7 answers
79k views

PECL command produces long list of errors

Currently running PHP 5.4 on CentOS 6.5. I installed the webtatic php55w package then installed PEAR+PECL without issue along with redis and mongo through PECL. Shortly after, I realized 5.5 is not ...
eComEvo's user avatar
  • 1,041
49 votes
8 answers
130k views

ls hangs for a certain directory

There is a particular directory (/var/www), that when I run ls (with or without some options), the command hangs and never completes. There is only about 10-15 files and directories in /var/www. ...
Jake Wilson's user avatar
  • 8,934
19 votes
3 answers
47k views

How do you set a DATE variable to use in a log for crontab output?

I was playing aroudn with some variations of date like DATE = $(date) but that didnt work either crontab -e CRONLOG=/tmp/log/crontab.log DATEVAR=`date +20\%y\%m\%d_\%H\%M\%S` * * * * * echo $...
qodeninja's user avatar
  • 2,783
19 votes
1 answer
21k views

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some ...
Steve Amerige's user avatar
18 votes
11 answers
56k views

CentOS 6 and locale error

I just installed CentOS 6 and whenever I login to the system via SSH remotely, I get the following error: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) When I type "locale" on ...
Cem's user avatar
  • 543
18 votes
3 answers
34k views

CentOS 6 and upstart

The new CentOS 6 comes with Upstart, replacing init. I am trying to convert an /etc/inittab file to the new upstart format. This particular server only has 15 or so inittab entries, however, other ...
Brian's user avatar
  • 1,253
16 votes
5 answers
55k views

Install PHP7 from Remi repo

I installed PHP7 from Remi repo with sudo yum -y install httpd sudo yum -y install epel-release wget http://rpms.famillecollet.com/enterprise/remi-release-6.rpm sudo rpm -Uvh remi-release-6*.rpm ...
mbalparda's user avatar
  • 273
15 votes
4 answers
44k views

In CentOS 6.x, how can I upgrade to Kernel 3.4?

I have a server running CentOS 6.2 with kernel version 2.6.32, but I need to increase my application Performance. The Kernel Version 3.4 has x32abi which can improve the performance so i want to ...
shiva's user avatar
  • 147
13 votes
2 answers
22k views

What mailer does cron use to send mail?

I am trying to debug an issue with cron not sending mail on a Centos 6 box that I did not configure. How can I determine which mailer cron is using to send mail? The crontab man page has this to say, ...
cbmanica's user avatar
  • 357
12 votes
3 answers
33k views

How do I get openldap on Centos 6 to write anything to it's log files

I don't get any information in my log file for openldap on my Centos 6 server. This is how i configured it. SELinux is disabled at the moment. First created a folder where I'd like to store the log ...
Arlukin's user avatar
  • 1,233
12 votes
2 answers
38k views

What is the correct way to load modules for iptables on Centos 6

Where should I load iptables modules, for example ip_conntrack and ip_conntrack_ftp. Places I have found that might be candidates, but are they? The IPTABLES_MODULES variable in /etc/init.d/iptables ...
Arlukin's user avatar
  • 1,233
11 votes
3 answers
25k views

OOM killer killing things with plenty(?) of free RAM

The OOM killer seems to be killing things despite having more than enough free RAM on my system: (Full resolution) (Full resolution) 27 minutes and 408 processes later, the system started ...
Kyle Brantley's user avatar
11 votes
1 answer
13k views

Jenkins: Trying to add a dumb slave but the option is missing, any idea how to add it?

I've installed Jenkins 2.x on a server and now I'm trying to add a "Dumb slave" but the option is missing. In this official Jenkins tutorial it says that when creating a new node the option should ...
Itai Ganot's user avatar
  • 10.8k
10 votes
1 answer
41k views

Use apache as a HTTPS to HTTP Proxy

I'm trying to configure Apache on Centos 6 to proxy and reverse proxy traffic to an http server of a third party provider. The setup should work like this: https://mydomain.com/proxy/ proxies all ...
james_t's user avatar
  • 203
10 votes
1 answer
14k views

where does RPM install custom GPG keys?

Where does CentOS/RHEL 6 store custom GPG keys? I thought /etc/pki/rpm-gpg but I installed nginx's key but unable to find it. I see it was imported properly but where is it? wget http://nginx.org/keys/...
user1973314's user avatar
9 votes
3 answers
49k views

Is subscription-manager available for CentOS?

I'm trying to fix my updater to point to a specific release. Is the subscription-manager for RedHat only? I don't see it in my CentOS 6.3 (yum) repository.
jcalfee's user avatar
  • 351
8 votes
1 answer
2k views

Block outgoing connections for certaing uids (root, apache, nobody)

With iptables in CentOS 5 and 6 Linux - how can you please prevent processes running as root, apache or nobody from initiating outgoing connections? On CentOS 5 Linux I've tried putting these lines ...
Alexander Farber's user avatar
8 votes
6 answers
42k views

Trying to understand the correct way to create a static route in CentOS, please assist

I've been trying to understand what's the correct way to add a static route on a CentOS 6.x machine. In some forums they say to create a file named route-dev_name (for example route-eth0) with the ...
Itai Ganot's user avatar
  • 10.8k
7 votes
5 answers
31k views

Why is dhclient issuing a unicast DHCPREQUEST every ~15 seconds instead of at T1/T2 timers?

I am running a CentOS 6.2 server as my gateway and firewall, while also providing some internal services. This is a setup I have had for years using various hardware and distributions (redhat based). ...
user1146281's user avatar
7 votes
1 answer
10k views

Processing Conflict: mysql55w-libs-5.5.36-3.w6.x86_64 conflicts mysql-libs < 5.5

I'm trying to install the latest webtatic MySQL 5.5 edition via yum (http://webtatic.com/packages/mysql55/) on CentOS 6.5 but every time I try I get the following output ending in error: # yum ...
eComEvo's user avatar
  • 1,041