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
2answers
4k 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
331 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
3answers
244 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
10k 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
115 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
64 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
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
405 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
318 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
67 views

How can I disable local mail delivery in Centos?

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
0answers
130 views

502 http code when reloading nginx upstream servers

I'm having trouble load testing a web application running in docker. I'm running 2 containers of the same application, In hopes that when I bring one down the traffice will relay to the next server. ...
0
votes
1answer
255 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
211 views

installing SSL certs on apache … what certs to use?

Im an intermediate Linux user and got assigned the task to make Apache run https connections. Currently running centOS 6 and my problem is following: installed mod_ssl and tried to set up paths ...
0
votes
1answer
288 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
377 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
257 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
514 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
3answers
3k 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, ...
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
743 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
187 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
821 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
541 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 ...
10
votes
1answer
14k 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 ...
37
votes
5answers
30k 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
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 ...
15
votes
3answers
32k 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?
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
12k 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
12k 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, ...
2
votes
2answers
12k 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 * ...
25
votes
3answers
9k 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 ...
10
votes
8answers
19k 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 ...
9
votes
1answer
19k 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 ...
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
15k 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 ...
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
15k 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 ...
4
votes
5answers
6k views

Override DHCP hostname on RHEL5/CentOS/Amazon Linux

I'm running Amazon Linux (based on RHEL5) on EC2. I have my own domain name pointing to the instance's elastic IP. Amazon auto-assigns the instance a generic (and not visible on the Internet) ...
4
votes
1answer
1k views

How to tweak Gnome user elevation in RHEL/CentOS

So I am attempting to tweak the way GNOME authenticates a desktop user for privileged applications. Out of the box it asks for the root password. For my deployment this is undesirable and I want it ...
4
votes
5answers
11k views

VSFTPD 530 Login incorrect

I'm trying to get a vsftpd server set up on CentOS 5.3 x64. I'm not able to get any local user login's to work. Here is my vsftpd.conf: local_enable=YES write_enable=YES pam_service_name=vsftpd ...
2
votes
2answers
4k views

Setting up two NICs on two separate LANs provides error

I wish I had found this before starting in, but it's too late for that... I am running CentOS 5.5. I started following this guide for setting up two NICs on different networks. Everything was ...
15
votes
8answers
25k 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. ...