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
45 views

mysql error when running script to dump all databases

I am having mysql server in centos which is running fine, i recently got a script to dump all individual databases to one folder, when i run that script to dump, i'm getting this error when ever i run ...
0
votes
1answer
29 views

centos 6 64bit crond not running on startup?

I have two VPS from ramnode, centos 6 64bit. I have reinstalled server 2 several times and also tried 32 bit centos 6. Same problem. Whenever I type reboot and then service crond status it says ...
0
votes
2answers
37 views

ssh not using /etc/hosts to resolve hostnames

This is how my /etc/hosts file looks in /etc/hosts: If I try to connect to one of these machines with ssh: ssh -p 22 ramy@Ramy-MacBook I get an error: ssh: Could not resolve hostname ...
1
vote
1answer
53 views

Kickstart fails to set up multiple bonded interfaces

I’m having some trouble setting up bonded interfaces in a CentOS 6.5 kickstart script. I have 8 physical network interfaces, which want to be configured in pairs as 4 bonded network interfaces. My ...
0
votes
1answer
31 views

Got blocked by server after starting TCP nodejs sever. Why?

I recently installed node on my VPS, and tried to complete a tutorial. I saved this code into server.js and hit node server.js in putty. I got instant "ban" from my VPS, I can't access it, however on ...
-5
votes
0answers
31 views

Block All Connections Not From CloudFlare [duplicate]

I have a simple request. I would like to only allow traffic to my server from cloudflare. My website is being pounded by attacks, and there is no legit reason someone should be making a connection to ...
1
vote
2answers
67 views

Centos 6 - Postfix wont send to own domain without flag

I am moving a site to another server and am having an issue with PHP mail. But only when sending mail to the host domain e.g anything@example.com. mail($send_to, 'Web contact' ,$message,null,"-r ...
0
votes
0answers
14 views

Make Fail2ban parse latest logs generated monthly.

I have a log file generated monthly (e.g messageApril2015.log,messageMay2015.log). Can anyone tell me how to make fail2ban parse the latest log? I have read somewhere about adding %F%Y but it didn't ...
0
votes
0answers
25 views

Caching cookies with Varnish 4

I want to be able to cache pages that have a cookie. Let's say I have a cookie called "testcookie". If testcookie = 1 I want a page (cached), if testcookie = 2 it will have a different page ( i want ...
-1
votes
0answers
17 views

How to remove apache check dns error?

I have configured apache virtual host in http.conf like below <VirtualHost xx.xx.xx.xx:80> ServerAdmin admin@example.com DocumentRoot /mnt/external/project/Creative ...
1
vote
2answers
26 views

how to stop cron mail receiving in spam folder?

I have added a cron job for my incremental backup, and I configured it like this.But my mail goes to spam folder.so iclick not spam option in mail.it moves to inbox.but again it receives in spam 0 23 ...
0
votes
1answer
39 views

Problems installing PECL extension Memcache

I have installed memcached fine and seems working properly , and now I will need to install PECL extension memcache. Im running Centos 6.2 x86_64 .When I try to install gives me this error at the ...
1
vote
1answer
175 views

(nginx) Apache Forbidden error (at random): No error logs

I am running an Nginx server, but as of late I am randomly getting "Forbidden" errors by Apache, and it seems to never happen at "first" visit, only after refreshing/browsing for a while. What is ...
0
votes
1answer
71 views

Unable to get squid working on centos

I have set up squid on my centos vps server and I am trying to connect to it through my windows computer but I am getting following error for all the websites: Waiting for google.com The ...
0
votes
3answers
64 views

MySQL keep crashing

So a little background, a few weeks ago I brought a new CentOS dedicated server in Melbourne, however it seems beside the number of attackers I get, there also seem to be an issue with the MySQL ...
1
vote
0answers
45 views

High CPU Usage and hangs randomly with HHVM

I'm using phpbb on Centos 7 with 512mb of ram and 1 core. And I'm having randomly hangs and high cpu usage when I get some url of my clean phpbb installation. This is my server.hdf file: idFile = ...
1
vote
0answers
66 views

LDAP with SSSD: force user to change password - 'ShadowLastChange' not working

I have CentOS6, with LDAP user authentication, using OpenLDAP and SSSD. I'm trying to force user to change the password. According to this ServerFault question I tried to set ShadowLastChange to 0, ...
1
vote
1answer
33 views

Auditd is not logging events for some watched files

We have configured auditd to log all access to certain critical files. The system runs WebLogic Server and we want to know if anyone is trying to poke around sensitive system files, such as the domain ...
0
votes
2answers
26 views

Cannot gain networking access in CentOS 6.2 installed on Hyper-V

Im trying to test a few pieces of software on a CentOS 6.2 VM installed in Hyper-V on Windows Server 2012 R2. I was able to successfully install CentOS 6.2 in Hyper-V but I am unable to gain access to ...
3
votes
1answer
82 views

How do I combine firewall --enabled and --nobase in a CentOS kickstart?

As part of system hardening, I'm trying to configure my firewall during a CentOS 6.6 kickstart with the following line. It does work under one circumstance, and otherwise it doesn't. Kickstart ...
0
votes
0answers
29 views

JBoss service start failed

I have installed JBoss Eap 6.4 through zip installation as it's written in the redhat guide, so to summarize I: Downloaded the zip file (eap 6.4) Edited the jboss-as.conf file (see image below) ...
1
vote
0answers
16 views

Nginx req_limit_zone whitelist ip's geo module

I have setup nginx req_limit_zone to limit requests to my webserver. Also I added geo to whitelist certain IP's so request limit does not affect those IP's. The problem is that once I test it with ap ...
0
votes
3answers
109 views

How to send an e-mail after a cron job [duplicate]

I have added a cron job for my incremental backup, and I configured it like this: 0 23 * * * /usr/bin/rsync -ravzX /mnt/external/project/ /media/backup/project/ | mail -s "Backup Success" ...
-1
votes
1answer
83 views

Can't install PHP Package on CentOS

I am having trouble re-installing PHP via yum on my server hosted by digital ocean. I had PHP 5.4 installed but wanted 5.6. I added/enabled the remi repo's, ran yum -y remove php* and then tried to ...
0
votes
0answers
25 views

Preventing the most common attacks with firewalld on CentOS 7

I have seen countless iptables tutorials where you can configure your iptables to prevent the most common attacks. But the only tutorials I have been able to find on firewalld is how to enable and ...
0
votes
0answers
55 views

Kernel upgrade issue

I am trying to upgrade kernel on OnApp VM. Currently installed kernel is 2.6.32-279.22.1.el6.x86_64. The new version available is 2.6.32-504.16.2.el6.x86_64. I installed new kernel ...
0
votes
1answer
89 views

CentOS vs Ubuntu Wordpress server security

I am building out a new Wordpress server for a web developer redesigning my companies website. I originally decided to go with CentOS due to stability. However it appears based on the versions of ...
2
votes
1answer
113 views

Errors installing php extensions on Centos 7

I'm pretty sure I know what the problem is i just dont know how to fix it. Im trying to install mcrypt "yum install php-mcrypt" and i get the following error Error: Package: ...
0
votes
1answer
41 views

dual-homed Centos 7 cannot be ping'd or ssh'd from some on LAN, sees ssh connection refused on one subnet

I have 2 subnets, A and B and a router connected to both A and B and the WAN. I have 4 servers dual homed on subnets A and B, 2 of them are Mac OS and 2 of them are Centos 7 (1503). They are all ...
0
votes
2answers
41 views

CentOS - Nginx logs got deleted - unrecognized system restart, why? How to prevent?

I am using CentOS Linux release 7.0.1406 (Core). The last time I logged in to SSH of the server was on April 20. Everything was working fine. Today I logged in once again to check if anything new in ...
1
vote
1answer
41 views

ssh proxy using -W host:port [duplicate]

I'm trying to use intermediate machine to connect to a remote host but I'm doing something wrong and not sure what. I have added to my intermediate box /etc/ssh/sshd_config following lines: Match ...
1
vote
0answers
47 views

IP-rules don't seem to be working on CentOS-6.6

I faced a bit odd difficulty with policy-based routing on CentOS-6.6 server. I have a setup where I need to enroute all packets originated from 172.25.0.0/16 destinated to 172.24.0.0/16 and some ...
0
votes
0answers
22 views

request_module: runaway loop modprobe binfmt-0000

I'm running CentOS 7. Everything was working fine, until I had one pending update, which I accepted and rebooted. Now the system fails to boot and instead says: request_module: runaway loop ...
0
votes
1answer
37 views

Unable to set AJXP_DATA_PATH variable for Pydio in CentOS

I'm trying to launch Pydio on my CentOS 7 server with Nginx. I get to a point where everything is working, I mean I get a Pydio Error, it is generated by Pydio. Impossible write into the ...
0
votes
1answer
49 views

PHP Fatal error

For some reason Apache/PHP is throwing these errors in the error_log. I can't figure out what is causing it? [Wed May 06 16:39:33.056497 2015] [:error] [pid 14857:tid 140714977302272] [client ...
0
votes
0answers
14 views

New install of authorative BIND9 logging requests but not responding

I have setup a new CentOS7 server, updated and installed bind + bind-utils to be used as an authoritative public facing NS. It seems to be ignoring external DNS queries. Configured logging, opened ...
-1
votes
1answer
47 views

Jenkins unreachable at port 8080

I'm setting up Jenkins for the first time. HTTP ERROR: 503 Problem accessing /. Reason: Service Unavailable I turned off firewalld. The jenkins came from the official jenkins yum repo. java ...
-1
votes
0answers
31 views

Why same docker container has different file system on different environment?

I have several environments - one uses Proxmox (with Ubuntu 14.04 VMs) and another one uses OpenStack (with Ubuntu 14.04 and CentOS 7 VMs). There is a docker image that is used on all these ...
1
vote
2answers
80 views

500 Internal Server Error on Wordpress - BUT WORKS from a different country

MY MACHINE SPECS: I have a VPS (Location - Miami, 4GB RAM) running Centos and a LAMP stack. I have Wordpress installed on it with a SSL certificate. PROBLEM: Out of the blue, the admin ...
0
votes
0answers
42 views

Usermod -aG vs gpasswd -a as a best practice

I am aware that usermod -g is not best practice from many posts like this however they normally explain the usermod should not be used as it changes the primary group of a user. These posts dont seem ...
0
votes
0answers
44 views

WebServer is inaccessible

I have done an install of httpd and php on my new centos server. yum install httpd php -y I have done hundreds of webserver installs but for some strange reason I seem to be having troubles. When ...
2
votes
0answers
29 views

Apache reverse proxy configuration for multiple domains

I am newbie. I have 1 LAMP CentOS server, which hosts 3 websites with the following Apache httpd.conf configuration: NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> ...
0
votes
1answer
104 views

Allow only SSH, FTP and Cloudflare Servers via IPTables

I want to allow only SSH access, FTP access and all communications between my Dedicated Server and all Cloudflare Servers using IPTables. I tried the commands beneath but it seems like I kicked out ...
0
votes
0answers
24 views

RPM Dist Tag not behaving as documented

According to the Fedora documentation the %{?dist} tag when building an RPM on CentOS 7 I should get .el7. but currently I get .el7.centos. The line from my .spec: Release: 1%{?_buildid}%{?dist} I ...
1
vote
1answer
88 views

No write permission for Wordpress under Nginx in CentOS 7

I have a CentOS 7 machine with Nginx running and the user is "nginx" (tghe default one in CentOS). I've installed Wordpress, which is working perfectly, and I've give wrtite permissions for nginx user ...
0
votes
0answers
42 views

can't create volume on disk-based libvirt storage pool

I followed Red Hat's doc (to the letter) on adding a disk-based storage pool for my libvirt/kvm server. Here's what I see: [root@kvm ~]# virsh pool-info guest_image_disk Name: ...
0
votes
2answers
43 views

nodejs version on EPEL repository

Current stable node.js version is v0.12.2. I just run yum update on my machine and it updated node to v0.10.36. Why is my EPEL repo version so old compared to current stable one? Can I update node to ...
-1
votes
0answers
31 views

CentOS 7 power-off with high context switching and read I/O

I have recently set up my first CentOS 7 box. Its a dedicated quad-core server with 32GB ram. I want to use it as an KVM Hypervisor-System. But within two weeks, the server shut down twice with no ...
-1
votes
2answers
103 views

imapd: 'username': No such file or directory

I'm using Apache, Postfix, Courier IMAP and roundcube on my CentOS 7 machine. I would like to create a new user account / new user email to be able to send emails from my domain outside my local ...
0
votes
2answers
46 views

basic varnish 4.0 setup doesn't seem to work

[Apparently I was running varnishd as root] Now, I get this: [gideon@mywebsite ~]$ sudo varnishd -f /etc/varnish/default.vcl -s malloc,128m -T 127.0.0.1:2000 -a 0.0.0.0:8000 -d [sudo] password for ...