Tagged Questions

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

Apache starts with “Syntax error on /etc/httpd/conf/httpd.conf: Invalid command 'remove'”

After I changed php.ini max file upload size and the max post size, restarting apache shows the error in the title. Why? And how to resolve it? # vi /etc/php.ini # service httpd restart # service ...
0
votes
0answers
137 views

Virtual Hosting on Centos 7

I'm trying to set up Virtual Hosting on my server which is running Cent OS 7. I have done the following but it is not working: created a file called called vhost.conf in /etc/httpd/conf.d Add the ...
2
votes
1answer
69 views

What is yum “running transaction test”?

There are many questions and answers on the internet about the "Running transaction test" notice which appears after a yum update. These questions usually concern what to do if it gets stuck. My ...
1
vote
1answer
19 views

Where to install custom apps and data following FHS

This is something that has always confused me. Where do I install custom apps that are written by my team? Apps like report runners, queue->database writers, etc. i.e. the apps that are the reason the ...
0
votes
0answers
70 views

Rails Permission Error on Sub-URI with Passenger, Apache, & Centos

I have a rails 4 application installed on a machine running centos 6. I have Apache serving up another application and I'm try to mount the rails application at a sub-uri. To aid deployment I've ...
0
votes
1answer
48 views

Client host rejected: cannot find your hostname + SMTP

I have a VPS configured with dovecot. Now for some of the mails that I send are rejected with the following error: Any Clues?
0
votes
1answer
92 views

RSyslog sends logs to logstash with host as IP not FQDN

I am having a issue. I am trying to send apache/nginx logs to logstash server. The problem is that rsyslog sends host as IP not the servers FQDN. Solutions that I have tried: PreserveFQDN on (did ...
0
votes
2answers
39 views

Prevent Rsync and SCP from causing page timeouts on LAMP server

I'm trying to run Rsync to move static files from our Dedicated server to our new cloud server. The following command works but when it runs it is stopping any web pages being served rsync -azP ...
0
votes
1answer
41 views

389 Directory Server - Multiple Domains

I have multiple business that i would like to authenticate to a single server for SSO. I am using 389 directory server and have already split each domain into it's own respective OU. I would like to ...
0
votes
1answer
105 views

Increasing nproc for processes launched by systemd on CentOS 7

I have successfully increased the nofile and nproc value for the local users, but I couldn't find a proper solution for the processes launched by systemd. Adding max_open_files to the MariaDB ...
3
votes
1answer
90 views

RHEL/CentOS - Is it possible to update packages only up to a certain release date?

Technically speaking, if one wanted to update a RHEL or CentOS server using yum, but only up to a certain release date (i.e. don't install any updates released after X date), would it be possible and ...
0
votes
0answers
52 views

centOS7 persistent routing issue

I have google a lot but still cant find a working way how to make persistent some routes on centOS7. [root@asd network-scripts]# route -n Kernel IP routing table Destination Gateway ...
0
votes
1answer
446 views

upgrade CentOS from 6.5 to 7 in an EC2 Instance

How can I upgrade CentOS from 6.5 to 7.0 under Amazon Web Services EC2 instance? I have added the redhead upgrade tool to my repository and installed it, called the preupg and then imported the ...
2
votes
2answers
213 views

pam_ldap and ldaps can't contact ldap server

I'm trying to allow authentication via LDAP on a CentOS host system. But I always get a Can't contact LDAP server error from pam_ldap. The LDAP server is pingable and authentication works perfectly ...
-1
votes
2answers
67 views

Pure-FTPd is running as root by default on CentOS

I just installed Pure-FTPd (pure-ftpd-1.0.30-1.el6.x86_64) on my CentOS 6.5 server. I'm using "virtual users", so the FTP users are disconnected from the system accounts. Nevertheless, the pure-ftpd ...
2
votes
1answer
108 views

CPU error messages shown in console during boot — “CPU1: Stuck ??”

I recently installed a second CPU into a server. The CPU is identical to the first and I verified that the CPU is in good working order prior to the installation. The server booted up and I installed ...
0
votes
1answer
64 views

Centos7 not allowing nfs to be served

I just did a fresh centos7 and fedora 20 install on 2 systems. I have several current systems running on the network and can connect to an existing nfs share no problems. when any system triest to ...
0
votes
1answer
89 views

Dovecot Authentication failed if trying login with @domain

When I try to test my IMAP server functionality using telnet I encounter the following error. If during the test i omit the @domain.ex everything works fine(as you can see below); a login user ...
0
votes
0answers
45 views

Sharing Collectd data with Apache on CentOS (SELinux)

My CentOS 7 VPS has SELinux enabled and is monitored by Collectd. It uses rrdtool to log the reported data. Pommi released a great solution that made me able to review all data on a webpage called CGP ...
1
vote
0answers
48 views

Naming convention for /var/lock/subsys on sysvinit with multiple pids

In this Tips and Tricks article from Red Hat, it is said: When a service is started through an init script, a file is touched in the /var/lock/subsys/ directory with the same name as the init ...
0
votes
0answers
78 views

Shipyard deploy error. It Don't map docker socket

I have installed Centos 7 and docker (Server version: 0.11.1-dev). I'm following the quickstart of Shipyard. I pulled the docker image shipyard/deploy: docker pull shipyard/deploy When I run ...
1
vote
1answer
53 views

CentOS / PostgreSQL. How to keep connections open?

I would like to keep connections open on PostgreSQL for N time. I am not having problems keeping PostgreSQL itself open. The issue is that when the connection is idle for a few minutes, the ...
0
votes
1answer
47 views

blocking ip on linux(CENTOS) [closed]

I m blocking an ip from my centos server using iptables: iptables -A INPUT -s $ip -j DROP service iptables save however my ip is still able to access the ip and even view websites hosted on this ...
4
votes
1answer
211 views

Is there a timeout for init.d scripts running during boot process?

I am creating a few scripts that are being registered to execute on server start on CentOS 6.5. One of this scripts has a while loop that blocks until it finds a successful start message on the log ...
2
votes
1answer
39 views

MySQL replication slowing master

We are currently running MySQL 5.1 Quick Overview We use 5 web servers ( Apache ) all connected to 1 DB server ( MySQL ) hosted on the cloud. The DB server running on the cloud ( Master ) ...
1
vote
1answer
11 views

OGE no value for load_avg

There is a problem with my OGE configuration. The load_avg for the nodes does not get set (remains at -NA-). Because of this and because of the np_load_avg threshold on the queue no jobs are being ...
0
votes
0answers
35 views

One click deployment on a VPS for a backbonejs + nodejs application

I have a application built on top of nodejs, backbonejs, requirejs, expressjs, mongodb etc. I have deployed the application on a cloud VPS running on CENT OS. Every time a client asks me to make a ...
1
vote
1answer
99 views

Simple fencing/STONITH script in Centos 7

I am installing a simple Corosync/pacemaker/drbd high availability cluster using Centos 7 and would like to provide fencing/STONITH using custom hardware (power switches using USB connections). As ...
0
votes
2answers
824 views

No mysqld or mysql.server after mariadb-server install

So... likely I'm an idiot, but I'm stuck. I just set up a CentOS 7 on Digial Ocean and I can't seem to get the MariaDB/MySQL server running. Some output [root@hostname ~]# yum list installed |grep ...
2
votes
1answer
117 views

What is the recommended method to prepare Red Hat/CentOS 7 templates?

If I need to deploy Red Hat 7 from template, I would like to take the recommended steps to make my "golden image" clean. It should boot to the first boot prompt and guide the user through the typical ...
0
votes
1answer
138 views

Only allow user SSH access to one directory

I have a server running Centos 6.4 and I need to allow a freelancer access to one folder on the server to upload some code and do some testing - I have set their home directory in /etc/passwd to: ...
1
vote
0answers
57 views

Using my IPs on OVH server via GRE

I can't route my IPs into a OVH server, can you help me to find the problem? Mikrotik GRE IP: 192.168.55.10 OVH Server GRE IP: 192.168.55.20 GRE iface name: ali1_fr1-ovz1 IP to route from Mikrotik to ...
1
vote
1answer
76 views

nginx always gives 500 error for JS file after I change it

I'm running nginx on a local CentOS 6.3 server. I have a particular javascript file that loads in a webpage. If I change the javascript file, and refresh the webpage, I always get a 500 error. Then ...
0
votes
0answers
303 views

What is the best way to backup and restore a CentOS 7 server, using rsnapshot?

I recently made a backup of a CentOS 7 server using rsnapshot - version 1.3.1 and rsync -version 3.0.9 I made a few changes to the rsnapshot.conf file, which are listed below. I uncommented the ...
1
vote
1answer
39 views

Postfix from address changed, mail being bounced

I have an Apache server which has been happily sending emails for the past few years - earlier this week the from address on all emails sent by postifx has changed and, as a result, 99% of messages ...
1
vote
1answer
70 views

SELinux preventing Apache from writing to a file

SELinux is preventing the apache user from writing to a log file which it owns. When I do setenforce 0 it works. Otherwise it shows this error IOError: [Errno 13] Permission denied: ...
0
votes
0answers
10 views

service openpanel start outputs loading modules failed

When I run: service openpanel-core start I get: writing RSA key [....] Starting Openpanel core daemon: openpanel-core Error loading modules failed! Any thoughts on how this could be solved? I only ...
-1
votes
1answer
44 views

How to use Exim/Sendmail to stop sending email and log it that arrived via a certain SMTP server?

I have multiple accounts on this cpanel box. if someone sends an email to one of the specific cpanel accounts, e.g. smtp.some-cpanel-account.com, then it must rather be blocked and logged to file. Is ...
1
vote
2answers
1k views

Centos 7 save iptables settings

Problem: iptables resets to default settings after server reboot. I'm trying to set rule like this: iptables -I INPUT -p tcp --dport 3000 -j ACCEPT after that I do: service iptables save and it ...
0
votes
2answers
134 views

drbd service not startable / WFConnection

I recently migrated my drbd setup from Ubutnu to centos 7 and i get a wierd error: i can load and unload the module normally, and the whole thing seems to work #>modprobe drbd #>lsmod | grep ...
0
votes
1answer
92 views

CentOS: DHCP Server and DHCP relay on same machine

eth0 IP: 192.168.1.100 Alias interface eth0:dhcp IP: 10.10.1.100 dhcpd.conf: authoritative; local-address 10.10.1.100; subnet 10.10.1.0 netmask 255.255.255.0 { range 10.10.1.10 10.10.1.50; ...
0
votes
0answers
22 views

zend guard - Cannot run code from this file in conjunction with encoded files

I have problem. After upgrade PHP from 5.3.3 (base centos repo) to 5.3.29 (IUS repo). Some websites was down (no data returned). So i try disable load .so Zend Guard. All is ok, but I need have load ...
0
votes
0answers
71 views

How do I increase the curr_connections limit using memcache?

I am using a server with Centos 6.5 64 bits Kernel 2.6.32 and 64 GB RAM and 12 threads cores, and I cannot get increase the current connections used in memcache. This is my STATS output: # echo ...
0
votes
0answers
49 views

Meaning of “scope link” when adding default route via different subnet

I've noticed different behavior when using or not using "0.0.0.0" as the gateway for host routes (and trying to understand that). I'm using CentOS 6.5 and attempt to add a default route via a host ...
0
votes
1answer
337 views

How can you install puppet on CentOS 7

CentOS 7 comes with ruby 2.0.0.353-20.el7. I'm trying to install puppet there, and running into errors. First I run: rpm -ivh http://yum.puppetlabs.com/puppetlabs-release-el-7.noarch.rpm rpm -ivh ...
0
votes
0answers
138 views

Samba server on CentOS sees shared directories, but no files visible

I have a very basic samba share for a development environment. There is a directory /var/www/ owned by www:www. All subdirectories are also owned by www:www. All users are members of the www group. ...
1
vote
1answer
59 views

VM with 2 network cards

I have a VM with 2 network interfaces which is running CentOS. One connects to a private network (192.168.6.x) and another to our company wide network. When I try to ssh the private address from a ...
3
votes
1answer
66 views

Centos 5 - Using official repository to upgrade manually installed Puppet server

I have Puppet server version 2.6.4 that was manually installed using RPM packages directly (instead of using Yum to fetch packages from a repository). Now I want to upgrade it to the latest version ...
0
votes
0answers
52 views

Analyzing PHP Scripts to Identify Source of Intermittent Website Performance Issue

My site has been getting some hits on performance as of recently. About half the time, my site will run smoothly, while at other times it loads ridiculously slow. My server is running on CentOS 5. I ...
0
votes
0answers
91 views

Yum update coreutils failed

I got error update coreutils. Here is console log root@server70 [~]# yum update coreutils Loaded plugins: fastestmirror, refresh-packagekit, rhnplugin Loading mirror speeds from cached hostfile ...