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

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
262 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
173 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
447 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
5k 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
347 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
3answers
257 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
11k 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
0answers
319 views

Ping connected Clients to VPN tunnel PPTP

I have set up a vpn server on CentOS 6 (PPTP) following this guide... Server End ifconfig ppp0 Link encap:Point-to-Point Protocol inet addr:192.168.1.15 P-t-P:192.168.1.200 ...
1
vote
1answer
76 views

“Masquerade” mail sender on a multi-domain shared hosting [duplicate]

I've a single host with CentOS 6.3. I manage that host via SSH. The server itself is uname -n: servername.foo.com. On this host I've multiple, unrelated httpd vhosts. The problm is: when one vhost ...
1
vote
4answers
3k 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
431 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
2k 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
4k views

Swap 95%+ , but a lot of free ram memory

I am running centos 5.8 with cpanel. Lately I am getting reports that my swap is full , but there is a lot of free memory to use. top - 10:33:43 up 133 days, 17:00, 1 user, load average: 0.05, ...
1
vote
3answers
324 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 ...
0
votes
1answer
119 views

How can I disable local mail delivery in Centos? [closed]

I want to disable local mail on my Centos VPS because the I have a web form (on a website which is hosted by the VPS) which is delivering mail to the local mailbox rather than looking at MX records to ...
0
votes
1answer
535 views

Centos mysql version is 5.5 however PHPmyadmin still says version 5.1

When i run the following in my console: [root@****~]# mysql -u root -p -e 'SELECT VERSION();' Enter password: +-----------+ | VERSION() | +-----------+ | 5.5.39 | +-----------+ Which should be ...
0
votes
1answer
348 views

Ruby/Mongrel installation broken after CentOS upgrade, server won't start

I think my previous questions was somewhat badly formulated. I've got an issue with a CentOS system that is running ruby and a mongrel server which failed after an OS update. Edit: The initial ...
0
votes
1answer
389 views

find common string to block IPs

Currently I have all these IPs coming in. Is there a way to find a common string in the content of the packets and then block the attack via IPTables? Oct 24 16:28:52 host kernel: [ 823.255566] ...
0
votes
2answers
269 views

Hard drive on server which hosts public_html folder is full. What to do?

The dedicated server is running Cent OS, has 2 x 1TB hard drives. One domain is hosted on this server. I've been uploading files to the public/html folder no problem, but I've reached the maximum ...
0
votes
1answer
567 views

phpMyAdmin/MySQL issues

I recently installed phpMyAdmin with MySQL, it works fine, allows the root to login via the website, but when I attempt to create users and give assign them to a database, it gives me the error "#1045 ...
0
votes
1answer
4k views

How to close an open relay in Postfix?

I've discovered my server has been an open relay. I asked about it and tried all the answers in My Postfix has gone wild. Am I hacked? but still its acting up. Every time I run #postsuper -d ALL I get ...
0
votes
3answers
5k views

FFMpeg-PHP Installation Error

While installing FFmpeg-PHP, I got this interesting error: /usr/downloads/ffmpeg-php-0.6.0/ffmpeg_movie.c: In function 'zim_ffmpeg_movie_getAudioStreamId': ...
0
votes
2answers
773 views

Install the latest boost centos 5.5

How can I install the latest boost in centos 5.5? Like what commands.
0
votes
5answers
199 views

Centos /dev/sda1 partition memory issue

We have a problem with /dev/sda1 partition memory issue. It takes about one week to be filled in 99% without reason. To fix it we just need to reboot server and memory usage back to about 35%. Total ...
-1
votes
3answers
869 views

I deleted /etc/passwd yesterday and I am having problems with SendMail today

So yesterday Webmin deleted my /etc/passwd and although it looks like everything is working, I can't get sendmail to work when used in a PHP script. Using mail() returns false, using PHPMailer ...
-2
votes
1answer
716 views

telnet open can not connect on a specific Centos server

i am using below command in the server but it cant connect to given ip and port, I tried to telnet from another locations and it works fine. Only in my server it cant connect. telnet open ...
45
votes
5answers
35k views

“POSSIBLE BREAK-IN ATTEMPT!” in /var/log/secure — what does this mean?

I've got a CentOS 5.x box running on a VPS platform. My VPS host misinterpreted a support inquiry I had about connectivity and effectively flushed some iptables rules. This resulted in ssh listening ...
11
votes
1answer
16k views

How can I run Firefox on CentOS with no display? [closed]

I'm trying to use Selenium Server to do some web testing.... if you're not familiar with Selenium, the way it works is that my web app (in this case, a PHP script) uses Selenium's excellent API, which ...
17
votes
3answers
37k views

how do you create an ssh key for another user?

I'm trying to create an ssh key for another user. I'm logged in as root. Can I just edit the files generated by ssh-keygen and change root to the user I want?
11
votes
5answers
1k views

Linux with 256GB of mem / 48 Cores - Machine starts thrashing/choking with tons of memory left

Machine: Dell r815, CentOS 5.4, 256GB of RAM, 4 x 12 Cores. We have an application that has a 275GB file. It does an in place sort on 20GB of data at a time i.e. it swaps bits around and replaces ...
5
votes
3answers
21k views

Opening up port 8080 in CentOS

I'm new to opening up ports in CentOS. I need to open up tcp port 8080 and have installed/ran nmap to find it is not open already. I've been reading about the iptables command, I have v1.3.5 installed ...
2
votes
2answers
13k views

CentOS Insufficient space in download directory /var/cache/yum/base/packages

I was trying to yum install libpcap when I got Error Downloading Packages: 14:libpcap-0.9.4-15.el5.i386: Insufficient space in download directory /var/cache/yum/base/packages * free 0 * ...
21
votes
8answers
32k views

How do I update a CentOS server's time from an authoritative time server?

I have CentOS machine and each time I've noticed that the server loses correct time after a while. It is usually behind by several minutes after time passes from having manually set the correct time. ...
10
votes
1answer
2k views

Apache, suexec, PHP, suPHP

While I'm quite comfortable as a Linux user, my Linux Admin-fu is a bit weak. Thus, I'm here looking for guidance with a CentOS server I'm about to build. I need to setup an Apache2 web server for a ...
6
votes
4answers
13k views

how do I disable the nf_conntrack kernel module in CentOS 5.3 without recompiling the kernel

I'm running CentOS 5.3 and want to disable the nf_conntrack module to improve network performance for haproxy. I'm running iptables with some simple rules. I don't really need the connection ...
4
votes
2answers
13k 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, ...
25
votes
3answers
10k views

The XFS filesystem is broken in RHEL/CentOS 6.x - What can I do about it?

Recent versions of RHEL/CentOS (EL6) brought some interesting changes to the XFS filesystem I've depended on heavily for over a decade. I spent part of last summer chasing down an XFS sparse file ...
12
votes
8answers
22k views

CentOS 6 and locale error

I just installed CentOS 6 and whenever I login to the system via SSH remotely, I get the following error: -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8) When I type "locale" on ...
11
votes
1answer
23k views

MySQL [Warning] IP address could not be resolved

I'm running MySQL5.6.3 on a CentOS 6.1 virtual machine running on Windows XP in VirtualBox. The network card is configured in bridge mode, so my physical & virtual machines share the same ...
11
votes
2answers
16k views

How do I get SELinux to allow Apache and Samba on the same folder?

In the configuration I have setup I wish to allow samba and apache to access /var/www I am able to set a context to allow samba access, but then httpd doesn't have access. Using setenforce to 0 ...
6
votes
3answers
3k views

My Postfix has gone wild. Am I hacked?

Today, I found my server couldn't work because it was filled. I checked the logs and they had grown enormously, I deleted them so as things could work. now with current logs I'm seeing a lot of ...
6
votes
2answers
4k views

Mount --bind persistence over reboot

I'm having trouble finding an answer for this question Does mount --bind persist over reboot? On my CentOS it looks like it doesn't, so I've placed apropriate mount --bind calls in rc.local. How ...
10
votes
3answers
2k views

Timesync on HyperV with CentOS 6.2

I've got a CentOS VM (release 6.2) running under HyperV. I have integration services installed (part of base now), and CentOS shows the current clocksource is hyperv_clocksource, however my time in ...
8
votes
4answers
2k views

Puppetize everything or not?

Notice: there is a lot of theoretical questions. Recently I'm reading about Puppet (and similar systems), which - as I believe - can make my work easier, a lot. But I try - and unfortunately can't - ...
8
votes
5answers
5k views

Can't install GIT on a CentOS 6.0 x64

I'm trying to install GIT by either RPM or YUM but i can't. I get the following error: error: Failed dependencies: libcrypto.so.10 is needed by git-1.7.1-2.el6.i686 libcurl.so.4 is ...
8
votes
1answer
2k views

Poor load balancer performance on rackspace and centos

I am load testing different options for load balancing, and am getting poor results from Nginx, haproxy, and varnish. I have one 4GB load balancer at Rackspace, hitting 4x1GB app servers. I'm ...
8
votes
2answers
17k views

Where route to 169.254.0.0 comes from?

Running CentOS 5.4 Why do I have route to 169.254.0.0 although it does not appear in Network > Ethernet Device > Route configuration dialog? Destination Gateway Genmask Flags ...
7
votes
2answers
3k views

How can I create a swap partition on Amazon EC2 with ephemeral storage?

This is the output of df -k: Filesystem 1K-blocks Used Available Use% Mounted on /dev/xvda1 10317860 7059008 2734732 73% / none 847584 0 ...