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

6
votes
1answer
5k 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 ...
17
votes
4answers
25k 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 fallowed a tutorial and did fallowing: ln ...
12
votes
2answers
4k views

Linux containers (LXC) on Red Hat/CentOS EL6 - lxc-create versus libvirt?

It's tricky trying to stay within the good graces of Red Hat and still plan for system longevity... I've been a proponent of Linux Containers (LXC) for over a year. My initial installations were ...
6
votes
4answers
7k views

File audit in Linux: how to watch directory tree for deletions?

I have a forum script running on server and somehow small number of attachments begin to get lost. I want to find out what is deleting them and at what time. How can I setup Linux auditd (auditctl) to ...
3
votes
1answer
1k views

Cent OS upgrade PHP

I'm in the midst of resolving a bunch of security issues on a clients server to get them compliant with credit card laws and such. The first order of business is getting php from 5.2.14 to 5.2.16. ...
2
votes
3answers
258 views

Any good resources for setting up a webserver in Linux?

Are there any good resources (videos, ebooks, websites, etc) which allow you to self learn how to configure and manage: Securing a server Web Server (Apache, PHP, MySQL, Perl, TomCat, etc) Mail ...
16
votes
4answers
21k views

How do I patch RHEL 4 for the bash vulnerabilities in CVE-2014-6271 and CVE-2014-7169?

A mechanism for remote code execution through Bash has been widely reported yesterday and today (September 24, 2014.) http://seclists.org/oss-sec/2014/q3/650 Reported as CVE-2014-7169 or CVE-2014-6271 ...
10
votes
2answers
4k views

HowTo redirect HTTP to HTTPS on the same httpd?

Here is what I have got: CentOS 5.4 (32-bit) installed Apache httpd (Server version: Apache/2.2.11 (Unix)) mod_rewrite already presents Question: how to redirect simple http://site.com to ...
7
votes
2answers
1k views

What can cause ALL services on a server to go down, yet still responding to ping? and how to figure out

It has happened to me already twice within very few days that my server goes down completely, meaning http, ssh, ftp, dns, smtp, basically ALL services stop responding, as if the server had been ...
3
votes
1answer
2k views

SELinux: Letting Apache talk to MySQL on CentOS

So I have chrooted MySQL into /opt/chroot/mysql, and everything runs fine. Apache is configured normally, and also runs fine. I created a small PHP script which connects to the MySQL Daemon, and ...
3
votes
2answers
390 views

MediaWiki is getting slower gradually

I set up my MediaWiki on a CentOS. In the first few months, it works fine and fast. But it seems gradually getting slower. My wiki site has less than 50 pages, so it's a very small scale site. But it ...
1
vote
3answers
2k views

Centos Xen resizing DomU partition and volume group

I have a setup like so: Dom0 LV | DomU Physical Disk | | XVDA1 XVDA2 (/boot) (DomU PV) | VolGroup00 (DomU VG) ...
0
votes
1answer
62 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. ...
0
votes
2answers
3k views

SMTP server for centOS, other than Postfix?

I need to install smtp server on centOS, but I don't want to use postfix. please suggest some others smtp servers and how install using putty.
12
votes
1answer
2k views

Linux - if I change the hostname, which services need to be restarted?

I'm making some system hostname changes across a few environments and this got me thinking... When I change a server's hostname (live), what needs to be modified and which system services require a ...
5
votes
2answers
9k 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 ...
5
votes
3answers
2k views

iptables — OK, **now** am I doing it right?

This is a follow up to a previous question where I asked whether my iptables config is correct. CentOS 5.3 system. Intended result: block everything except ping, ssh, Apache, and SSL. Based on ...
5
votes
1answer
2k views

How do I migrate from RHEL 5 to CentOS 5?

I've found myself in charge of installing some software on an old server running RHEL 5. Unfortunately, since it's just a development server now, it no longer rates a license. I'd like to continue ...
4
votes
2answers
1k views

How to setup PXE boot server in CentOS

I am working on researching a project for work and thought that I would ask for your advice. I am trying to find out how to setup a PXE boot server within CentOS that would allow us to PXE boot a ...
3
votes
5answers
281 views

Is there a way to run kickstart scripts on a pre-existing server?

We normally provision servers using kickstart scripts (served by Cobbler) when installing the operating system. But we are to be given a new server from an ISP that already has the operating system ...
2
votes
3answers
1k views

Changing Timezone, Centos Apache server

I'm trying to change my server's timezone. I was following this tutorial but I can't get it to change to Pacific Standard Time. ln -sf /usr/share/zoneinfo/EST localtime Will work, but ln -sf ...
2
votes
2answers
368 views

MySQL not using specified RAM anymore

A few days ago I got a new machine setup running CentOS 5.6 (64bit), with 12GB ddr3 ram, 4x SAS 15k rpm drives in RAID10. On this machine I'm running MySQL Server version: ...
2
votes
3answers
3k views

CentOS 5.5 remote kickstart installation stalls at “Starting install process.” How to debug?

I'm having a difficult time with a remote CentOS 5.5 kickstart installation on an HP ProLiant DL360 G6. This is in an environment where I maintain an internal CentOS yum repository. The kickstart ...
2
votes
4answers
6k views

Recommended method to upgrade PHP 5.1.6 to 5.2.x on CentOS 5.4

It's been awhile since this type of question was asked here. Perhaps the recommended solution has changed. I have a CentOS 5.4 mail server running RoundCube webmail. By default, RoundCube expects PHP ...
1
vote
2answers
193 views

CentOS 6 - Kernel 3 from CentOS 7 Repo?

i want to run kernel 3 on centos 6. I found out, that it cant get installed over yum and i would need to compile it by my own. My question: Could i use the centos 7 repo to install kernel 3.x from ...
1
vote
1answer
240 views

Apache Dynamic Virtual Host with SSL [duplicate]

I have the following in my httpd.conf file NameVirtualHost *:80 <IfModule mod_vhost_alias.c> <VirtualHost *:80> ServerAlias * UseCanonicalName Off LogFormat "%V %h %l %u %t ...
1
vote
1answer
573 views

Centos 5 Full backup

so I have my dedicated server that is set to expire tomorrow. What I need to do is a full backup of everything, with the OS and everything on it. And when I say full backup, I mean a backup that can ...
1
vote
4answers
2k views

Apache uses up a lot of CPU for small website

I have a CentOS 5.5 VPS server with 512MB RAM setup. There is 1 website hosted on it through Apache/PHP/MySQL which is built in Magento, a popular ecommerce framework. When I browse the website, it ...
1
vote
2answers
1k views

Migration from Xen to KVM

I have Xen domU virtual machines running Windows. Each of them are installed in their own LVM logical volumes. I want to migrate them to another server with KVM on lvm to. How can I do this faster ...
1
vote
2answers
6k views

how to install git on CENTOS 5.5

How can I install git on CENTOS 5.5 machine? I tried to install it from yum but got following msg. root@host [~]# sudo yum install git Loaded plugins: fastestmirror Loading mirror speeds from cached ...
1
vote
5answers
5k views

Postfix Stagger/Rate Limit Outbound Mail

We have a server that sends our weekly newsletter to subscribers, To prevent people like Hotmail or Yahoo from blocking us due to sending too many simultaneous emails to them, Is there a way we can ...
1
vote
4answers
522 views

Should Swap be used like this?

I have a server with Dual Nehalem Quad Core Xeon 5520 and 12GB DDR3 RAM. The server's average memory usage is only around 10-15%, yet the Swap used shows 10%+. Is this normal, or could something be ...
0
votes
1answer
1k views

Puppet yum repo - Pull down 2.7.x vs 3.0.x

So a few weeks ago I started on the path to using puppet to automate all the configs/services. At the time I was using the EPEL repo, which installed version 2.6.x. After some reading I was trying to ...
0
votes
5answers
815 views

Limiting bandwith per user?

We need to modify our bandwidth usage (per user on our site). I would want to limit bandwidth per ip,,. Basically we want the users who connects to our webstie to only be able to (download @ 2.5Mbps ...
0
votes
1answer
1k views

Configrue Exim Sendmail for relay

I have a VPS server at UltraHosting.com and requires that I use "Smart Relay" when sendning emails. However I cannot send mail using the php mail() function. Here is an article they have on Smart ...
0
votes
1answer
227 views

Linux (CentOS) - Is there any (feasible) way to add a file write “hook”?

I have a mod_security log parsing script to load data into a mysql database which is then accessed by our Project Management System to display recent flaggings by the rulesets for our developers. The ...
0
votes
4answers
535 views

How to upgrade MySQL server 5.0.77 to 5.0.85 on CentOS 5.3?

I want to move database from MySQL server version 5.0.77 to 5.0.85 by copy database files between the servers (shut down mysqld and copy the .frm, .myd, and .myi files from one database folder to ...
-1
votes
1answer
676 views

Need to run cron jobs in cpanel as a specific user - permission problems

Right now my call in the CPanel CRON job section is: nice php /home/user/public_html/process.php After the latest updates to CentOS and PHP 5.2, I now am receiving this error on all CRON jobs: ...
6
votes
8answers
5k views

Linux networking crash: best steps to find out the cause?

One of our Linux (CentOS) servers was unreachable last night. The server was not reachable in any way except for the remote console. After logging in with the remote console, it turned out I could ...
4
votes
1answer
191 views

Allow SSH only on one of a servers IP addresses

I have a server with several IP addresses that hosts sites on each IP address. I have one ip address that does not have a site associated with it. I want to allow SSH login only to the one IP address ...
4
votes
5answers
8k views

yum “ Segmentation fault” in centos

While using yum commands in a centos server(2.6.18-194.el5PAE #1), it throws 'Segmentation fault'. [root@server2 ~]# yum check-update Loaded plugins: fastestmirror Loading mirror speeds ...
4
votes
5answers
4k views

httpd dead but subsys locked

I modified today max_execution_time in php.ini, when I restarted the server, I get this error : Stopping httpd: [FAILED] Starting httpd: (98)Address already ...
4
votes
3answers
1k views

Do I need SWAP on my server?

I have a particular server : 50GB SSD for the OS (CentOS) , 128GB of RAM and 320GB SSD for MySQL. I'm wondering if I really need SWAP? I often read that 2GB is good even with lots of RAM. This ...
3
votes
2answers
964 views

Unexplained cache RAM drops on Linux machine

I run a CentOS 5.7 64 machine with 24gb ram and running kernel 2.6.18-274.12.1.el5. This machine runs only Nginx, php-fpm and Xcache as extra applications. Since about 3 weeks my memory behavior on ...
3
votes
4answers
3k views

Restore default ownership in CentOS after terrible chown [duplicate]

Possible Duplicate: How do I recover a RHEL 4.3 server from bad permissions set over the entire filesystem? Is there any way to restore the default ownership of a CentOS filesystem after an ...
3
votes
3answers
4k views

Yum doesn't update httpd past version 2.2.3 on centos

I have a fresh CentOS vps (CentOS release 5.4 (Final)), and yum installs Apache/httpd version 2.2.3 but 2.2.14 is the latest release. Why doesn't yum install more recent updates?
2
votes
3answers
211 views

Repartitioning already mounted logical volumes

This is my current disk state on a physical CentOS machine: Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_ecomwise-lv_root 50G 47G 267M 100% / tmpfs ...
2
votes
1answer
149 views

Do I need to enable LVM at install time?

I'm setting up a CentOS dedicated server and I would like to use LVM (it's the right thing to do, isn't it?) The thing is, I'm not sure if I have an option to enable LVM at the time of installation. ...
2
votes
1answer
417 views

centos: using epel repository on a server machine

Are there any downsides in enabling epel repository on a server machine or is it something every sysadmin does?
2
votes
2answers
4k views

my.cnf missing on all directories after new mysql installtion

Title says it all. I previously had mysql version 5.1 on my CENTOS 6 x86_64 OS. I attempted to remove mysql 5.1 and replace it with an install of mysql 5.6. Here is my uninstall process for mysql ...