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

2
votes
2answers
924 views

How to open port for a specific IP address with firewall-cmd on CentOS?

I would like to open port 4567 for the IP address 1.2.3.4 with the firewall-cmd command on a CentOS 7.1 server. How can I achieve this, as the documentation I could find was too specific on this?
0
votes
1answer
40 views

xinetd port forwarding causes HttpServletRequest.getRemoteAddr() to always return 127.0.0.1

We're attempting to identify where specific requests are coming from inside our Java application. We have changed the log files to include the IP address and we're using ...
0
votes
1answer
120 views

Postfix and dovecot can not receive mail

I setup a mail server (with multiple virtual hosts) on a VPS. I used postfix, dovecot, postfixadmin, squirrel and mysql. I can send mail by squirrel, but can not receive any mail. This is my ...
0
votes
0answers
42 views

LXC containers - Duplicate tty on Gentoo guest

I'm trying to run Gentoo inside LXC container on Centos 7 host machine. I have prepared the guest OS on another (Gentoo) machine by following this tutorial https://wiki.gentoo.org/wiki/LXC. On this ...
1
vote
1answer
951 views

systemctl throwing errors on start/enable after package instal [duplicate]

In the effort to lock down a new Centos box I am building I am installing iptables. I would like to be able to put this in a script so I can do this to other boxes but I am getting some odd errors ...
0
votes
1answer
98 views

What is Slab, SReclaimable and SUnreclaim? What does Slab solve and how does it behave under load?

I have a server with 32 gigabytes of ram, with htop reporting 29 gigs used, with 4 gigs of swap in use as well. cat /proc/meminfo returns around 13 gigabytes of memory listed as SReclaiable. What ...
0
votes
0answers
50 views

Centos internet sharing with dual WAN and subnet routing

Situation is like this: eth0 has internet access with VPN for 2 subnets 192.168.2.x nad 192.168.30.x eth1 has internet access eth2 is the one to be the connection to allow internet connection ...
0
votes
1answer
93 views

Centos 7 Apache 2.4 php_fpm 30 second timeout

I need to set execution timeout for Centos 7 Apache 2.4 php_fpm, but there seems to be a hard coded timeout somewhere in the Apache proxy. I see max_execution_time correctly set (to 300) in ...
1
vote
2answers
38 views

Where is WSGI installed on Centos?

I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
0
votes
0answers
237 views

NameVirtualHost *:80 and 443 has no VirtualHosts on centos

Since I added IPs to my server, I have a lot of issues when starting apache. I always have these errors below: [warn] NameVirtualHost *:443 has no VirtualHosts [warn] NameVirtualHost *:80 has no ...
5
votes
1answer
388 views

Can I allow root to su any other user? [closed]

I have this centos VPS with 5 accounts; then I enabled one user to ssh, disabled root login, and have shell disabled for every other user account.. Is to possible to permit root to su the other ones ...
1
vote
1answer
41 views

How can I allow users to reset their Linux user passwords from a web interface? [closed]

I am running SAS Visual Analytics on a cluster for my department. I want the users to be able to set and reset their own password for their user account. Users and Passwords for the application are ...
1
vote
0answers
47 views

How to add a partition to CentOS without losing data on it

we had a CentOS 6.4 server with two RAIDs. One RAID-1 and the other RAID-5 RAID-1 had multiple partitions with OS installed on it. RAID-5 had two partitions with some data on it. In order to ...
5
votes
2answers
538 views

Which Linux package contains the 'top' command?

Many of the common utilities in Linux either come packaged in util-linux from Linux Foundation or coreutils from GNU. The man page for top doesn't specify anything. I am using CentOS.
3
votes
2answers
145 views

CEPH's raw space usage

I can't understand ceph raw space usage. I have 14 HDD (14 OSD's) on 7 servers , 3TB each HDD ~ 42 TB raw space in total. ceph -s osdmap e4055: 14 osds: 14 up, 14 in pgmap v8073416: ...
1
vote
0answers
101 views

systemd Unit file for GitLab

I am currently writing a Puppet module to get GitLab running on CentOS 6/7. For the CentOS 7 install I need to write a systemd unit file to start the gitlab service (which is actually Unicorn & ...
4
votes
1answer
220 views

Apache shuts down unintentionally

I must say that I am not the guy that set up the server, but the poor sap tasked with finding out what is happening for the time being. I only have a rough knowledge about apache and linux, so ...
-1
votes
1answer
72 views

Curious what server pam_pwdfile is in var/log/messages

I am getting tons of these messages in my /var/log/messages file Apr 16 06:58:20 server pam_pwdfile[7856]: couldn't open password file /etc/techproxy.shadow Apr 16 06:58:20 server pam_pwdfile[7863]: ...
0
votes
1answer
106 views

Website takes a long time to first byte [duplicate]

Recently, I migrated a joomla 2.5 site with K2 from a shared host to a dedicated web server with 1 GB of RAM and 8 CPU cores. My problem is now that the website loading is very slow, much slower than ...
0
votes
0answers
48 views

Remote packet capturing using fifo and dumpcap

I'm currently working on two linux servers where one server is running in 2.6.18-274.el5(Server A) and the second one in CentOS 7 (Server B). My requirement is to capture the packets of the network ...
1
vote
0answers
143 views

Dell r730 + Dell 12Gb SAS + Centos 7 + netvault 9.2 quantum superloader 3 not found

In the above configuration Netvault does not find the library attached to the sas controller. What driver should I see with lsmod for the SAS card? I have: ... mpt3sas 195379 0 ...
0
votes
2answers
97 views

CentOS 7 won't connect to external MySQL database. Database works from other servers

I have a new CentOS server set up, with Apache and php-fpm. The php application fails to connect to an external MySQL server. This server is reachable from other servers, the firewall on the database ...
-1
votes
1answer
38 views

SFTP and SSH Logins [duplicate]

I've been doing my research and found some clues as to where I should be looking, but just can't quite get it perfect. I'm trying to create a new user, and allow them to have access to SFTP for file ...
15
votes
2answers
339 views

How to uninstall newly installed dependencies for a RPM package?

Is there an easy way to make a list of the dependencies a newly installed RPM package will install with yum? Example: If you do yum install ruby then it will also install some rubygems. But when I ...
0
votes
0answers
40 views

is there a way to determine what process has written a file? linux [duplicate]

The answer marked as duplicate is not related to my question which is very specific. I need to know if there is a command or information stored on linux about how a particular file was written please. ...
0
votes
1answer
41 views

Server ran out of HD room

A rogue script brought my centOS-based server to its knees and resulted in 0 bytes of HD room left. I since fixed the issue and everything seems to be running normally. So my question is, what ...
0
votes
0answers
16 views

Converting Bro IDS output to CSV

I have Bro-IDS currently operating under Centos 7. I need to convert the output to CSV format. The documentation that I have seen on this is not clear to me. Has anyone done this successfully? I have ...
-1
votes
1answer
64 views

Cannot Access remote CentOS machine using VNC

I am trying to connect to a remote CentOs machine through VNC to get a graphical display. I have followed the steps mentioned in https://www.howtoforge.com/vnc-server-installation-centos-6.5 to ...
1
vote
1answer
51 views

MySQL PID Errors

While attempting to change the MySQL server timezone to CDT to match the Centos sytem time, something has messed up. I edited the my.conf in /etc/ in vim logged in to SSH as root, and saved it. On ...
0
votes
2answers
215 views

100% CPU usage on my CentOS VPS

I have a 512 MB VPS and hosting 2 WordPress websites on this CentOS server. I have installed apache + mysql + PHP + fast cgi on this server. Everything was working great from last 6 months. I have 500 ...
-3
votes
1answer
80 views

unable to update php version to 5.5 on centos

i want to update php version centos via ssh , i ran "yum update" command on server but it did not update php version, how can i do it . Please guide. My centos version is 6.6
0
votes
1answer
75 views

How to debug 403 error on Cent OS?

I'm trying to install phpMyAdmin and I'm getting a 403. /etc/httpd/conf/httpd.conf <Directory /usr/share/phpMyAdmin/> Order Deny,Allow Allow from all </Directory> ...
0
votes
0answers
26 views

iptables, after specifying an interface to drop traffic it drops all traffic of all interfaces

We have currently the situation that one interface (eth0) is linked to the internet. and we 2 other devices (eth1/eth2) for management purposes. Now the idea is to block off eth0 completely from the ...
-1
votes
0answers
30 views

Fallback to status page on a different server [closed]

Recently we had some server troubles. While we can't avoid any in the future, we can be transparant to customers about the server availability. We want to fallback to a different server (status page) ...
0
votes
0answers
102 views

XenServer CentOS VM: EXT4-fs error (device dm-2): ext4_journal_start_sb: Detected aborted journal

I have 2 different CentOS 6.4 VM's on 2 different Citrix XenServer and both have the same error within couple of few days. Output of messages: kernel: Aborting journal on device dm-2-8. kernel: ...
0
votes
0answers
245 views

Bridge on vlan on teaming for KVM

I have problem to create bridge on vlan on teaming. Why I do something like that? - Kvm needs bridge - Vlans because I need vm’s in different subnets - Teaming in option active-backup (small HA) I do ...
0
votes
1answer
95 views

How to change lsync log level or completely disable it?

I'm using lsync for incremental backup. After 6 month it generated about 6GB log file in /var/log/lsyncd/lsyncd.log. I decide to change log level to reduce log generation. there is an option '-log' ...
0
votes
0answers
227 views

How install libgnutls.so.26 on Centos 7.1?

I'm following this tutorial to install ffmpeg on my server. When I'm configuring the source I get the problem: ffmpeg headers not found. In that tutorial they say: To Fix: Just install ...
0
votes
1answer
44 views

Admin has no rights, not even to own desktop

For some reason my admin account lost access to everything. I can't see any files on my desktop; When I try to open a file I get the error Nautilus could not create the following required ...
1
vote
2answers
47 views

How do I drop requests from dig?

Basically I'm getting tons of request to my named/bind service, basically those requests are being rejected by named, Those are the messages i get, from tons of ips., How extacly can I drop those ...
1
vote
0answers
66 views

CentOS 7 doesn't recognize new Active Directory accounts/settings

I joined a CentOS 7 system to a Windows domain by syncing the time with the DC and running realm join --user=admin@mydomain.local mydomain.local. This allowed me to authenticate my login to the CentOS ...
-1
votes
1answer
75 views

Installing TF-3200 to Centos 7

I have plugged in a separate network card named TF-3200 to the PCI port. I also have ensured that the card is detected by using lspci command and it gives, 01:02.0 Ethernet controller: Sundance ...
0
votes
1answer
32 views

cant turn on mysqld. I moved mysql to an XFS directory and pointed it there

hey guys hopefully someone has the answers for this but these are my errors ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) and in my ...
14
votes
2answers
367 views

NFS poor write performance

I have two machines connected with 10Gbit Ethernet. Let one of them be NFS server and another will be NFs client. Testing network speed over TCP with iperf shows ~9.8 Gbit/s throughput in both ...
0
votes
0answers
27 views

CentOS wrong outgoing IP address on forward

I have a rather strange behaviour for me in here. I am trying to forward traffic between two interfaces (one being a bridge) but will not work as intended. Here is the setup: Kvm host has br0 ...
0
votes
1answer
77 views

Adding a VLAN to Multiple Aliased (Virtual) Interfaces

I have a server running centOS 4.6 with 4 NIC ports. I successfully set up 2 ports with 32 virtual interfaces to handle my VLAN-untagged connections and have no issues with that side of things. ...
-1
votes
1answer
39 views

Many connections in state, How I can prevent this more # number

Please, by this command I can know the number of connections for each IP: netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1 Sometimes greatly increase the number of contact ...
3
votes
1answer
389 views

systemd: how do I view journals with journalctl without switching to root on CentOS 7?

If I run journalctl as nonroot, I would get the following message: No journal files were found. But switching to root, or using sudo gives me the journal. How can I view journals without switching ...
0
votes
1answer
212 views

Get real time CPU usage of linux process with single line command and as a simple result

I've searched everywhere and found nothing about this. I'm trying to create a small gauge that shows the CPU usage of one process specified by PID. I need the command to print a simple answer , hence ...
0
votes
1answer
22 views

Apache AllowOverride Based on Directory

Background Small team(4 people, 2 devs, 1 server admin, director) Three internal applications, one per server. httpd.conf is set to AllowOverride None on / None of our team members are accustomed to ...