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

0
votes
1answer
83 views

SSD caching using bcache or dm-cache on kernel 2.6.32-042stab104.1

I'm looking to use bcache or dm-cache with the latest OpenVZ kernel (2.6.32-042stab104.1) on CentOS 6. Unfortunately, dm-cache and bcache are part of kernel 3.10, but I know the OpenVZ kernel has a ...
0
votes
1answer
14 views

configuing sendmail to use virtual hostname

My CentOS server has several IP addresses. There are different virtualhosts configured per IP address on apache. When I send an email via PHP/sendmail, I want that sendmail uses the hostname that is ...
0
votes
1answer
61 views

Large number of ssh login attempts [duplicate]

I logged into a CentOS box today to find the following" There were 11126 failed login attempts since the last successful login. Last login: Tue Mar 10 14:36:47 2015 from X.X.X.X Thats 11 THOUSAND ...
-1
votes
1answer
56 views

Apache SSL works but the config shows it's only listening on 80 not 443, how is it possible?

Server: CentOS 6, Apache 2.2 and OpenVPN installed. The httpd.conf has: #Listen 443 Listen 80 Websites work in https so I think OpenVPN might be listening on 443 and forwarding to Apache ...
0
votes
0answers
29 views

Installing node-inspector

I have centos and I tried to install node inspector via npm install -g node-inspector But I get below error , node-pre-gyp http Pre-built binary not available for your system, looked for ...
1
vote
1answer
74 views

Squid Segmentation Fault?

I'm currently fixing an issue with one of our production servers. The issue is related to squid not able to run properly. When I try to run service squid start/stop, it throws an error: 2015/03/11 ...
-1
votes
1answer
23 views

fail2ban identify the subscription specific error log which resulted in an IP ban [closed]

I am running Fail2Ban via Parallels Plesk 12.x on several CentOS 6 containers with several active jails (apache-noscripts, plesk-apache etc.). The Fail2Ban.log provides the IP address which was ...
0
votes
0answers
25 views

Cannot start mysql on vagrant CentOS machine

I am getting the following problem doing "vagrant up" ==> default: [2015-03-10T16:31:03-04:00] INFO: template[default :start /etc/init.d/mysql-default] mode changed to 755 ==> default: ...
1
vote
0answers
54 views

Restrict I/O Write usage using cgroups

I am trying to restrict I/O write usage on my server using cgroups. Here is my partition table info: major minor #blocks name 8 0 10485760 sda 8 1 9437184 sda1 8 ...
2
votes
2answers
78 views

SELinux - logrotate is not rotating NGINX logs

I am using CentOS, NGINX and Passenger to serve a Rails application. I have SELinux activated, and have had a series of problems with logrotate. I have been able to resolve most of the issues by ...
0
votes
0answers
56 views

Subdomain setup on a Centos server, using BIND and Lighttpd (Vhosts)

I'm kinda at my wits end here. I'm trying to setup a subdomain on my host on a network. My computer is ged12345.dev.example.internal on an internal network. This works fine, but I'm trying to setup a ...
0
votes
1answer
22 views

Deployed IPA-server, created replica, then fed production data only to replica. How to fix?

At some point, I deployed ipa-server on a CentOS 6 machine. Being asked to better move it into a VM, I used ipa-replica-prepare / ipa-replica-install . This resulted as wanted, and I got a working ...
0
votes
0answers
62 views

Do I need more memory for my CentOS server?

When checking my server's memory usage with free -m I'm getting this result: total used free shared buffers cached Mem: 1024 1024 0 ...
0
votes
1answer
26 views

ssh port is different from what is connected

Ok, so here's the deal. I setup an Iptables rule as follows: IPTABLES -A INPUT -p tcp --dport 51722 -j ACCEPT and if I do systemctl status sshd.service, I get the following: Server listening on ...
-1
votes
1answer
58 views

CentOS 6.6 /var 100% but no big files [closed]

I have a server that is showing /var as being 100% full, but running the following command 'du -ks * | sort -nr | more' does not show any large directories: 60824 lib 25084 log 3960 cache 180 ...
0
votes
0answers
58 views

OpenVZ container doesn't start, “unable to read inode block”

I'm having some problems with OpenVZ/Ploop. Installed OpenVZ on a brand new thinkserver today. My /vz/ partition is ~5.2 TB large (4x2TB RAID 5). When I try to create/start containers ploop fails with ...
0
votes
0answers
184 views

firewalld service is running, but firewall-cmd doesn't work

I am new to Centos 7/Server management. I am trying to figure out how to work with firewalld. my kernel release is: 2.6.32-042stab084.20(OpenVZ) And: #firewall-cmd --version #0.3.9 The problem is ...
-2
votes
1answer
67 views

Centos 6.5 MD1 full disk space

I have almost full disk space on md1 [root@server ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/md1 20G 18G 645M 97% / tmpfs 7.8G 0 7.8G 0% /dev/shm ...
0
votes
0answers
11 views

Starting qmail-toaster: svscansvscan: warning: unable to read directory: access denied

I got such message when trying to start qmail-toaster: Starting qmail-toaster: svscansvscan: warning: unable to read directory: access denied All permissions are correct. drwxr-sr-x. 2 alias ...
0
votes
1answer
94 views

grubby fatal error: unable to find a suitable template

I'm trying to fix my system after moving it from one server to another. It works perfectly with kernel booted via network, but not from the disk. Reinstalling stock CentOS 6.6 kernel shows this ...
-1
votes
1answer
24 views

How can I permit anonymous access to local user home directory with vsftpd?

I have installed vsftpd and locked local user access to their home directories. Now I like anonymous to access some user's home directories. I have tried these solutions but they didn't work. First, ...
0
votes
1answer
35 views

cobbler managed dnsmasq is not listening on the correct interfaces

I have a cobbler server I am trying to get installed. Unfortunately dnsmasq is not listening on the correct interfaces. It should be listening on my 192.168.10.2 network which is assigned to br1 ...
0
votes
1answer
29 views

Lighttpd stops writing to access.log

I have this issue with my lighttpd installation where logging to access.log will cease once the default log-rotating software erases my access.log after copying it to access.log-YYYYMMDD. I have to ...
2
votes
1answer
55 views

replace or remove GPG signature on RPM

Is there a way to remove or replace an existing GPG signature on an RPM? I am placing a few obscure RPMs on an internal repo we use for supplementary rhel/centos packages. A few of those RPMs are ...
-4
votes
2answers
114 views

iptables: open port 25 CentOS 7 [closed]

I have problems opening port 25 for sendmail on my CentOS 7 machine. Here's my iptables configuration: *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state ...
0
votes
0answers
30 views

Apache mod_ssl StdEnvVars appear not to be set?

I have a CentOS 6.5 server running Apache 2.2.15 with mod_ssl and PHP 5.3.3. My problem is that PHP does not seem to recognize the HTTPS connection. I have the following in my ...
-3
votes
1answer
40 views

raid 1 & ml350 gen8 server with centos 6.2

I have a proliant ml350p gen8 HP SERVER with centos 6.2 and two hard disk with 1 TB for both. I have several GB of files and software about 100) with their configurations but I want to install RAID 1 ...
-2
votes
1answer
62 views

nginx SSL not working (404 error)

On a CentOS 6.6 box I have nginx set to serve two virtual hosts. One for SSL and one for basic HTTP. /etc/nginx/default.conf: server { listen 80 default_server; server_name _; #charset ...
0
votes
0answers
24 views

How to work whit socket_file httpd (nginx-uwsgi)

I am trying to run Nginx/uWSGI/Django, the last remaining step is to run the socket_file all I get is a 502 Bad Gateway. Route my django application. #/home/deploy/webapps/myapp Configuration ...
1
vote
1answer
57 views

dhclient.conf missed on centos

on centos 6 I need take the values from a dhcp server: cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 HWADDR=00:50:56:27:0E:C8 TYPE=Ethernet UUID=20924b21-e92a-4944-a054-06d1967155c1 ...
-2
votes
1answer
90 views

my host has no PTR record [closed]

when i check my host i get this host myIP xx.xxx.xx.103.in-addr.arpa has no PTR record So i dd this to my /var/named/domainname.com.db myHostname. IN A myIP xx.xxx.xx.103.in-addr.arpa. IN PTR ...
4
votes
1answer
144 views

how do I set up two smtp ports for postfix?

A CentOS 7 server with postfix, dovecot, and mailx needs to accommodate mail being sent through port 465 and received through port 25. What specific syntax and files need to be changed in order to ...
1
vote
0answers
44 views

How to power down Cloudstack configured with XenServer Hypervisors

I have three XenServers(6.2) configured in a single pool. I also have a Cloudstack (CentOS 6.5) Management interface controlling them all. Everything is up and running but I can not figure out how to ...
0
votes
0answers
33 views

Given: iptables entry in place; my.cnf properly set up; MySQL user & permissions properly set - but still cannot access MySQL remotely: Suggestions?

I would like to access MySQL remotely on an Amazon EC2 CentOS instance (I assume it is CentOS because I use yum to update installed applications and libraries). I believe that iptables is set ...
0
votes
0answers
29 views

Apache on CentOS as MP3 server quickly runs out of memory

I am using a HostWinds CentOS 4GB memory VPS with Apache as a file server. Its sole purpose is to stream out MP3 files. After about 10 minutes of serving MP3s to about 100 simultaneous users, Apache ...
0
votes
1answer
85 views

SFTP Error: open for write: permission denied

I have created a user and a group only for SFTP and when I try to transfer a file with Filezilla in /var/www I have this error: Open for write: permission denied I have configured sshd_config like ...
0
votes
1answer
55 views

Centos - /var/log/secure records nothing

I have accidentally remove /var/log/secure, I try to recreate it but it still stays blank after several connections. On a server where everything works, with ls -l I have: -rw-------. root:root ...
-1
votes
1answer
48 views

Apache doesn't start at boot

I'm on a VPS that sometimes OVH restarts. When this happens, apache soesn't start at boot so I need to start it manually everytime. I have already set the command systemctl enable httpd but seems ...
-2
votes
1answer
98 views

sshd binds to low numbered ports only if restarted with bash -x /etc/init.d/sshd restart

I've added the line "Port 110" in /etc/ssh/sshd_config just bellow the existing line "Port 22" and then did an /etc/init.d/sshd restart expecting to see sshd listening on both ports (22 and 110). ...
0
votes
1answer
37 views

Selinux “Add context Rule to Semanage” [closed]

As you add or change a new rule to fcontext semanage to any directory and apply, egg: # How to add this rule for apply changes whit restoreconf -Rv /var/www/html(/.*)?/media(/.*)? ...
1
vote
1answer
81 views

Mime type received as “text/html”, server configured to send as “text/javascript”

Both firefox and chrome are showing that javascript files from my server are served as MIME type text/html. The javascript files have a .js extension. First, mime_module is installed and active: ...
0
votes
0answers
24 views

PHP error reporting without notices

I have been trying to set up php.ini file for error reporting. I wanted for my log file to show everything except notices. Referring to my researches, solution was to use this command: ...
0
votes
1answer
41 views

Setup fail2ban with apf

Along with BFD we have recently installed fail2ban on our server, it is CentOS and it uses APF to block IPs. I have hunted online on how to get the two to work however when an IP is blocked by ...
0
votes
1answer
65 views

Supermicro super server RAID warning

Hey guys sorry in advance for the noobish question. Our company just received a brand new 6017R-WRF Supermicro superserver. I have been tasked with getting this bad boy setup. I am a software dev ...
0
votes
1answer
42 views

Why the firewall seems to work intermittently?

I've this iptables rules on first server which has the role of a client connecting to a second mysql server through LAN adapter. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT ...
1
vote
1answer
450 views

firewalld vs iptables - when to use which [closed]

TL;DR On new CentOS server installs should I be using firewalld or just disable that and go back to using /etc/sysconfig/iptables ? firewalld and iptables serve similar purposes. Both do packet ...
1
vote
1answer
56 views

Linux - show dropped packets form firewall

I am trying to set up a sip trunk and so far everything has gone well. The only issue I face is that the call does is not received when the iptables service is running. By stopping the service ...
2
votes
0answers
60 views

Need to check whether you need to reboot for a kernel update?

I'm using Ansible to check hosts if they need to be rebooted if the /vmlinuz kernel doesn't resolve to uname -r. The if condition is although always identifing a reboot even though the test machine ...
0
votes
1answer
63 views

CentOS email setup for Wordpress

I am moving an old Wordpress install to a new CentOS LEMP stack VPS. I want to set up email for the new VPS. It came with sendmail installed by default but I find it to be overkill. I just need a ...
0
votes
0answers
39 views

iptables logging public server

I would like to create iptables for a public webserver, since I would like some stats on how-many times this server is being tried for open ports/ssh logins/ ... To do this I wanted to filter out all ...