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

53
votes
2answers
11k views

Why is it so difficult to upgrade between major versions of Red Hat and CentOS?

"Can we upgrade our existing production EL5 servers to EL6?" A simple-sounding request from two customers with completely different environments prompted my usual best-practices answer of "yes, but ...
23
votes
6answers
12k views

Log all commands run by admins on production servers

It is company policy for admins to login to the servers via a personal username, and then run sudo -i to become root. Upon running sudo -i, sudo will create an environmental variable called ...
20
votes
4answers
56k views

How to configure vsftpd to work with passive mode

Whenever I install vsftpd on centos, I only setup the jail environment for the users and rest is default configuration of vsftpd. I create user and try to connect with filezila ftp client but I could ...
14
votes
7answers
13k views

How can I determine what is taking up so much space?

I was using df -h to print out human readable disk usage. I would like to figure out what is taking up so much space. For instance, is there a way to pipe this command so that it prints out files that ...
40
votes
5answers
21k views

Allow SFTP but disallow SSH?

I'm starting a very little hosting company for a few friends and little clients, nothing big. I want to give my "clients" the right to manage their files on the server. I hate FTP as it is not secure ...
31
votes
1answer
7k views

Why are my XFS filesystems suddenly consuming more space and full of sparse files?

I've run XFS filesystems as data/growth partitions for nearly 10 years across various Linux servers. I've noticed a strange phenomenon with recent CentOS/RHEL servers running version 6.2+. Stable ...
4
votes
3answers
5k views

How to diagnose causes of oom-killer killing processes

I have a small virtual private server running CentOS and www/mail/db, which has recently had a couple of incidents where the web server and ssh became unresponsive. Looking at the logs, I saw that ...
25
votes
13answers
7k views

Linux IO monitoring per file?

I am interested in a utility or process for monitoring disk IO per file on CentOS. On Win2008, the resmon utility allows this type of drilldown, but none of the Linux utilities I have found do this ...
20
votes
3answers
37k 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 ...
14
votes
4answers
4k views

Managing an application across multiple servers, or PXE vs cfEngine/Chef/Puppet

We have an application that is running on a few (5 or so and will grow) boxes. The hardware is identical in all the machines, and ideally the software would be as well. I have been managing them by ...
30
votes
2answers
69k 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 ...
24
votes
12answers
107k views

How to find out details about hardware on the Linux machine?

-i.e - how to get a full list of hardware components in command line (on a machine with no window system) Thank you.
6
votes
2answers
9k views

Setting up Exim to forward mail

I'm trying to setup Exim on a fresh CentOS install so that it will receive mail for a collection of given addresses, and forward the mail respectively to another address. For example, receiving mail ...
1
vote
3answers
3k views

Disable access logging for domains. (Using CentOS & Apache)

I am trying to disable access logging for domains on my dedicated server for over 10 HOURS. I read over 70 pages while I'm searching. I asked on Parallel's forum, I asked stackoverflow in another ...
18
votes
11answers
28k views

Disable local delivery in Sendmail

I am using Sendmail on a Centos server to send email for PHP scripts, but the problem is that mail is delivered to a local mailbox on the machine rather than what is specified in the MX records for ...
7
votes
1answer
26k views

Configure Postfix to send/relay emails Gmail (smtp.gmail.com) via port 587

Using Centos 5.4, with Postfix. I can do a mail foo@gmail.com subject: blah test . Cc: and the msg gets sent to gmail, but it resides in the spam folder, which is to be expected. My goal is to ...
18
votes
2answers
42k views

Allowing FTP with IPTables

My current scenario involves allowing various rules, but I need ftp to be accessible from anywhere. The OS is Cent 5 and I am using VSFTPD. I can't seem to get the syntax correct. All other rules ...
9
votes
8answers
32k views

How do I install PHP 5.3 on CentOS?

I have to install PHP 5.3 on my CentOS server. If I do yum install php, the base repository installs 5.1.6 which is too old for the applications I need to install. So I've been trying to use the IUS ...
6
votes
3answers
31k views

CentOS 5: How to resolve php53 RPM dependency conflict with php-foo and php-common?

We are running a CentOS 5.6 system, and want to install php53 with php-mcrypt. However, this introduces a dependency conflict between php-common & php53-common. Does anyone have a good workaround ...
5
votes
4answers
739 views

Recovering from bad chown command

I was going to change the ownership of a directory to apache:apache, but I ended up running: chown -R apache:apache / Bad! Very bad! I knew what was going on when it started saying: chown: ...
3
votes
8answers
5k views

MySQL is running VERY slow on CentOS 6x (not 5x)

I have two servers: a VPS and a laptop. I recently re-built both of them, and MySQL is running about 20 times slower on the laptop. Both servers used to run CentOS 5.8 and I think MySQL 5.1, and the ...
1
vote
1answer
2k views

Newer GLIBC for RHEL/CentOS 5.x

I have a situation where a group of developers is attempting to deploy a binary application to a series of RHEL 5.5 and CentOS 5.5 servers. Unfortunately, the application was developed on another ...
3
votes
2answers
2k views

Iptables port forwarding on OpenVZ CEntOS container

I am trying to setup a simple port forwarding on an OpenVZ container that is running CentOS 5.5. When I run a command I get errors. iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT ...
2
votes
2answers
4k views

How to log on MySQL on CentOS 6.3 using root account from the domain and not localhost?

I don't know if I'll make the issue clear, but I've installed MySQL on CentOS 6.3 using root account on a specific domain (f.ex. root@mydomain), but when I try to log on to it I'm being asked for ...
0
votes
1answer
1k views

Hacked CentOS 5 server - possible rootkit installed? [duplicate]

Possible Duplicate: How do I know if my Linux server has been hacked? My server's been hacked EMERGENCY I am running CentOS 5.3 and here is the result of "chkrootkit": Possible t0rn ...
102
votes
16answers
86k views

How do you install Node.JS on CentOS?

I've found numerous installation instructions for Node.js but they all seem so complicated -- I'm not a super sys admin but I can get around. I have yum on the system, but I didn't find any node.js ...
18
votes
4answers
2k views

Monitoring production server [closed]

Hey all, We have 3 dedicated server, splitted in several VPS using openVZ. We're using munin to monitor the VPS with the production sites, and monit on some one of the VPS to make sure it restarts the ...
11
votes
3answers
1k views

The A to Z of setting up a Linux box for secure local hosting

I am in the process of reinstalling the OS on a machine that will be used to host a couple of applications for our business. The applications will be local only; access from external clients will be ...
9
votes
2answers
3k views

CentOS 6 doing lots more IO than CentOS 5

I'm benchmarking an application on two identical servers, one is Centos 5.8 and the other is Centos 6.2. My application is running much slower (50% or less) on the Centos 6.2 machine. In attempting ...
6
votes
4answers
2k views

Record everything on command line centos /fedora/ ubuntu

we are 100% Linux user across the network and we do work round clock, what happens shift change next admin come to his shift on that time what all issues comes he get resolve the issues but they just ...
17
votes
3answers
2k views

useradd not encrypting passwords in /etc/shadow

I stumbled accross this problem when trying to create new FTP users for vsftpd. Upon creating a new user with the following command and attempting login with FileZilla, I would get an "incorrect ...
8
votes
2answers
387 views

Do old package versions in CentOS mean that they do not have security fixes?

We asked our admin to update SVN on our CentOS 6.5 server. He did so and the result was SVN 1.6.11. However the current version of SVN is 1.8.9. I know the CentOS yum repository is not always ...
8
votes
3answers
14k views

How to Upgrade PHP to 5.4.10 on CentOS 6.3

# cat /etc/redhat-release CentOS release 6.3 (Final) # php -v PHP 5.3.3 # yum update php No Packages marked for Update How do I upgrade to the latest version PHP 5.4.10 (Current stable) ?
7
votes
1answer
4k views

CentOS 5 - realtime patch

Where can I download precompiled CentOS 5 kernel including realtime patch? Or I need to compile it myself (if yes, how to do that)?
5
votes
2answers
11k views

iptables: forward port 80 to port 8080

How can I port-forward port 80 internally to port 8080? My goal is to have a web app server (Glassfish) running on port 8080, but for the outside world to access it normally on port 80. This is ...
7
votes
2answers
16k views

Install libxml2 2.7.X on CentOS 5.X

CentOS ships with libxml2-2.6.26. I have to install at least 2.7.X version. I downloaded RPMs for libxml2, libxml2-devel and libxml2-python (2.7.8) from XMLSOFT (http://xmlsoft.org/sources/). I am ...
5
votes
2answers
2k views

How to Tee udp packets onto a different host

I would like to clone incoming UDP packets onto a different host, I found a way to do it Here but I could not build xtables-addons on centos 5.3 . Is there any other way to tee upd packets?
0
votes
1answer
90 views

Two identical files; Apache says one is forbidden

I've got this one file, favicon.ico. It's actually a large group of nested files, but purely for example, just this one. If I do cp favicon.ico favicon2.ico, Apache can read the second one just fine. ...
4
votes
2answers
300 views

Which Red Hat / CentOS updates should be applied and on what schedule?

I'm subscribed to the CentOS-announce mailing list and I've read the definitions of the various severity tags such as Critical, Important, Moderate, Low, BugFix, etc. but I'm still unclear as to what ...
2
votes
2answers
18k views

Postfix: lost connection with *somehost* while receiving the initial server greeting

I had Postfix installed on CentOS earlier (several months ago) and it was working fine. Due to the fact of the many brute-force attempts and considering that I didn't use it almost at all I shut ...
2
votes
2answers
4k views

Postfix: send all bounce messages to postmaster

The situation is that we have a number of guests, say 80, sending through a central mail infrastructure out to the web. The way the network is setup the mail server cannot necessarily initiate ...
1
vote
2answers
5k views

Centos: multiple IP addresses

I just bought 10 extra IPs from my host. How do I point these at my CentOS 5 server?
5
votes
3answers
8k views

second ip address on the same interface but on a different subnet

Is it possible in CentOS 5.7 64bit to have a second IP address on one interface (eg. eth0) - alias interface configuration - in a different subnet? Here is the original config for eth0 more ...
3
votes
2answers
1k views

Move /var to new set of disks

I currently only have remote access to this CentOS box, I need to move /var form the primary RAID to a new set of disks that was installed with more space, My current thoughts on how to accomplish ...
3
votes
3answers
10k views

How to change Linux services startup/boot order?

As the question is clear from the title, how do I change Linux services startup/boot order?
1
vote
2answers
3k views

CentOS PHP cURL NSS error 5938

Having a strange issue with cURL and PHP on a couple of CentOS boxes. Locally, I'm running CentOS 6.3. Remote is CentOS 5.9 Locally, the box receives a request, scp's a file to the remote server, ...
0
votes
2answers
330 views

High apache load but zero traffic

I have a problem with new server.. I use VPS Centos with 1GB of ram and I use wordpress CMS. The traffic <100 visitor/hour, but the apache have high load and make the server hang with zero free ...
0
votes
2answers
460 views

Centos - Automatically issue a command after rebooting

I need to automatically issue a command on my CentOS 4.8 server after it reboots and/or powers up. Can someone please tell me where I can place this? Is there a configuration file somewhere for this? ...
68
votes
11answers
11k views

How bad is it really to install Linux on one big partition?

We will be running CentOS 7 on our new server. We have 6 x 300GB drives in raid6 internal to the server. (Storage is largely external in the form of a 40TB raid box.) The internal volume comes to ...
14
votes
1answer
45k views

What does “<service_name> dead but subsys locked” mean?

I'm trying to run memcached on a centos box and it runs for a while, but then ends up in this state: memcached dead but subsys locked netstat shows this: tcp 0 0 :::11211 ...