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

Apache 2.2 segmentation fault and bus error

Hope this doesn't go in as spam cause I've read many similar questions. While most of them only relate to seg faults I'm having bus errors as bonus. I'm running CentOS 6.4 x86_64 with Apache 2.2 and ...
-1
votes
0answers
24 views

How I can change all symlink to the new path [migrated]

Please, I want to change the symlink to the new path My symlink's in this form lrwxrwxrwx. 1 s01 s01 56 Mar 22 13:17 zmjppcxlpq2m.png -> /home/s01/public_html/cgi-bin/uploads/00029/zmjppcxlpq2m ...
0
votes
0answers
24 views

Can FPM make one RPM package that acts differently if systemd is being used?

I build an RPM using fpm for EL6 hosts. It installs a /etc/init.d script. However if that package is installed on an EL7 host, I want it to install a file in /usr/lib/systemd/system instead. Is ...
0
votes
2answers
57 views

Identify where and how background process are started and where they comes from

First the short story: I need to migrate a server (applications, configurations and so on) and I have no clue about what is in there, no docs, people at charge just abandon and didn't leave any ...
1
vote
0answers
40 views

Getting a specific CentOS base image with mkimage-yum.sh

Docker's mkimage-yum.sh does indeed work (awesome little script) but it pulls 6.6 (the latest with updates). I was wondering if it's possible to specify 6.5. I believe I can use yum.conf but the yum ...
1
vote
1answer
46 views

Installing Samplicator on CentOS

I'm trying to install Samplicator to test Netflow central collector and then forwarding to other collectors from there. I mainly want to use Samplicator due to it being able to easily sample the ...
1
vote
1answer
125 views

CentOS 7 with Red Hat Satellite 6

We're using Satellite 6 to manage our RHEL servers. For some side projects, we'll be using CentOS 7 to limit the costs. Of course we'd like to use Satellite 6 as well to centrally manage these CentOS ...
0
votes
1answer
205 views

Upgrading to PHP 5.6.7 using remi repos

I have PHP 5.6 enabled in my remi.repo file and none of the other sections are enabled the only other section enabled is [remi] itself. [remi] name=Les RPM de remi pour Enterprise Linux 6 - $basearch ...
0
votes
1answer
32 views

ipmi_si module is missing and can't be found

Looked all over google and stackoverflow; can't find an answer to this "simple" problem. Background: I have a Supermicro server running centos 6.5 kernal 2.6.32-431.29.2.el6.x86_64. I have been ...
0
votes
1answer
378 views

CentOS 7 installer: blank screen

I am trying to figure out CentOS 7 unattended network (PXE) installations in my setup, but the installer always ends up running into a black screen without interaction options. This is being tried in ...
-1
votes
1answer
79 views

How to delete all php files first line? [closed]

How to delete all php files first line? I used the following command, but it works only for present directory and not recursively. sed 1d file.php Please tell me the command or script which delete ...
0
votes
0answers
59 views

Random machine hangs with NFSv4 on CentOS/RHEL 6.5

We have an in-house "compute farm" with about 100 CentOS (free re-distribution of RHEL) 5.7 and 6.5 x86_64 servers. (We are in the process of upgrading all the 5.7 boxes to 6.5.) All these machines ...
1
vote
1answer
56 views

Nginx doesn't start using systemctl

I have defined a custom error_log for a virtual server inside it's directory like so: server { listen 80; server_name www.example.com; root /home/www.example.com; ...
0
votes
2answers
87 views

How to enable CentOS 7 to connect to an external SMTP? [closed]

I have a web application deployed in a webserver, running on a CentOS 7. This web application sends e-mails through an external SMTP (in-v3.mailjet.com, port 587). How can I enable CentOS to connect ...
1
vote
1answer
35 views

how to invisible samba folder from unwanted users?

How to hidden samba shared folders from unwanted users.The folder should be visible for that particular user.How to do it?
-2
votes
2answers
54 views

Automicly report brute forcing ip's [closed]

Hosting is awesome. But hackers and bots trying to break into your server are not. I actually hate them. So, today i launched a new server with directadmin. And all is great. But a few minutes after ...
1
vote
1answer
39 views

CentOS server not responding

I have a CentOS 6.5 server for hosting. It has sshd, httpd, mysqld, smtpd, dovecot, postfix, named working fine. but since last year I updated the server to PHP 5.4, MySQL 5.5, it starts having ...
1
vote
1answer
563 views

CentOS 6.6 with Nginx 1.6.2 - Suddenly can't restart nginx - nginx: [emerg] open() “/usr/share/nginx/on” failed (13: Permission denied)

This is a new install in which nginx previously started and stopped normally. I believe this error arose after enabling server blocks which tested (nginx -t) successfully. I then tried to restart ...
3
votes
1answer
80 views

Move home directory on Azure Linux VM

I continue to encounter an issue moving my home directory to a new disk on a CentOS VM on Azure. On creation the server is configured to use a SSH key for authentication and the "no password" option ...
3
votes
1answer
31 views

Additive SNMPd configuration in CentOS

I have a small program that I am preparing for release. As part of its functionality, it queries SNMP for a few statistics. The MIBs in question are installed by the default net-snmp package, but are ...
1
vote
2answers
196 views

Block ICMP timestamp & timestamp reply with firewalld

OS: CentOS 7.0 Per the results of a security scan, it has been suggested that we block ICMP timestamp & timestamp reply messages using the firewall (CVE-1999-0524). I've used firewalld to set up ...
0
votes
1answer
101 views

How to block an ip range in Firewalld

I know I can use the below command to block a single ip: firewall-cmd --permanent --add-rich-rule="rule family='ipv4' source address='115.239.228.12' reject" but I need to block all ips starting ...
0
votes
1answer
49 views

Php executes with different results in command line than when browsed to in Apache

I setup a CentOS 7 vm webserver with the LAMP stack. Over the last few days I have been trying to get an LDAPS connection working to my Windows Server 2008 R2 Domain Controller. I have been able to ...
0
votes
0answers
20 views

Preventing a read-write first automount after adding a VHDX onto a CentOS7 HyperV VM

I have a VHDX file (representing a non-boot ext4 fs) that I need to run some forensics on. I have a working CentOS7 HyperV VM on a Win2012R2 host. I want to attach the VHDX to the CentOS7 VM, which ...
0
votes
1answer
55 views

RPM or YUM equivalent of apt-get install libgraphicsmagick1-dev

I was using Ubuntu for development and one of the dependencies needs apt-get libgraphicsmagick1-dev now I need to deploy to a AWS EC2 which runs AMI and only support YUM or RPM, what the the ...
0
votes
1answer
17 views

Update Amazon EC2 Rightscale Centos for latest GLIBC

We've run into an issue on an Amazon EC2 instance where we need a later version of glibc. I understand I need to update Centos (current version is 5.6) to acheive this, and I've tried various ...
-1
votes
1answer
50 views

Centos running if - then command with multiple allowed values

Is there a way to run a if command in a script that can match multiple values for example I would push a script to a bunch of servers and each server would only run the command if the servers host ...
-3
votes
1answer
44 views

1 IP to multiple different physical web server / web server machines

My configuration [ OpenWRT on my Router ] [ Centos 6.4 , Apache 2.4.6 - Machine A ] [ Centos 7, Apache 2.4.6 - Machine B ] I've 1 IP address pointing to my OpenWRT Router. I had 1 WebServer ...
3
votes
1answer
55 views

SSH hangs for several minutes at a time

I can SSH into a server and run commands just fine, but usually within a minute or so the session will appear to hang (become unresponsive). I can type commands but they're not even echoed on the ...
0
votes
0answers
36 views

Vlan trunk between three switches and KVM Guests

I'am trying to find information regarding the appropriate configuration between three switches and KVM. More depth as per diagram. I need to create a tunnel for traffic created on sw1-port5 to be ...
2
votes
1answer
232 views

Apache CentOS 7 403 Forbidden Anyone?

I am trying to setup a situation where I can FTP to my Linux CentOS 7 server and update the web site files from my Windows 7 system. At this point I can FTP to my user's folder using vsftp ...
0
votes
2answers
79 views

Why am i getting execute binary file error?

Hi all i am getting following email every 10 min. as I own the VPS. I am not expert in linux and am learning to manage linux servers. Please help me why am i getting these emails and how to stop them ...
0
votes
1answer
21 views

Stop error logging of specific event [duplicate]

How do you stop logging of a specific event on a centos error_log. I have a file which is blocked via .htaccess but each time it is accessed I get a new line on the log saying: [Tue Jan 27 09:48:42 ...
3
votes
3answers
80 views

home dir and shell for Active Directory authenticated users

I have successfully configured sssd and can ssh into a system with AD credentials what I am missing is the creation of a home directory and bash set as the shell. My assumption is that if I log on to ...
0
votes
1answer
23 views

Howto forward traffic between multiple OpenVPNs

I have an OpenVPN server which hosts two VPN networks, one is bridged and the other one is routed. See the following draft: The VPNs are working quite well while they are used in isolation. But if ...
-2
votes
1answer
24 views

Centos system. It cannot generate pictures according to apache server [closed]

My system is centos6,I have written a php script and a python script and the php script will invoke the python script.And the python script will invoke two software:blast and RNAfold,it will generate ...
0
votes
0answers
27 views

Redhat configure sftp

I would like to give someone in a different dept read only sftp access to a certain dir on a redhat 6 server. Easier said than done I've found. I've followed a guide like this one to setup the user to ...
-3
votes
1answer
37 views

Replace a string in CentOS filenames [closed]

I have a CentOS server (version 6.6) , This server contains many folders and files but all the files have a string in their names . For example : The-first-show-(www.mysitename.com).mkv I have ...
3
votes
1answer
75 views

How can I confirm if my vmxnet driver is installed on my CentOS server?

I have an appliance running CentOS 5.x on VMWare ESX. Quite recently I upgraded it to a newer version of CentOS (still in 5.x) and I noticed that the network card wouldn't initialize. If I run ...
0
votes
1answer
567 views

Installing Redis on CentOS 6.6 , yum keeps using redis-2.8.14-2.el7.x86_64 (EL7) instead of EL6

Im trying to install redis on one of my servers. but i keep getting Error: Package: redis-2.8.14-2.el7.x86_64 (epel) Requires: systemd This is due to the fact that its trying to download ...
0
votes
0answers
20 views

sendmail process seems to hang

I got a centos machine that I am configuring send mail for. It has been working for the past couple of weeks. But around last week suddenly the sendmail stopped sending emails. var/log/maillog doesn't ...
-2
votes
3answers
118 views

Upgrade php version on centos 6.5

On the current stack i hv centos 6.5 (64 bit) , PHP 5.3 available. I'm a linux new bee & need to perform php upgrade to PHP 5.5. Tried following but that returned error: wget ...
0
votes
1answer
22 views

CentOS as a router — Can't get static IP adress for Internal Zone

I'm trying to make a router with a CentOS 7 box. enp2s2f0 ---> External Zone ---> directly connected to the internet. enp2s2f1 ---> Internal Zone ---> Connected to a PC (will be connected to a switch ...
0
votes
0answers
42 views

Rsyslog last line of old log retransmitted after log rotation

I have config setup on all my CentOS servers to forward all syslog messages to a Graylog server via rsyslog. In Graylog I have then configured streams to alert on the occurrence of certain message ...
0
votes
1answer
24 views

Multiple hop NX connection

I'm managing a set of servers on a private network with one facing the internet (ie. one public ip). Soon I'll need to start working remotely, and I'll need access to some graphical programs. I'd like ...
5
votes
2answers
102 views

Preventing specific folder deletion in CentOS

I have a CentOS server running PureFTPd with multiple virtual users mapping to a single system user. Each of these virtual users gets chrooted to a directory corresponding to their username. The ...
1
vote
1answer
101 views

Start a program with systemd

I'm trying to install the latest version of ProFTPd (1.3.5) onto a CentOS 7 box, and wound up having to configure and install manually. The reason is that EPEL's version of proftpd doesn't include ...
2
votes
0answers
27 views

Suexec PHP does not load php.ini

I'm using FastCGI with suEXEC for PHP on CentOS 7. My wrapper script looks as follows: #!/bin/sh PHPRC=/home/ben/etc/ export PHPRC export TMPDIR=/home/ben/tmp/ exec /usr/bin/php-cgi -c ...
1
vote
1answer
40 views

Users currently requesting pages

I wrote this command on my shell to get the current requests to the server ps aux | grep php | wc -l result: 68 so this command returns that 68 currently browsing some sites on my server as i ...
0
votes
0answers
108 views

FreeIPA Install on CentOS 7 - “Cannot contact any KDC”

I am trying to install a new stand alone instance of FreeIPA on CentOS 7. I am doing this in an Amazon AWS EC2 environment. The install completes flawlessly every time, however, when I attempt to ...