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
0answers
9 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 ...
0
votes
0answers
9 views

sshd honors /etc/ssh/sshd_config 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). ...
-1
votes
0answers
8 views

Impossible write into the AJXP_DATA_PATH folder

I have installed ajaxplorer in my centos. Iam trying to open through website its showing error " Impossible write into the AJXP_DATA_PATH folder: Make sure to grant write access to this folder for ...
0
votes
1answer
9 views

Selinux “Add context Rule to Semanage”

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
0answers
8 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
16 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
16 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 ...
-1
votes
0answers
6 views

Why Apache has the write permission even it's not the owner [on hold]

I have a dedicated server which is running CentOS. I have WHM installed by the server support company. I created cPanel accounts in WHM. For example, a account named 'tester'. After created this ...
0
votes
1answer
33 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
2answers
17 views

Allow user access to FTP account folder based on his current (static) IP

I have an FTP account for a folder (shared hosting on Linux (CentOS) with cPanel) which is accessed through FileZilla (could be a different FTP App) on a PC using Windows 8.1 OS. I would like to give ...
-1
votes
0answers
23 views

NGINX on CentOS troubleshoot - 'ERR_CONNECTION_REFUSED'

I'm configuring an Nginx server and have hit a wall. Some help would be great. It's an EC2 instance running CentOS 6, everything was fine until the server was rebooted, now I get ...
0
votes
0answers
18 views

couldn't to install mod_wsgi on centos

i tried so many times to install mod_wsgi on my centos6 server but unfortunately i couldn't do that. my steps to install it : yum -y install mod_wsgi Error: Package: mod_wsgi-3.2-7.el6.x86_64 ...
0
votes
1answer
28 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
58 views

firewalld vs iptables - when to use which [on hold]

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
38 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
28 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
31 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
24 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
19 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
17 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
32 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
54 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
52 views

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
26 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
28 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. ...
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
52 views

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

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
15 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
79 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
41 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
20 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
28 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
61 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
43 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
24 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
38 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
45 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
47 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
89 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
26 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
525 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 ...