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

2
votes
3answers
257 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 ...
12
votes
4answers
17k 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 ...
11
votes
2answers
2k 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 ...
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 ...
5
votes
4answers
575 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
2answers
383 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
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.
6
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 ...
5
votes
2answers
7k 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 ...
2
votes
3answers
929 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
358 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
2k 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
47 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
519 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
520 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
91 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 ...
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
812 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
222 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
518 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 ...
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
184 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
7k 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
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
883 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
161 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
119 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
386 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
3k 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 ...
2
votes
2answers
311 views

Detecting Disk Writes Linux

my webserver running centos 5.7 is showing quite a lot of disk write activity which I cannot explain really. I run a few websites on this server with the help of nginx and php-fpm and xcache. On the ...
2
votes
0answers
67 views

How to disable access_log for DOMAINS? [duplicate]

Possible Duplicate: Disable access logging for domains. (Using CentOS & Apache) I can disable access_log for server BUT I can't disable access_log for domains. Do you have any solution? ...
2
votes
5answers
3k 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 ...
2
votes
3answers
236 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
9k views

How do I fix “getaddrinfo: localhost Name or service not found” for telnet server?

I need to enable telnet (no i can't use ssh, and I don't want to discuss why I have to use telnet either), I have 127.0.0.1 localhost.localdomain localhost in /etc/hosts. I have installed ...
1
vote
5answers
2k views

how to expand disk on ESXI 5 linux VM?

I have created a LINUX machine with 2 disks. the 2nd disk is 100GB /wdata THIN provisioning. I stopped the VM and changed DISK02 to 200GB instead of a 100GB). when I do /proc/partitions I see ...
1
vote
2answers
373 views

Installing php-fpm over php version missmatched

I have PHP installed by yum from the base @updates repository on Centos 6.3: php x86_64 5.3.3-14.el6_3 @updates 3.5 M I would like to install php-fpm version 5.3 because our web software works ...
1
vote
2answers
1k views

How to prevent file owner from changing/deleting their own file? Linux CentOS

This is NOT your standard "how do permissions work" question! I'm thinking the answer will probably involve ACL, but I don't know how exactly. I've messed around with standard permissions, guid, ...
1
vote
3answers
315 views

Configuring Apache on CentOS

I've just deployed a new CentOS 5.7 box with a base install. After the base install I ran yum install httpd and confirmed that Apache was installed. I created a test index.html file in ...