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

learn more… | top users | synonyms

16
votes
4answers
11k views

Failed to instal APC via pecl install APC

Hy when i try to install APC via pecl install APC-3.1.5 or even pecl install APC I get following error when the package comes to the make command: running: make /bin/sh ...
13
votes
2answers
30k 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 ...
13
votes
3answers
866 views

CentOS /dev/bus/usb structure

On my Ubuntu 12.04 when I plug in usb device, under dev directory tree usb device is added like this: /dev/bus/usb/001/001 On my CentOS 5 added like below: /dev/bus/usb/devices/2-1.4/ lsusb ...
11
votes
3answers
19k views

How to list RPM dependencies?

Our production server is running CentOS release 5.2 (Final). How do I see/get/list all the dependencies of an already installed RPM package? For example: SQLite v3.3.6 is already installed in the ...
10
votes
2answers
8k views

High disk I/O - jbd2/sda2-8 process

I have run a file server on a CentOS 5.8 final server. My only concern at the moment is what appears to be intermittent but continuous high disk I/O activity causing a general slowdown because of ...
9
votes
3answers
313 views

Is it possible to extract last month's values from a MySQL server and build a new database from those values?

I have an assignment to build a development virtual machine template. I need to add to the server MySQL databases from each one my company's products so that new developers will have the ability to ...
9
votes
3answers
8k views

Bind zone transfer refused

UPDATE: BIND Version: [root@10.224.45.130] $ named -v BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5 Operating System: CentOS release 5.6 (Final) After running [root@10.224.45.131] $ dig @10.224.45.130 ...
8
votes
1answer
612 views

Create swap file on a running Linux machine

Our company web sites have just been moved from a shared host to a VDS, as the hosting company plans on retiring the less than completely reliable shared hosting server(s). The VDS only has 256MB of ...
8
votes
3answers
3k views

Cent OS: How do I turn off or reduce memory overcommitment, and is it safe to do it?

From time to time "my" server stalls because it runs out of both memory and swap space. (it keeps responding to ping but nothing more than that, not even ssh). I'm told linux does memory ...
8
votes
2answers
4k views

Can not switch drbd to secondary

I'm running drbd83 with ocfs2 in centos 5 and planning to use packemaker with them. Afer some time, I'm facing drbd split brain problem. version: 8.3.13 (api:88/proto:86-96) GIT-hash: ...
8
votes
2answers
405 views

FreeRADIUS 2 should use a different Python than default

We've got a FreeRADIUS 2 deamon installed on a CentOS 5.7 server. We'd like to use a pre-written Python module to do authorization but there's a problem: The Python module we've got requires Python ...
7
votes
4answers
34k views

How to save and exit crontab -e?

How to save and exit crontab -e? i tried every method listed here and none works, i have a centos 5, vi comes by default with yum and i installed nano Solved just changed the default editor export ...
6
votes
2answers
13k views

Configure domain name in CentOS

How do I configure domain names in Cent OS? I am actually connecting to the servers via SSH remote terminal and I also have root credentials. Does configuring the /etc/sysconfig/network and ...
6
votes
3answers
20k views

How do I tell what process is causing kswapd to be in use?

I see kswapd using 100% CPU... how can I tell on which process's behalf kswapd is being used so much?
6
votes
2answers
7k views

How to remove packages that are no longer needed on CentOS 5?

While installing package I get some additional packages on dependency. But when I remove installed package with yum, the dependency packages are not removed, though I don't need them anymore. How ...
6
votes
5answers
5k views

nagios Missing Dependency: perl(Net::SNMP)

I have an odd problem. I'm trying to install nagios NRPE but it keeps failing with nagios-plugins-1.4.15-2.el5.rf.i386 from rpmforge has depsolving problems --> Missing Dependency: ...
6
votes
2answers
870 views

ntlm_auth - can login in AD with both old and new passwords

I have problem with AD and ntlm_auth. I use the following command, to query the AD server for checking the user existence: ntlm_auth --use-cached-creds --username=SOME_USER --password=SOME_PASS ...
5
votes
3answers
4k views

Clear / Flush cached memory [duplicate]

I have a small VPS with 6GB RAM hosting a couple of websites. Recently I have noticed that my cached memory size is quite high - see below: Cpu(s): 0.1%us, 0.1%sy, 0.0%ni, 99.1%id, 0.0%wa, ...
5
votes
3answers
2k views

CentOS6 installation from CentOS5 box?

I am trying to build a new CentOS 6 VM from my CentOS 5 host, but it appears that something fundamental has changed between these versions: $ rpm -ivh --nodeps --nodigest --ignorearch --ignoreos ...
5
votes
3answers
15k views

where is my php installation path

I am using centos and I need to find out where is the php installation path is. Is there a command I can use to find that out. Thanks
5
votes
1answer
655 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 ...
5
votes
2answers
870 views

Timezone for cron jobs

We have a VDS running CentOS 5.5 that was created and configured with the EDT timezone. I have replaced etc/localtime with a link pointing to the Australia/Melbourne (UTC+10) timezone file. Running ...
5
votes
3answers
1k views

Why is my MPIO connection to the SAN capped at 1 Gbps when using Linux?

I'm connecting a RHEL5 box to a Dell EqualLogic PS5000X and seeing a maximum of 1 Gbps even while using MPIO with three gigabit NICs. I have all three interfaces on the PS5000X and three dedicated ...
5
votes
1answer
4k views

Too many TCP connections causes disconnections

I have a game server which runs with TCP connections. Server disconnects users randomly. I think its related with TCP settings of server. In local development environment written code can handle ...
4
votes
3answers
2k views

Which filesystem for 16TB under CentOS 5.5?

We have a PowerVault NX3100 from Dell here. I have to install a Linux Server on this system and don't know which filesystem I should use and which partition layout would be useable for the RAID with ...
4
votes
3answers
448 views

system monitoring software? [duplicate]

Possible Duplicate: What tool do you use to monitor your servers? Hi, i'm a newbie at server administration, for that my questions :P i'm needing a system monitoring software that work on ...
4
votes
5answers
11k views

Upgrade Centos 5 tot PHP 5.2 or 5.3 [recommended way?]

We are using Zend Framework and in version 2, php 5.2 will be the minimum requirement. We love CentOS and we'd like to keep using it, but PHP 5.1 just won't do anymore when developing web applications ...
4
votes
2answers
292 views

High Server Load cannot figure out why [closed]

My server is currently running CentOS 5.2, with WHM 11.34. Currently, we're at 6.43 to 12 for a load average. The sites that we're hosting are taking a lot time to respond and resolve. top doesn't ...
4
votes
2answers
12k views

How to upgrade to latest PHP, MySQL, and phpmyadmin on CentOS 5.8 (32bit)?

I have searched around on the internet and cannot find a reliable source for installing the latest versions of PHP, MySQL, and phpmyadmin on CentOS 5.8 32bit with apache. I have tried a couple times, ...
4
votes
2answers
2k views

Is this a hacking attempt? (CENTOS, NGINX log file)

Here's what I found from /var/log/nginx/error.log file. 2012/02/23 04:28:32 [error] 1704#0: *2 open() "/usr/share/nginx/html/MyAdmin/scripts/setup.php" failed (2: No such file or directory), client: ...
4
votes
1answer
1k views

iptables refuses connections to squid port on CentOS 5.5

I installed squid on a fresh CentOS 5.5 and added this rule for iptables: -A RH-Firewall-1-INPUT -m state --state NEW,ESTABLISHED,RELATED -m tcp -p tcp --dport 8080 -j ACCEPT Using this HOWOT: ...
4
votes
2answers
424 views

static web server: 32 or 64 bits?

For a webserver serving just static files (lighttpd or nginx) which is better, 32 or 64 bits? Which OS is preferable? Centos 5 or Ubuntu 10.04?
4
votes
2answers
235 views

Apache not booting, no error messages

Apache isn't booting on our production server (all of a sudden) and there are no error messages. Can anyone help me fix this or help me start debugging? init.d fails: /etc/init.d/httpd restart ...
4
votes
4answers
1k views

Configuring several IPs on centOS from different networks

So i have a plesk centos server. This server has public IPs and is hosted at a datacenter. And i have several IPs. The ones working lets say 192.168.1.50 .51 .52 192.168.1.50 is configured has eth0 ...
4
votes
2answers
814 views

SELinux & ncsa_auth in Squid

I'm trying to enable SELinux on a CentOS 5.5 server with Squid 3.1.12 that handles authentication via ncsa_auth. When I turn off SElinux everything works fine, but when I enable it, Squid crashes on ...
4
votes
2answers
739 views

Managing consistent mounting of external USB hard drives in Linux (CentOS 5)

I have configured a server with CentOS 5.2 and am now working out a backup strategy. I plan on using Amanda as the backup application. Additionally, I am leaning towards using some USB hard drives for ...
4
votes
1answer
152 views

making sure daemons are safe

So I was wondering, what steps should we take to make sure PHP daemons are safe? One of the things that I read about was assigning the daemon to run as a user with limited priveleges? But how can we ...
4
votes
3answers
756 views

Compiling kernel version >= 2.6.34 on CentOS 5: RAID set “ddf1_foo” was not activated?

I want to mount a Ceph FS on some CentOS 5 servers. Since the ceph-fuse failed with below errors: # ceph-fuse --no-fuse-big-writes -m 192.168.2.15:6789 /mnt/ceph/ ceph-fuse[7528]: starting ceph ...
4
votes
3answers
135 views

How to clear a disk entry from Linux

I have few Linux (RHEL 5.x / Centos 5.x) boxes running on KVMs, on which I used to attach and detach disks on the fly. Now the problem with EL5 versions are, when we add a disk, initially it will be ...
4
votes
1answer
2k views

Mount Mac OS X 10.7 share on CentOS?

I need to create a mount point/share on a Mac OS X 10.7.4 (non-server) machine that a CentOS 5.2 box can mount. I've searched a ton but most instances are for using a linux server and Mac client... ...
4
votes
2answers
1k views

CentOS 5.6 Update Version Of Tar

I am running CentOS 5.6 and for some ungodly reason, the version of tar is from 2004, and not compatible with the node package manager (NPM). How in the world can I update it? Is there an additional ...
4
votes
2answers
959 views

mod proxy not working on apache

I am trying to install Mod_Proxy Apache module on WHM/CPanel CeEntOS Linux Server. Here is system info: CentOS release 5.6 (Final) Server version: Apache/2.2.21 (Unix) Cpanel::Easy::Apache v3.7.2 ...
3
votes
6answers
3k views

Lightweight Linux DNS [closed]

Can anyone recommend a lightweight Linux DNS server, which would be suitable for the data center? EDIT: We speak about data-center typically within 10 - 20 servers, up to 100 at maximum. For larger ...
3
votes
2answers
3k views

How to make permanent changes to iptables of CentOS 5.5

I want to make an iptable rule permanent so if the server is rebooted I won't have to add the rule again. Specifically a rule I have related to nginx being reverse proxy of apache. iptables -t nat ...
3
votes
6answers
2k views

I think my server is being hacked. What should I do? [duplicate]

I'm not a server admin and I have very little experience in "debuging" a server. But from looking at my log files, it looks as if I'm being hacked. But I have no clue to what I should do :-/ I was ...
3
votes
4answers
297 views

Unintended rm-rf command on server

Hey Guys, I was trying to remove a directory on my server when I unintentionally ran the following command (notice the space) as root rm -rf db /* can someone tell me, in what ways this must have ...
3
votes
4answers
2k views

Apache, PHP, MySQL Work faster in Linux than Windows?

I currently develop for Drupal CMS using The Uniform Server. I also tried Xampp and WampServer. Loading each page of drupal take long more than 50 second which is really painful. My Computer is: ...
3
votes
4answers
2k views

Do i need swap memory on my CentOS vps?

Do i need a swap memory for my centos vps? Will it increase performance and if so how do i go about setting it up? I've found this link ...
3
votes
5answers
8k views

How delete the content of a directory in Centos

I need to delete all the content of a folder in Centos, but no the folder, for example I have a folder named MYFOLDER inside I have a lot of folders like FOLD_1, FOLD_2, FOLD_3, FOLD_4... etc , and ...
3
votes
2answers
7k views

Yum reports updated bash but binary still reports old version

I'm trying to update a CentOS 5 system in order to patch the bash vulnerability described in CVE-2014-6271 / RHSA-2014:1293-1, but am running into an issue. After seemingly-successfully updating bash ...