CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RHEL.

learn more… | top users | synonyms

1
vote
2answers
1k views

mod_rewrite and VirtualHosts: how to redirect 1 site, but keep the others?

I host 4 virtual hosts at a dedicated CentOS 5.6 server: # rpm -qa|grep http httpd-2.2.3-45.el5.centos.1 One of them is my Drupal 7.2 site and another was holding static texts and fotos belonging ...
1
vote
3answers
228 views

Help with user login on Centos 5.6

I added a user for the sole purpose of using SU for root. I did not allow the creation of a home directory when creating the user. So now when I login as this user I get the following: Could not ...
2
votes
1answer
1k views

How to create user in Centos 5.6

I have a VPS with Centos 5.6 running on it. I have WHM gui running and create users but they have to be associated with domains. In a terminal can I create a user that is not associated with a domain? ...
0
votes
1answer
321 views

Pre/Post deploy script to change file ownership?

We are running CentOS 5.6 on a dedicated server. I am planning on deploying our Magento store changes using BeanstalkApp (www.beanstalkapp.com) which offers pre and post deploy hooks. My username for ...
1
vote
3answers
2k views

Cannot get nscd to run. DNS cache stale as a result

I'm trying to troubleshoot an issue on a MediaTemple server (running CentOS5) where the DNS cache has grown stale - I think because nscd has crashed. I've tried restarting nscd: # service nscd ...
1
vote
1answer
357 views

sendmail: deny all, allow only matched recipients

Warning: Total Sendmail noob here. Is there anyway to restrict sendmail so that it can only send mail to specific email addresses, either by list or pattern (preferred) Ideally I'd like to be able ...
3
votes
2answers
8k 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 ...
-2
votes
1answer
2k views

Is it possible to Web Browsing on CentOS Server?

i want to remote server for Web Browsing to restart my router is it possible? if yes, could you tell me a solution ?
0
votes
2answers
666 views

Failing to build ape server on centos

I'm trying to build an ape server on Centos 5.6 but getting the following message: /usr/bin/ld: cannot find -lmysqlclient_r collect2: ld returned 1 exit status make: * [modules] Error 1 How can I ...
0
votes
3answers
3k views

Cannot get CentOS 5 to update - Yum Errors

I'm used to Yum on CentOS 5 being a total pig and breaking every other week, but until now I've always been able to fix the problem by simply running: yum clean all And then updating normally. Not ...
0
votes
2answers
1k views

vsftpd does not start [closed]

I installed VSFTPD on CentOS but when I try to start the service it fails. What can I do?
1
vote
1answer
185 views

openvz node with only one vps

I have an openvz server with 2Gb ram and would like to configure a vps for use all server resources (no swap). I run: vzsplit -n 1 -f vps1 -s 0 and have this setup: Configuration file generated by ...
1
vote
1answer
425 views

ssh problem at CentOS 5.6

After installing CentOS, when I try to remote connect via ssh it show an error like this. How can I resolve this? Siam-Wannakosits-MacBook-Pro:~ragopor$ ssh root@192.168.1.10 ...
1
vote
4answers
23k 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" ...
4
votes
2answers
864 views

SELinux & ncsa_auth in Squid

I'm trying to enable SELinux on a CentOS 5.5 server with Squid 3.1.12 that handles authentication via ncsa_auth. When I turn off SElinux everything works fine, but when I enable it, Squid crashes on ...
2
votes
1answer
342 views

Hide folders in samba

I have a samba server running on CentOS 5.6. When I browse the the server from Windows 7 computer I see a share that I did not assign. I have already looked through the /etc/samba/smb.conf there ...
2
votes
1answer
2k views

Windows XP and SAMBA

We have a CentOS 5.5 server that is running kernel 2.6.18-194.32.1.el5 and SAMBA version 3.0.33-3.29.el5_6.2. We have a hidden share created that we use to map network drives to. This was working ...
-1
votes
1answer
2k views

Unable to decompress a .gz file on centos. gunzip: filename.tar.gz: not in gzip format

I am trying to install the latest apache ant to centos. I did as follows: wget http://ant.apache.org/bindownload.cgi/apache-ant-1.8.2-bin.tar.gz gzip -d apache-ant-1.8.2-bin.tar.gz and I get the ...
0
votes
2answers
2k views

What causes the error “Error: Device 0 (vif) could not be connected. Hotplug scripts not working.” on CentOS5.6 x86_64 with Xen kernel?

I have 10 domU's on my CentOS 5.6 server running Xen kernel. All 10 are set to start on system boot; however, for just 1 of the machines, I get this error: Error: Device 0 (vif) could not be ...
0
votes
2answers
812 views

can't connect to MySQL from localhost on Centos 5

I have a fresh install of Centos 5.5 on a new VPS and MySQL seems unable to resolve the keyword 'localhost' - if I use 127.0.0.1 instead it works fine. I checked the /etc/hosts file which is as ...
1
vote
1answer
918 views

Install Twisted on CentOS 5.5

CentOS 5.5 is using the old python 2.4 ! But I want to install Twisted on it ! Does anyone maintain a RPM of this library ?
0
votes
1answer
120 views

VPS (LAMP) Runs out of memory every so often

I have a VPS on CentOS 5, running LAMP. Twice now in the last 3 months the server has had to be rebooted due to being out of memory. Downtime ends up being an hour, before someone can look at it. I ...
0
votes
2answers
720 views

CentOS and PXE Boot

I am working on setting up a PXE boot server based upon a minimal installation of CentOS 5.6. I have installed CentOS 5.6 with the the first CD using the minimal installation method. Next, I ...
2
votes
1answer
264 views

build RHEL6 kernel on Centos 5?

I have an existing Centos 5.5 box that really needs a couple features available in kernel version 2.6.32 and up. Is it possible to take a RHEL6 kernel and build it on my Centos 5.5 installation? I ...
0
votes
1answer
2k views

why CSVN do not run anymore?

An unknown service is causing the server to crash. I then stopped and started those services, but the CSVN does not run and makes the server slow when I start the service. When I do a rollback this ...
0
votes
2answers
2k views

Munin access to MySQL

According to several tutorials, the following should work: Create a new user in MySQL. $ mysql -uroot -p > CREATE USER 'munin'@'localhost'; > exit; Use that user in munin to access the ...
0
votes
1answer
149 views

VSFTPD problem on Centos 5.4 with different port

I'm changing over my server to operate ftp on different ports than standard 20/21 accomodate a nas on the same network. I have changed the ports to 201/202 but cannot connect locally from a pc on the ...
4
votes
1answer
1k views

iptables refuses connections to squid port on CentOS 5.5

I installed squid on a fresh CentOS 5.5 and added this rule for iptables: -A RH-Firewall-1-INPUT -m state --state NEW,ESTABLISHED,RELATED -m tcp -p tcp --dport 8080 -j ACCEPT Using this HOWOT: ...
2
votes
2answers
2k views

Multipathd load balancing on md3200i

I'm working on setting up a cluster of servers with an iSCSI MD3200i SAN for shared storage. Everything is working well but I have one small detail I can't seem to get working. Multipath seems to only ...
0
votes
3answers
7k views

how to Install easy_install Via yum on Linux CentOS Server

please tell me how to Install easy_install Via yum on Linux CentOS Server i tried that in panel command center yum install python-setuptools output.... epel: mirrors.tummy.com * base: ...
0
votes
1answer
199 views

losing connectivity in Linux with Dell blades and such

So we have some dell blades and chassis (blades are M600's, chassis M1000's) and other systems (R710 with MD3000 array). The R710 exports a source tree via nfs for the blades to build and test with. ...
0
votes
4answers
337 views

Trying to scale my dedicated server for high traffic

I have a quad core xeon, 8GB ram, and only 2 x 1TB SATA drives right now. I am trying to figure out how to scale my application to handle as much load and traffic per day as possible. I have an ...
0
votes
2answers
62 views

Where should websites live on Centos servers?

I am re-organising some web servers, the majority of which are running the Centos linux distro. Each of these servers has multiple sites being served using virtual hosts. Is there a "correct" ...
0
votes
1answer
2k views

Centos+Apache+Phusion+REE=FAIL

I have been trying to get Phusion Passenger running on 5.6 for the last couple of days with no luck. Initially, I started with Ruby 1.9.2 under RVM since the default Ruby on RHEL-based distros is ...
0
votes
1answer
934 views

Plesk 10 port 8443 connection timeout

I've installed plesk 10 on centOS and after installing to access the cp you need to go https::8443 I'm not being able to, and would like to find out why i can ssh to the server and i can, from the ...
0
votes
1answer
54 views

Updating CentOS

I have a CentOS 5.5 installation with ruby, dovecot (and some other soft) installed from source, and soft like postfix, samba, bind etc. installed from yum repositories. This box is online for more ...
0
votes
1answer
390 views

Problem with sendmail combined with iptables

I have the following setup, for my iptables, I want my server secured as can be. However, I just have one problem... Sendmail does not work, when I have iptables enabled. Even though I opened port 25. ...
3
votes
2answers
2k views

PHP Woes - 500 Internal Server Error (brand new server)

Anyone ever seen these errors, or something like it? /usr/bin/php: error while loading shared libraries: libcom_err.so.2: failed to map segment from shared object: Cannot allocate memory [warn] UID ...
1
vote
1answer
3k views

haproxy forwardfor ignored while in tcp mode

I have a haproxy set for https and as such I had to enable mode:tcp for that but as it turns out becasue of that forwardfor is being ignored and I can't see original ip. is there any way to bypass it? ...
2
votes
2answers
7k views

How to mount Windows share on boot using mount.cifs and autofs/automount?

I'm having some trouble mounting a network share using autofs. I have added the following line to /etc/auto.master: /mnt/mountpoint /etc/auto.servername I then created the file ...
1
vote
2answers
2k views

NFS client can mount, fails to automount

I have /etc/auto.master: /cpy/users /etc/auto.users --timeout=90 I have /etc/auto.users: * -fstype=nfs4,rw,proto=tcp,port=2049 server:/users/& On an "ordinary" CentOS 5 machine, these ...
2
votes
1answer
633 views

Cloud Server Port says connection refused?

I'm playing around with using a Rackspace Cloud Server (running CentosOS 5.5) as a server for the Beanstalk Message Queue system. I'm starting Beanstalk with the command line of "Beanstalkd -d -l ip ...
0
votes
4answers
19k views

How to install network adapter in Linux (CentOS 5)

My company has a CentOS 5 Linux server. The network card died today and we replaced it with an Intel Pro 1000 GT network adapter. I'm not great with Linux. How can I get this new NIC working? Thanks ...
1
vote
1answer
2k views

Installing Integration Services for Hyper-V into CentOS-5.x

I am trying to install Linux Integration Services v2.1 into CentOS 5.5 running on Hyper-V. I have followed the dkms instructions from here: http://support.microsoft.com/kb/2387594 This works, in ...
0
votes
1answer
1k views

qlogic HBA tuning recommendations random iops

Trying to squeeze out the most performance from a 3PAR SAN with Qlogic HBA in our HP servers. We run on Centos 5.5 with latest updates/kernel. Can anyone give useful recommendation or tuning to get ...
0
votes
3answers
232 views

ruby 1.8.7 makes and installs on Centos 5.5 but won't run

I've downloaded ruby-1.8.7.p334 ruby-1.8.7.p334.tar.gz from ftp.ruby-lang.org, and decompressed it. When I did ./configure , it complained about no suitable c compiler, so I didyum install gcc. Then ...
0
votes
3answers
1k views

NTP time sync not working in a DOMU Centos 5.5 server

I have a Xen Centos 5.5 server with ntpd working in virtual server. NTP time sync seems not working. I have disabled any firewall. my grep -i ntpd /var/log/messages output: Apr 1 16:15:47 ...
2
votes
1answer
2k views

Cannot login to cyradm to administrate Cyrus IMAP

I have a fresh installation of cyrus-imapd (2.3) on CentOS 5 with all these packages: cyrus-imapd cyrus-imapd-utils cyrus-sasl cyrus-sasl-plain cyrus-sasl-md5 I have changed the password of user ...
1
vote
5answers
461 views

Simple 2 node virtualisation cluster

Could someone recommend an opensource virtualisation cluster suite?! I'm looking at setting up a 2-3 node cluster w/ 2 webservers 2 mysql and a virtualised loadbalancer for apache. We currently have ...
0
votes
3answers
3k views

Allow IP Address Range In hosts.allow

I would like to allow this Ip Range 94.1.1.1 to 94.15.255.255 I tried inputting this in the hosts.allow file after reading here that you need to use networks and netmasks? i don't know much about ...