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

2
votes
3answers
870 views

Which services to disable on a CentOs 5.8 web/database server?

I have just setup my CentOS 5.8 64 [final] server as a webserver. Specs: 2x E5620 Intel CPU, DDR3 RAM, Hardware Adaptec RAID 10, 4x SAS drives. I have installed myself: Nginx PHP-FPM MySQL ...
2
votes
2answers
15k views

Too many Bind query (cache) denied, DNS attack?

Once Bind crashed and I did: tail -f /var/log/messages I see a massive number of logs every second. Is this a DNS attack? or is there something wrong? Sometimes I see a domain in logs like this: ...
2
votes
2answers
188 views

Trouble extending disk space on CentOS 5 VM

So I am trying to extend the disk space on a VM of Centos5 running cPanel. Apparently my boss says this is easy but invariably I seem to have found a problem and cant seem to get it to play ball. ...
2
votes
1answer
503 views

'ls' taking a long time to list 20 subdirectories

I have a directory (my_dir) which has 20 sub directories. Every time I run 'ls' or try to autocomplete a file name in this directory my IO usage goes to 100% and it takes very long time (10 mins) to ...
2
votes
1answer
238 views

Firewall locks me out of ssh

Just trying to make a simple script that will configure iptables to block all incoming and outgoing traffic except for ssh on default port 22 and udp on port 8888. This is what i have: #!/bin/sh # # ...
2
votes
1answer
480 views

Can't install grub, missing sda?

all. I've been struggling with this for a few hours. Can't seem to be able to install GRUB. I'm on a VPS, and what's in /dev looks weird to me: drwxr-xr-x 7 root root 1920 Sep 3 11:51 . ...
2
votes
1answer
1k views

How to create user in Centos 5.6

I have a VPS with Centos 5.6 running on it. I have WHM gui running and create users but they have to be associated with domains. In a terminal can I create a user that is not associated with a domain? ...
2
votes
3answers
243 views

What is the equivalent of packages.debian.org for CentOS?

I have a CentOS machine that is not connected directly to the internet. I need to install some packages manually. If this were Debian I would go to packages.debian.org, search for the package and ...
2
votes
2answers
2k views

Setting up vsftpd with users locked to specific directory

I setup vsftpd, and changed the chroot settings in the vsftpd.conf file. But how do I make a user able to access only /var/www/html/username_here/ I made the user with useradd, but what's next? ...
2
votes
3answers
2k views

Where to define command in nagios

I want to define new command in nagios for remote host but i can't find out where should i write this thing define command { } on remote host i have only this file vim ...
2
votes
3answers
12k views

How to fix yum install not valid release error on Centos 5

When I try to yum install anything I get: -bash-3.2# yum install strace Loading "fastestmirror" plugin Determining fastest mirrors * dag: apt.sw.be * lxlabsupdate: download.lxlabs.com * rpmforge: ...
2
votes
2answers
64 views

Intermittent full system hang on VM server running CentOS 5.10

CentOS 5.10 / VMWare ESX 5.1 I've got an older email server running CentOS 5.10 (with SendMail) and it's experiencing intermittent hangs wherein the system becomes completely unresponsive. During ...
2
votes
1answer
4k views

apxs2 is missing so I can't install Apache mod x-sendfile

I have a CentOS 5.8 server with Apache2.4 and I want to install mod x-sendfile. I've uploaded the c file to the server and according to the instructions I should run: apxs2 -cia mod_xsendfile.c I ...
2
votes
1answer
67 views

Subversion update

I have a Subversion system running. It always does an post-commit update on /var/www by the following code: /usr/bin/svn update /var/www/. But, this is OK when I am working on an other server. I do a ...
2
votes
2answers
3k views

CentOS 5.8 - Can't login to tty1 as root after updates?

I've ran a yum update on my CentOS 5.8 box and now I am unable to log into the console as root. Basically what happens is I receive the login prompt, enter the correct username and password, and am ...
2
votes
1answer
113 views

Python multithreading not working on VPS server

I am running an python multithreaded application with multiple processes which scrapes data from some websites. While running on my localhost It works great, but on the vps server I am using( Centos ...
2
votes
1answer
1k views

My CentOS 5.7 server can't access the internet

I have a CentOS 5.7 server setup in my office. I have recently moved to a new router (Linksys E3200) and I don't seem to be able to access the web at all through it (git, yum etc.). All the other ...
2
votes
2answers
614 views

Centos server migrate to larger disk

I have a centos server that runs a whm/cpanel with mysql, apache, bind and email daemons. The server now has 95% of the server disk full. It is a dell poweredge 1950 with 2 spaces for SAS disks. I ...
2
votes
2answers
204 views

Yum update info from what version, to what version

Is there some simple yum command so I can know what is current and what is future version of package for updating. I now about: yum list updates But that only prints new version of packages...
2
votes
5answers
3k views

How can see what processes makes my server slow?

All my websites on my server are extremely slow or not loading at all. Even server admin (Plesk) will not load some times. There's been no changes to the sites for the last coupple of months. How ...
2
votes
3answers
902 views

arp table filling up

I have a CentOS 5 system which serves as an IPSec VPN connector between my network and a couple of remote networks. Lately it is running into this problem once or twice a day where its ARP cache gets ...
2
votes
2answers
6k views

How to mount Windows share on boot using mount.cifs and autofs/automount?

I'm having some trouble mounting a network share using autofs. I have added the following line to /etc/auto.master: /mnt/mountpoint /etc/auto.servername I then created the file ...
2
votes
2answers
2k views

Installed php-mcrypt but it doesn't show up in phpinfo()

I'm trying to install php-mcrypt on a CentOS 5.4 but while the extensions appears to be installed, there's nothing about it when I do a phpinfo(). For example, you can see below that php-mcrypt ...
2
votes
3answers
492 views

Can I ? - Develop C/C++ in Fedora 14 using GCC 4.4 and deploy in CentOS 5.2 using GCC 4.4

My production env runs CentOS 5.2 and 5.5 versions. I have to develop a new tool using C/C++ and deploy it on this production env. I was planning to use Fedora 14 on my desktop with GCC 4.4 to do the ...
2
votes
1answer
818 views

problem while installing some python packages

There is an issue while installing some of the packages for python. They show 'No package available' message while trying to do yum install . They are these: python-psycopg, python-reportlab, ...
2
votes
3answers
9k views

How can I adapt this debian init.d script to work with CentOS 5?

I'm trying to get an lsyncd daemon running. I installed the lsyncd RPM from epel, but it doesn't seem to come with an init.d script. In the lsyncd repository, there's this script that works with ...
2
votes
4answers
535 views

Issues installing mongodb on centos 5

I'm trying to install mongodb for my centos 5.1 server via yum. I followed the instructions of creating a .repo file in the yum folder, but it still doesnt work. here's the screenshot of the issue: ...
2
votes
3answers
427 views

CentOS VM, NTP synchronization problems

We have three CentOS 5.9 VMs on an ESX3.5 host. Because of the nature of the services we provide it is required that the NTP time is synchronized and the time is correct on all three of them. ...
2
votes
1answer
423 views

Why is LVS dropping packets?

I am currently trying to get down to the core of a problem where my LVS-director seems to drop a packet coming from a client from time to time. We have this problem on our production systems and can ...
2
votes
2answers
1k views

Httpd restart “Address already in use” error

I have an .rpm, which I created. In its %post part, I do some stuff, and in the end of this script, i call service httpd restart. It gives the following error: + service httpd restart Stopping httpd: ...
2
votes
2answers
1k views

Monitor or log directory permission changes?

I'm having an issue with a cPanel shared server running CentOS 5 where a few directories under the public_html folder keep getting changed to 777 from 755. The customer says they are not changing it ...
2
votes
1answer
713 views

How to install Percona XtraDB Cluster on x86 server?

I'm going to migrate from MySQL replication to Percona XtraDB Cluster. The problem I'm facing is one node is running on x86, and I cannot install Percona-XtraDB-Cluster-server from the Percona repo ...
2
votes
3answers
433 views

Centos how to set default permissions for specific folder

I have a centos server that one of my apps creates files in a tmp folder. The files are always created with the permissions r--r--r-- and i need all the new files in this directory to be created with ...
2
votes
3answers
849 views

SNMPD running but not listening for connections at random

OS: CentOS release 5.7 (Final) Net-SNMP: net-snmp-5.3.2.2-14.el5_7.1 (from RPM) Periodically my NMS notifies me that SNMP has gone down on this machine. The service is restored in between 10 to 30 ...
2
votes
2answers
141 views

Consolidate separate /var and swap drives back to / drive in CentOS

The genius that originally set up the web server at my company put the swap, /var, and / directories on different drive pairs. I need to some how consolidate all three into one drive for migration ...
2
votes
1answer
264 views

Tomcat Solr times out

(Plesk 10.4 centos 5.8 linux apache2 server, with Tomcat5 on port 8080 and Apache Solr) I get "The connection has timed out" on requesting domain.com:8080 or www.domain.com:8080 or ip.ad.dr.ess:8080 ...
2
votes
1answer
2k views

How do I format this regex so it will work in fail2ban?

I've just installed fail2ban on my CentOS server in response to an SSH brute force attempt. The default regular expressions in fail2ban's sshd.conf file do not match any entries in audit.log, which ...
2
votes
1answer
1k views

Autofs BROWSE Mode in CentOS\RHEL

I have multiple server mounting their $HOME from a file server. On the clients I have set in /etc/sysconfig/autofs BROWSE_MODE="no" The client also mount directories from other files servers to ...
2
votes
2answers
219 views

UnRaid software raid - CentOs

I have a linux ( CentOS ) server that has 2 hard drives, and it configure by software raid1, Now I need to un-raid hard drives, and use both of them. How can I Un-raid them ? ( I just has SSH access ...
2
votes
1answer
2k views

Windows XP and SAMBA

We have a CentOS 5.5 server that is running kernel 2.6.18-194.32.1.el5 and SAMBA version 3.0.33-3.29.el5_6.2. We have a hidden share created that we use to map network drives to. This was working ...
2
votes
1answer
261 views

build RHEL6 kernel on Centos 5?

I have an existing Centos 5.5 box that really needs a couple features available in kernel version 2.6.32 and up. Is it possible to take a RHEL6 kernel and build it on my Centos 5.5 installation? I ...
2
votes
2answers
2k views

Multipathd load balancing on md3200i

I'm working on setting up a cluster of servers with an iSCSI MD3200i SAN for shared storage. Everything is working well but I have one small detail I can't seem to get working. Multipath seems to only ...
2
votes
4answers
2k views

Other processes take over port 80 when restarting Apache - why, and how to solve?

I have a CentOS 5.5 server running Apache on port 80 as well as some other applications. All works fine until I for some reason need to restart the httpd process. Doing so returns: sudo ...
2
votes
2answers
2k views

PHP-CGI Not working on CentOS 5?

While trying to configure php-cgi on a CentOS 5 server running nginx, I run into this: [root@~~~~~~~ run]# /etc/init.d/php_cgi start Starting php-cgi: spawn-fcgi: child exited with: 255 ...
2
votes
1answer
3k views

HOw to check firewall rules in Centos

I have centos 5. I tried iptables -L and it gives the following output Chain INPUT (policy ACCEPT) target prot opt source destination RH-Firewall-1-INPUT all -- anywhere ...
2
votes
2answers
744 views

Installing gitweb failed: No package gitweb available

I have tried installing gitweb via ssh and failed. Below is what I get. root@server [~]# yum install gitweb Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * rpmforge: ...
2
votes
1answer
507 views

Bad signatures or NOKEY errors on RPMs I just signed

I'm having serious problems getting RPM signing working for RHEL / CentOS 5 hosts. TL;DR: RPM signing isn't working, and it's working in a variety of insane and erratic ways depending on the exact ...
2
votes
1answer
267 views

How to open a port below 1024 in Cent OS for socket.io?

I'm trying to open port 843 in my Cent OS 5.2, I added following line to etc\sysconfig\iptables : -A INPUT -p tcp --dport 843 -j ACCEPT and then updated my iptables service. I need to listen to ...
2
votes
1answer
290 views

HTTP 400: No Host matches server name for MS Office files on Apache Server

Background We just migrated our website to a new server. Both the old and the new servers run/ran CentOS 5.5 and Apache 1.3.33. However, after the migration we have not been able to download any ...
2
votes
2answers
67 views

similar files has the same permission & owner but some of them give forbidden error

I moved a file from another server to my server. in directory listing Apache doesn't show it and I cant download it from browser (forbidden) but I created a new file and chmod + chown both of them to ...