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
11 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
43 views

firewalld vs iptables - when to use which

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
31 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
24 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
0answers
21 views

Server making outbound dns requests [duplicate]

I have a cloud server with Rackspace and they have blocked DNS because of "excessive queries". I can find the info below when running ps, but I can not seem to locate where the file is that is making ...
0
votes
1answer
29 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 ...
-1
votes
0answers
23 views

Incoming connections blocked from some IPs on Centos

I have some server processes running on CentOS. I find that I can connect from some external IPs, e.g., port 4005 has some connections: [root@xxxxx dfxbin]# netstat -an | grep :4005 tcp 0 ...
-1
votes
0answers
15 views

How to handle multiple domain requests on single tomcat server?

I am using dedicated server. I have hosted different HTML, PHP and wordpress websites on this server those are working perfectly. Now I want to deploy java web application on this server. So I have ...
0
votes
0answers
18 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 ...
-3
votes
1answer
16 views

SFTP - Create a hierarchy of users to control access

I would like to create two levels of users to restrict SFTP access: "parent" users, and "child" users. I need the parent users to be able to access all the directories owned by the children, but the ...
0
votes
1answer
27 views

Alert on direct root logins

We do not allow direct root logins through ssh but obviously through console access. Is it possible to log direct root logins and maybe send an email or write to a logfile if someone logins through ...
0
votes
1answer
30 views

It is possible to configure more than one haproxy in different machines to listen to same request?

I'm wondering if it is possible to create a cluster of haproxy, so if the haproxy machine fails, another haproxy gets the job done. I tried to change the frontend configuration to listen to other ...
0
votes
1answer
43 views

amazon web services ec2 ftp filezilla

I am trying to make vsftpd to work with the centos 7 ami from centos. After installing vsftpd I edited the config file and made these changes: anonymous_enable=NO local_enable=YES write_enable=YES # ...
0
votes
1answer
33 views
+50

mod_security not working at all

I'm trying to make the mod_security work, I searched a lot on the web, and followed this tutorial to configure mod_security (all my configuration files are the same as the tutorial), and when I run ...
2
votes
1answer
24 views

How would I be able to take a snapshot of a CentOS 5 server and compare it later on?

I have a consultant that was hired to install some custom software to a CentOS 5 server. After she's done, I'd like to review her changes to possibly automate or optimize them. I was thinking of: ...
0
votes
0answers
3 views

How do I change the permissions that new directories are created with with AMS?

OS: CentOS 6.6 AWS-provided AMI found here I'm using Adobe Media Server 5.0.7. I have my application set up so that when a user records a video to the server, it goes into its own directory. If ...
2
votes
0answers
28 views

Apache rewrite works under FreeBSD, not under CentOS

I have 5 production servers which are running FreeBSD 9.2, but we are planning on transitioning to CentOS. Because of this, I am attempting to set up some virtual machines to emulate our production ...
0
votes
0answers
18 views

How can I exclude packages with yum-cron on CentOS7?

On earlier versions of CentOS, and assuming RHEL, you could exclude packages by adding the packages to skip to /etc/sysconfig/yum-cron . Putting several newer servers into use now, and I can't find ...
-2
votes
1answer
27 views

mkpasswd on Centos 7 does not support -m flag [duplicate]

I cannot find how to install grub-crypt either. How can I generate SHA512 pass hashes on Centos 7? Edit: I was actually trying to look up how to generate hashes with an adjustable number of rounds. ...
0
votes
0answers
28 views

IPSec tunnel between Cisco and openswan

We need to setup a site to site vpn connection and Our provider use Cisco system and we are planing to use openswan on centos (hosted on digitalocean). Our provider asking us following information. ...
4
votes
0answers
91 views

it's good idea truncate a file while is in use? [migrated]

Around the web many people say you can truncate a file using > filename or truncate -s0 filename while file begin used I know everytime a process write in a file, the process uses a offset for ...
0
votes
0answers
46 views

How fix mariadb out of memory on digitalocean's CentOS 7.0 x64? [on hold]

I have a problem about once a day. Number of processes grow fast and vps die. Only reboot from DO panel allow restart vps. mysqld_safe didn't help :( How i can fix this? UPD: software configuration: ...
0
votes
0answers
14 views

Is there a way to solve Sun Grid Engine scheduler process dying?

We're running a cluster of CentOS 5 machines with Sun Grid Engine 6.1u3 and have encountered a problem twice in the past week where the scheduler process (sge_schedd) dies without good explaination. ...
0
votes
0answers
8 views

Using SSM to modify partitions

I've installed CentOS 7 on a new machine. After struggling with the partition manager for some time I relented and let it create the defaults. As a result I have a / with 50gb and /home with ~800gb. ...
0
votes
0answers
69 views

postfix with dovecot : fatal: no SASL authentication mechanisms

I setup a mail server using postfix and dovecot . I used pro linux system administration book by James Turnbull, but I got following error when try to test mail server with swaks command. swaks -tls ...
-1
votes
2answers
39 views

Migrating IMAP emails from a FreeBSD server to a CentOS server both running Dovecot

What would be the best way to do this migration considering that I do not have the passwords for the IMAP accounts on the source server running FreeBSD and Dovecot. I do have SSH access to both ...
-1
votes
0answers
19 views

SSH User on Nginx Server [closed]

How do I create a SSH user for Nginx block and assign it to upload files to nginx block to upload files via FTPS? I am running Nginx on CentOS 7
0
votes
1answer
18 views

ports to open to access samba share

When I turn off my iptables service, I can successfully list my samba shares. But when I turn it back on, I cannot access them at all. Also, my SELINUX is set to permissive Here is my current ...
1
vote
1answer
24 views

Exim undergoing distributed dictionary attack

Our web server is currently undergoing a botnet attack on Exim. Our server is CentOS and is setup with BFD (Brute Force detect that uses APF to prevent access) to detect attempts and block them. ...
0
votes
2answers
59 views

Wget, self signed cert and --no-check-certificate not working

I recently installed a self signed SSL cert on one of our nginx webservers. If I attempt to wget a file with --no-check-certificate I receive the errors below. You can reach the site with a browser, ...
-1
votes
0answers
29 views

Check mysql domain that is using resources [migrated]

I have a webserver hosting about 300 websites and sometimes my CPU usage gets close to 100% and when I use "top" in my CENTOS to check who is using all CPU, I discover it's mysql. I would like then to ...
0
votes
0answers
42 views

CentOS7 systemctl calling ExecStop on reboot after my procceses are already killed

I have a systemd script which is as follows: [Unit] Description=My sites Before=shutdown.target reboot.target halt.target [Service] Type=oneshot ExecStart=/bin/bash -c '/etc/xxx/mySites start' ...
-1
votes
1answer
23 views

Moving data between drives CentOS 6 + cPanel [closed]

Recently, my server crashed. The hosting company has installed new CentOS on a replacement drive and attached the old drive to my server. I have installed and setup cPanel onto the new server and ...
0
votes
2answers
35 views

Nginx - 2 https servers on same public ip [duplicate]

I currently have several regular http servers and 1 https server. I would like to add another https server with the same public ip. I have something similar to server { listen 443 ssl; ...
0
votes
1answer
32 views

OpenVPN: Options error: Unrecognized option or missing parameter(s)

I am trying to assign different ip address ranges to two different types of users of OpenVPN. The two user types are administrators and employees. Towards this end, I created certificates and keys ...
0
votes
1answer
41 views

PHP dependancy issue after upgrading to PHP 5.6.5

I'm trying to install Laravel, this required me to upgrade to php 5.6.5. This was a success and php is running fine, but im having 2 dependency issues when i try to install other packages that laravel ...
0
votes
1answer
87 views

Installing RoundCubeMail - You don't have permission to access /roundcubemail/installer/

I have installed (well, almost) RoundCubeMail on CentOS7. I set up Apache/2.4.6 server, so when I nagivate to localhost (or 127.0.0.1) I can see the start/test page of the Apache (Testing 1 2 3 ...). ...
0
votes
1answer
24 views

Varnish Under Cpanel with Multiple IPs Configuration

I have one web server runs with Cpanel&WHM and 1 shared ip adress and 3 dedicated ip adress. 3 ips are dedicated to some domains for run safely with ssl and magento. Now, i already set my ...
3
votes
3answers
521 views

Why cd does not change current directory in crontab?

In my user's crontab, on a CentOS system, I have something like this: 58 12 * * * cd /home/joe/dev; echo `pwd` | logger This outputs in /var/log/messages: Feb 19 12:58:01 srv01 joe: /home/joe ...
0
votes
1answer
32 views

CentOS Disk Full - Unable to locate largest files/dirs

I have a very strange problem, my hdd on my centos server is showing 99% usage. I executed several commands to list largest files, but it didn't show anything larger than 9.9G which is the web ...
-1
votes
0answers
32 views

How can I allow both www urls and non-www urls of the same site in nginx? [closed]

As in the title my problem is about www e non www urls. I use nginxCP, a distribution of nginx that suites cPanel and WHM. I need to be able to surf my sites hosted by this server with both non-www ...
0
votes
0answers
17 views

Sync Ubuntu repository with Cobbler server fails

I am trying to sync the Ubuntu trusty repo to my cobbler server. The issue is that for some reason the connection seems unstable during the parts that work.. additionally it fails to proceed with one ...
1
vote
1answer
55 views

Can't change the keyboard layout on Centos 7

I have been stuck with this problem for hours now and this is getting really frustrating. I have installed Centos 7.0.1406 on Oracle Virtualbox and during the installation I chose Norwegian keyboard ...
-1
votes
0answers
32 views

First boot configuration to be done by user

I am new to Linux scripting and I am trying to create a custom CentOS image. What I want to do is when the user boots my VM for the first time it should do the following Show License Agreement ...
0
votes
0answers
10 views

getting lots of spam from “unknown” and helo localhost [duplicate]

On our server, we keep receiving spam with the following headers. We are using whm 11.44 and exim. Return path is always: Return-path: <> and it says Received: from unknown (HELO localhost) Both ...
1
vote
0answers
15 views

cartridges in openshift origin web console

I'm trying to install openshift origin, i already have the "broker" and one node fully configured and in the node i installed a few cartridges that were in the repositories. Then i imported and ...
-1
votes
0answers
18 views

Groups in CentOS 5/6

I have 15 CentOS servers running a mix of version 5 and 6. Each of these servers are integrated with a Microsoft Active Directory with a tool called VAS/QAS (ventella Authentication Services /Quest ...
0
votes
2answers
32 views

Restricting access to user groups in OpenVPN

I just used the instructions in this tutorial to install OpenVPN on a CentOS 7 server. I am able to ssh and https into the remote CentOS 7 server through the VPN from a client machine. However, it ...
-2
votes
0answers
33 views

eth0 >>--> switch >>-->eth1 [duplicate]

I have a server with 2 ethernet interface eth0 and eth1. (OS CentOS 6.6) both ifcfg config eth0: IP: 192.168.0.10 mask: 255.255.255.0 gw: 192.168.0.1 eth1: IP: 192.168.0.11 mask: 255.255.255.0 gw: ...
1
vote
1answer
23 views

Why is Memcache not starting automatically?

I installed memcache in my CentOS server, and the respective libraries for php as well: Despite having installed both of them, I ended using Memcache $memcache = new Memcache; Since I wanted the ...