Questions tagged [centos5]
CentOS 5 is an obsolete, free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RHEL.
805
questions
51
votes
4
answers
191k
views
Tcpdump on multiple interfaces
I need to capture traffic on a CentOS 5 server which acts as a web proxy with 2 wan interfaces and 1 LAN. In order to troubleshoot a weird proxy problem, I would like to have a capture of a full ...
44
votes
5
answers
272k
views
How to save and exit crontab -e?
How to save and exit crontab -e?
i tried every method listed here and none works, i have a centos 5, vi comes by default with yum and i installed nano
Solved
just changed the default editor
export ...
41
votes
5
answers
135k
views
How to list RPM dependencies?
Our production server is running CentOS release 5.2 (Final).
How do I see/get/list all the dependencies of an already installed RPM package?
For example: SQLite v3.3.6 is already installed in the ...
34
votes
4
answers
114k
views
How do I tell what process is causing kswapd to be in use?
I see kswapd using 100% CPU... how can I tell on which process's behalf kswapd is being used so much?
28
votes
2
answers
55k
views
High disk I/O - jbd2/sda2-8 process
I have run a file server on a CentOS 5.8 final server.
My only concern at the moment is what appears to be intermittent but continuous high disk I/O activity causing a general slowdown because of ...
27
votes
3
answers
96k
views
How can I configure netcat (or some other stock linux utility) to listen on a specific port on a secondary IP address?
CentOS 5.9
For testing purposes, I want my CentOS server to listen on a secondary virtual IP (eth0:0). I'm familiar with nc -l -p <port> but it only listens on the primary. Is there a way I ...
24
votes
3
answers
29k
views
Cent OS: How do I turn off or reduce memory overcommitment, and is it safe to do it?
From time to time "my" server stalls because it runs out of both memory and swap space. (it keeps responding to ping but nothing more than that, not even ssh).
I'm told linux does memory ...
22
votes
3
answers
141k
views
Configure domain name in CentOS
How do I configure domain names in Cent OS?
I am actually connecting to the servers via SSH remote terminal and I also have root credentials. Does configuring the /etc/sysconfig/network and /etc/...
19
votes
2
answers
36k
views
Patch command not found [closed]
I tried to apply patch to my file with following command
patch -p0 < foo.patch
I got the following output
bash: patch: command not found
I have Centos 5.x server.
Please guide what to do ...
19
votes
4
answers
20k
views
Failed to instal APC via pecl install APC
When I try to install APC via pecl install APC-3.1.5
or even pecl install APC I get following error when the package comes to the make command:
running: make
/bin/sh /var/tmp/pear-build-root/APC-3.1....
18
votes
5
answers
115k
views
How do I change my locale to UTF-8 in CentOS?
Here's the output of locale:
LANG=zh_CN.GBK
LC_CTYPE="zh_CN.GBK"
LC_NUMERIC="zh_CN.GBK"
LC_TIME="zh_CN.GBK"
LC_COLLATE="zh_CN.GBK"
LC_MONETARY="zh_CN.GBK"
LC_MESSAGES="zh_CN.GBK"
LC_PAPER="zh_CN.GBK"
...
17
votes
2
answers
6k
views
yum should error when a package is not available
I recently ran into a bug in a script where I tried to do the following:
yum -y install another_package.x86_64 some_package.x86_64 && run_my_script
The script ran well on a newer CentOS, but ...
16
votes
5
answers
135k
views
where is my php installation path
I am using centos and I need to find out where is the php installation path is. Is there a command I can use to find that out.
Thanks
14
votes
2
answers
50k
views
Upgrade CentOS 5.x to CentOS 6.x - tips and techniques
Now that CentOS 6.0 is making its way to the various mirror sites, I wanted to solicit opinions on the upgrade process. In working with the commercial RedHat 5.6 and 6.x distributions for the past few ...
13
votes
4
answers
2k
views
CentOS /dev/bus/usb structure
On my Ubuntu 12.04 when I plug in usb device, under dev directory tree usb device is added like this:
/dev/bus/usb/001/001
On my CentOS 5 added like below:
/dev/bus/usb/devices/2-1.4/
lsusb needs ...
12
votes
8
answers
163k
views
How to clean up mysql installation on centos
mysql does not exist anymore but when i run yum remove mysql it says that the package is available but not marked for installation, i cannot install new mysql because of that, I need to completely ...
11
votes
3
answers
26k
views
Can not switch drbd to secondary
I'm running drbd83 with ocfs2 in centos 5 and planning to use packemaker with them.
Afer some time, I'm facing drbd split brain problem.
version: 8.3.13 (api:88/proto:86-96)
GIT-hash: ...
10
votes
2
answers
23k
views
Determine which guest is running on XEN: HVM or PV guest
I'm working with a Xen host which is installed XenServer from Citrix by someone. He already installed a lot of CentOS 5.2 guests on the host. I wonder how to check those guests to know they are PV ...
10
votes
2
answers
29k
views
Are MySQL databases always stored in /var on CentOS?
Are MySQL databases always stored in /var on CentOS?
Specifically - If a new CentOS/cPanel server that needs to support MySQL, doesn't have that partition, but only has these, does that mean MySQL ...
10
votes
7
answers
45k
views
Wget, Curl, Yum Fail but Ping works - CentOS 5
We currently have three webservers.
Servers one and two behave, but I'm having real problems with the third.
wget, curl and yum all fail to make their connections - that is, they all hang after ...
10
votes
3
answers
31k
views
Bind zone transfer refused
UPDATE:
BIND Version:
[[email protected]] $ named -v
BIND 9.3.6-P1-RedHat-9.3.6-16.P1.el5
Operating System:
CentOS release 5.6 (Final)
After running [[email protected]] $ dig @10.224.45.130 ...
9
votes
6
answers
78k
views
How delete the content of a directory in Centos
I need to delete all the content of a folder in CentOS but not the folder itself.
For example: I have a folder named "MYFOLDER" which contains subfolders FOLD_1, FOLD_2, FOLD_3, FOLD_4... etc , and ...
8
votes
1
answer
798
views
Create swap file on a running Linux machine
Our company web sites have just been moved from a shared host to a VDS, as the hosting company plans on retiring the less than completely reliable shared hosting server(s).
The VDS only has 256MB of ...
8
votes
2
answers
19k
views
rpm spec: conditional require based of distro version
I'm trying to write a single rpm spec for RHEL/CentOS/SL 5 and 6. This spec is for python app, so there is no differences in build process. But on RHEL/CentOS5 I need to add one additional dependency.
...
8
votes
3
answers
408
views
Is it possible to extract last month's values from a MySQL server and build a new database from those values?
I have an assignment to build a development virtual machine template.
I need to add to the server MySQL databases from each one my company's products so that new developers will have the ability to ...
8
votes
2
answers
25k
views
sendmail rejecting some connections with handshake failure: SSL alert number 40
My sendmail server on CentOS 5 started to reject some connections with the following message logged:
error:14094410:SSL routines:SSL3_READ_BYTES:sslv3 alert handshake failure:s3_pkt.c:1092:SSL alert ...
8
votes
1
answer
18k
views
Bad signatures or NOKEY errors on RPMs I just signed
I'm having serious problems getting RPM signing working for RHEL / CentOS 5 hosts.
TL;DR: RPM signing isn't working, and it's working in a variety of insane and erratic ways depending on the exact ...
8
votes
1
answer
2k
views
Block outgoing connections for certaing uids (root, apache, nobody)
With iptables in CentOS 5 and 6 Linux - how can you please prevent processes running as root, apache or nobody from initiating outgoing connections?
On CentOS 5 Linux I've tried putting these lines ...
8
votes
3
answers
9k
views
How to remove packages that are no longer needed on CentOS 5?
While installing package I get some additional packages on dependency. But when I remove installed package with yum, the dependency packages are not removed, though I don't need them anymore.
How ...
8
votes
2
answers
676
views
FreeRADIUS 2 should use a different Python than default
We've got a FreeRADIUS 2 deamon installed on a CentOS 5.7 server.
We'd like to use a pre-written Python module to do authorization but there's a problem: The Python module we've got requires Python ...
7
votes
3
answers
24k
views
How do I find a word recursively in all files and all directories
I am looking for a specific phrase in CentOS and I am not sure where and which file or even directory that has the file is. How can I do a complete recursive search on a phrase.
Thanks
7
votes
4
answers
27k
views
SSL Library Error: -8181 Certificate has expired
After a yum update, there is an error when starting apache, in /var/log/httpd/error_log:
[notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[error] SSL Library Error: -8181 Certificate has ...
7
votes
1
answer
19k
views
How do I format this regex so it will work in fail2ban?
I've just installed fail2ban on my CentOS server in response to an SSH brute force attempt. The default regular expressions in fail2ban's sshd.conf file do not match any entries in audit.log, which ...
7
votes
3
answers
43k
views
How to make Linux VNC server listen on local IP instead of just loopback?
I know how to specify a listening port of VNC server under Linux, but what puzzles me is that I can not find a way to specify a VNC listening IP.
When started VNC server under CentOS 5.6, I found its ...
7
votes
2
answers
5k
views
Timezone for cron jobs
We have a VDS running CentOS 5.5 that was created and configured with the EDT timezone. I have replaced etc/localtime with a link pointing to the Australia/Melbourne (UTC+10) timezone file. Running ...
7
votes
1
answer
11k
views
How can I confirm if my vmxnet driver is installed on my CentOS server?
I have an appliance running CentOS 5.x on VMWare ESX.
Quite recently I upgraded it to a newer version of CentOS (still in 5.x) and I noticed that the network card wouldn't initialize.
If I run ...
6
votes
4
answers
41k
views
imuxsock messages in syslog and system becomes unresponsive
I am getting such messages in syslog.
rsyslogd-2177: imuxsock lost 21869 messages from pid 3418 due to rate-limiting
rsyslogd-2177: imuxsock begins to drop messages from pid 3427 due to rate-limiting
...
6
votes
1
answer
17k
views
how to uninstall JDK on centos x64 linux based system
I tried installing JDK in my CentOS x64 web server, it looks like I have made a hash of things :(...
Now, how do I uninstall JDK 1.6.0_26 in Centos x64 linux?
Regards,
Arvind.
6
votes
2
answers
4k
views
ntlm_auth - can login in AD with both old and new passwords
I have problem with AD and ntlm_auth. I use the following command, to query the AD server for checking the user existence:
ntlm_auth --use-cached-creds --username=SOME_USER --password=SOME_PASS --...
6
votes
1
answer
35k
views
HOw to check firewall rules in Centos
I have centos 5.
I tried iptables -L and it gives the following output
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere ...
6
votes
2
answers
35k
views
Too many TCP connections causes disconnections
I have a game server which runs with TCP connections. Server disconnects users randomly. I think its related with TCP settings of server.
In local development environment written code can handle 8000+...
6
votes
2
answers
2k
views
mod proxy not working on apache
I am trying to install Mod_Proxy Apache module on WHM/CPanel CeEntOS Linux Server. Here is system info:
CentOS release 5.6 (Final)
Server version: Apache/2.2.21 (Unix)
Cpanel::Easy::Apache v3.7.2 ...
6
votes
3
answers
15k
views
Permission denied on /proc/ some process
I am using chkroot to scan my system and it gave me permission denied error
/proc/23746/fd/0: Permission denied
/proc/23746/fd/1: Permission denied
/proc/23746/fd/2: Permission denied
/proc/23746/fd/...
5
votes
6
answers
8k
views
Lightweight Linux DNS [closed]
Can anyone recommend a lightweight Linux DNS server, which would be suitable for the data center?
EDIT:
We speak about data-center typically within 10 - 20 servers, up to 100 at maximum.
For larger ...
5
votes
3
answers
10k
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, ...
5
votes
2
answers
22k
views
How to auto-start MongoDB on CentOS reboot?
How do I setup MongoDB so that it will start back up automatically after a server reboot? This is on CentOS 5.5.
I start it with the following command, but if the server reboots, I have to login to ...
5
votes
2
answers
52k
views
How enable pdo_mysql
I am trying to install SpaceBukkit. I was wondering how I enable pdo_mysql. When trying to setup the MySQL part I get this error:
The "pdo_mysql" extension is NOT loaded in your `php.ini`!
Make sure ...
5
votes
3
answers
16k
views
Rsync Throttle Upload Bandwidth --bwlimit=KBPS
I am looking to throttle the upload speed of my file transfers during an rsync process.
Does --bwlimit=KBPS mean it sets the internet transfer speed, or the hard drive disk write speed?
--bwlimit=...
5
votes
2
answers
22k
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, ...
5
votes
3
answers
3k
views
CentOS6 installation from CentOS5 box?
I am trying to build a new CentOS 6 VM from my CentOS 5 host, but it appears that something fundamental has changed between these versions:
$ rpm -ivh --nodeps --nodigest --ignorearch --ignoreos --...