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

0
votes
2answers
2k views

How to keep SpamAssassin up to date under CentOS?

I am running CentOS 5.4 with SpamAssassin installed via yum. However the version yum installed was SpamAssassin version 3.2.5 and I am finding that this version has many outdated rules -- including a ...
-2
votes
1answer
11k views

PPTP IPTables routing issue

PPTP connects just fine to the radius server PPTP modules are loaded into the kernel PPTP connects fine to the pptp service Question: How do I get the PPTP to connect to the internet? IPTables: #!...
14
votes
3answers
12k views

Installing Fedora RPMs in CentOS

How safe is it to install Fedora RPMs in CentOS 5? Does it depend on the version of the Fedora RPM or is it generally better to steer clear?
12
votes
4answers
10k views

Should I avoid putting two SSDs in a RAID1 configuration due to performance degradation?

I have a workstation system that will have two 64GB industrial SSDs, and the plan is to have both disks in a RAID1 configuration for redundancy which is set up in the kickstart. The system will be ...
10
votes
5answers
10k views

Allow root login from one IP address only

I have centos5. Is there any way that i can log into my vps server with root user from particular ip address only. I have read that i can use private key to login into sshd. But the problem is i am ...
9
votes
3answers
11k views

How do I change Dovecot virtual user passwords?

I used one web based control panel to create some virtual users for Dovecot. That control panel no longer works so I need to do this manually. I need to reset the password for one (virtual) user ...
8
votes
1answer
6k views

CentOS, two nics eth0 eth1 with different subnets aren't reachable outside VLAN/subnet

I am having an issue with a CentOS 6.3 box. We have two NICs (eth0 and eth1) in the server which each have an ip from a different subnet assigned, let's say eth0:192.168.1.2/24 (gateway 192.168.1.1) ...
8
votes
6answers
12k views

CentOS How Much SWAP for 16GB of RAM?

How much SWAP would you give a CentOS install on a dual Quad Core XEON with 16GB of RAM that is going to be running a php website with a mysql backend - medium/heavy load?
7
votes
2answers
2k views

Why chroot is considered insecure?

I've been playing around with CentOS box for couple of years now. So I'm pretty comfy with terminal. However, I read a lot of blog-post claiming that chroot is insecure and amount of those posts ...
7
votes
2answers
7k views

Should both mysqld_safe and mysqld be running at the same time on startup?

On launching my CentOS VPS (setup by someone else), MySQL starts two processes on boot: mysql : /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql root: /bin/sh /usr/bin/...
6
votes
2answers
3k views

httpd service will not start on boot under CentOS 6

I am having trouble configuring a CentOS 6 Vagrant setup to start the Apache service on boot. I have tried using chkconfig and the OS seems to just ignore it. When I run sudo chkconfig --list httpd, ...
6
votes
4answers
4k views

Force Linux servers to automatically try to get an IP address if they lose it

We use static DHCP leases for our Linux servers on our small business network. Recently something bad happened to the DHCP server and all the linux servers ended up losing their IP addresses since ...
5
votes
3answers
6k 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, ...
4
votes
2answers
5k views

(CentOS) Adding swap file failed

Im trying adding swap file by following this guide: http://www.redhat.com/docs/manuals/linux/RHL-8.0-Manual/custom-guide/s1-swap-adding.html Everything is fine, but starting swapon /swapfile, I got ...
4
votes
5answers
4k views

CentOS 5.5: service not stopped on shutdown

I have wrote script /etc/init.d/xxx which start/stop my service on CentOS 5.5. When I call 'service start xxx' or 'service stop xxx' everything works fine. But when I restart my machine, I see in the ...
4
votes
1answer
7k views

dropped packets on the interface

i am running centos 6.2 and one of the interfaces has high dropped packets. this is the info from ethtool, is this is a network issue?? [root@w native]# ifconfig eth1 eth1 Link encap:Ethernet ...
4
votes
3answers
1k views

Best way to manage third-party / custom-built software with Puppet?

We use versions of Ruby, Collectd, Ant, Java (and more) that are not available in CentOS or EPEL repos. Up until now, our strategy for installing these has been kind of a hack: write a (version-...
4
votes
3answers
15k views

centos 6 nfs: logs not showing anywhere

Can someone please tell me where NFS logs in centos 6? Or perhaps where I can tell NFS to send logs? At the present time, there appears to be no such setting. Trying to get the thing to work without ...
4
votes
2answers
381 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 ...
4
votes
1answer
1k views

How can I install a custom (patched) PECL extension?

I'm trying to use the htscanner PECL extension on my CentOS 5/PHP 5.2.6 machine, but there's a bug in the latest version where a newline character is added to the end of every php_value directive. ...
4
votes
2answers
1k views

Please help to find a solution for two way, real-time synchronization on Centos 5.5 64Bit

I am in need of a real time, two way synchronization software for Centos 5.5 / 64Bit. Here's little explanation: It needs to be able to perform: Two way synchronization. It must be realtime. By ...
3
votes
2answers
2k views

How do I forward localhost traffic to a remote host with iptables?

I would like to set up my CentOS 6.5 box to forward connections to localhost (127.0.0.1) to the same port on a remote machine (e.g. 10.0.3.10). I've tried the iptables rule below, but when I attempt ...
3
votes
3answers
27k views

CentOS 6.5 not bringing up network interface automatically after reboot [ifup eth0]

I am having this issue with many of my CentOS servers where after a reboot the network interface fails to come up automatically. This is a big problem for me since I need to drive to the datacenter ...
3
votes
3answers
7k views

Why did my CentOS 5 production server reboot?

I have a CentOS 5.2 box running my production web server (Apache 2 + Mongrel_cluster) for a Ruby on Rails project. The machine is hosted by GoDaddy.com and is a "virtual private server". The system ...
3
votes
2answers
522 views

Swap memory exhausting server even site has small visitors

I have CentOs 6.5 running on a 32bit VPS host. It is running only php-fpm, nginx, and mysql. I have a site that gets on average 20 visitors per day, but I am recently getting this message from my ...
3
votes
1answer
2k views

dd oflag=direct 5x fast

I have Centos 6.2 in server with this specs: 2xCPU 16 Core AMD Opteron 6282 SE 64GB RAM Raid controller H700 1GB cache NV - 2HD 74GB SAS 15Krpm RAID1 stripe 16k (OS Centos 6.2) sda - 4HD 146GB SAS ...
3
votes
3answers
3k views

How to enable IPv6 Autoconfiguration with static address in Linux (RHEL)

I have a static IPv6 address I would like to assign. When I add the address to the /etc/sysconfig/network-scripts/ifcfg-eth0 file and restart networking I realize I get several IPv6 addresses. The ...
3
votes
3answers
2k views

CentOS: Init scripts failing to start for some unknown reason

I'm running CentOS 6.2 - I've just migrated some applications over to a failover server, and copied their init scripts into /etc/init.d. I've made them executable, added them to chkconfig, with ...
3
votes
3answers
1k views

Server Bash Line Wrapping Over Text & In Wrong Place

This is quite a hard problem to explain, when connecting to one of my servers using the bash shell, under any user the line wrapping is broken and has all sorts of problems. Once of which I detail in ...
3
votes
3answers
4k views

Puppet - Any way to copy predefined custom configuration files for software on clients from the puppet master (host)?

I have been having a lot of fun coding with what puppet I have had experience with so far, and so far it looks like it can do most of what I need it to do. One thing I am not finding in the ...
3
votes
2answers
2k views

PHP-Mcrypt Installation

I need to install php-mcrypt on my CentOS 5.5 VPS, When I try yum install php-mcrypt, it says that it is set to be updated which implies that it is already installed. I looked in the /usr/lib/php/...
2
votes
3answers
6k views

IP tables modification to allow access to mysql on CENTOS 5 server

CentOS 5.4, with IP tables stopped, I can do it. What's the line I need to add to IPtables so I can keep it on and have remote (domain) access to the mysql databases? my current table: # Firewall ...
2
votes
1answer
2k views

How can I troubleshoot a service not starting at boot?

I've got a service set up to start at boot but it's not doing so and I don't know where to look (e.g. logs) to troubleshoot it. I've verified the run level: $ grep default /etc/inittab id:3:...
2
votes
1answer
5k views

How do I mount a raid disk

So I screwed up my grub.conf file on a CentOS system and I'm in recovery right now (it's only a test dedicated server). My disks are /dev/sda1 and /dev/sdb1 (RAID 1). Now I need to mount /dev/sda1 and ...
2
votes
3answers
6k views

How can I install pam_mount on Centos 6 x86_64?

I need to use pam_mount to mount user home directories individually at the time that each user logs in. I cant locate a package for this, at least for Centos 6. I would not have a problem building ...
2
votes
1answer
5k views

LDAPsearch with SSL Centos- ldap_start_tls, ldap_bind: Cannot contact LDAP

I am working on a integrating LDAP authentication with my PHP Project deployed on a Linux platform. I successfully completed the ldapsearch from command line and from php code for NON SSL connection. ...
2
votes
1answer
9k views

Apache kerberos authentication to Active Directory not happening. (Is KRB5KDC_ERR_C_PRINCIPAL_UNKNOWN related?)

My goal is to have Apache authenticate authenticate against AD, without prompting for a username and password, using Kerberos. It currently always shows "401 Unauthorized", and appears to be not ...
2
votes
4answers
22k views

How to change my commandline locale after CentOS decided to change it?

So apparently, CentOS decided I was Dutch, and thus, should not have a English locale. Apart from the fact that this greatly bothers me, I am having a pretty hard time actually changing it back. ...
2
votes
1answer
8k views

How do I install Stress load testing tool on CentOS?

stress is a tool that imposes CPU, memory, I/O, or disk stress on an operating system, so you can test if your applications work under high load, e.g. when almost out of memory. How do I install ...
2
votes
3answers
7k views

Completely reset PostgreSQL to default?

Question Is there a way to completely reset a PostgreSQL installation on Linux, so it is in the same state as when I installed it? Idea I have considered rm -rf /var/lib/pgsql/* rm -rf /var/lib/...
1
vote
1answer
5k views

Multiple SSL certificates with Squid reverse proxy

I have been upgrading my network from using an apache reverse proxy (Not quite powerful enough) to a Squid proxy configured just for reverse use. My squid proxy is on a CentOS 6 VM, and currently ...
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 way.....
1
vote
1answer
230 views

CentOS, Tomcat 6 failed and won't start - java issue?

Linux isn't my strong suit so bear with me if this seems a little newbish. I have a virtual linux box rented, has CentOS (not sure which version) and Apache with Tomcat 6. Over the past 24 hours, the ...
1
vote
2answers
11k views

How many maximum files per directory on CentOS 5 64bit or Linux RedHat 64bit?

Now, I have any 20,000 files in single directory. How many maximum files per directory on CentOS 64bit ext3?
1
vote
1answer
4k views

Unable to access resume device in CentOS

I moved my CentOS soft-RAID1 drives to another box, and now it fails to boot. When I launched the boot process from the grub menu, I get the following error: "Unable to access resume device /dev/md1"...
1
vote
4answers
13k views

Postfix- open relay. How to configure so it is not?

I have setup Postfix but am having trouble with the setup. Whenever I used to send emails to the server, it reject my mails saying 'Relaying Denied', so I changed the following in main.cf: ...
1
vote
1answer
2k views

Why Permission Denied with NFS after reboot?

I have Ubuntu and CentOS clients nfsv3 mounting to a FreeBSD box, which got rebooted while the nfs clients were connected. Now the clients get a permission denied when they try to access the mount ...
1
vote
2answers
1k views

Receiving emails on CentOS 5, Postfix

Here's the problem : Our server (CentOS 5, Postfix) can't receive mails, bat can send. Running tcpdump port 25 and sending an email from gmail shows that there are incoming request from gmail But ...
1
vote
2answers
219 views

How can I tell what rpms are managed outside of yum? [closed]

I am inheriting a Centos 5 box and I'd like to get an idea of what rpms have been installed outside of yum. Bonus: How can I audit that RPMs installed with yum to make sure that they are not corrupt....
1
vote
2answers
3k 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.