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

4
votes
1answer
195 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
5k 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
2k 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
987 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
4k 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
2answers
12k 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 ...
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
276 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
188 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
468 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
6k 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
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, ...
2
votes
2answers
359 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
260 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 ...
1
vote
0answers
410 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
82 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
445 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
4answers
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
329 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
151 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
729 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
323 views

Database connection to postgresql refused for flask app under mod_wsgi when started by systemd

I'm having a weird problem where a flask application I am trying to run (https://github.com/pyfarm/pyfarm-master) under mod_wsgi under Apache under CentOS 7 cannot connect to a local postgresql server ...
0
votes
1answer
376 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
396 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
285 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
607 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
791 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
204 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
891 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
804 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 ...
46
votes
5answers
39k 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
17k 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 ...
7
votes
3answers
24k 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 ...
19
votes
3answers
41k 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?
26
votes
8answers
38k 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. ...
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 ...
2
votes
2answers
14k 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 * ...
12
votes
8answers
24k 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
2answers
17k 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 ...
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 ...
9
votes
2answers
7k views

SSH Connections freezing with “Write failed: Broken pipe”

I am connecting to a CentOS 5.5 box via SSH from a Ubuntu 11.04 machine. The connection appears to work as expected when it is in active use (i.e. no lag or loss), but if it is left inactive for a ...
6
votes
4answers
14k 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
14k 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 ...
13
votes
1answer
25k 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 ...
10
votes
2answers
18k 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 ...
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 ...