Questions tagged [centos6]

GENERAL SUPPORT QUESTIONS MAY BE ASKED ON SERVER FAULT https://serverfault.com CentOS is a Linux distribution aiming for 100% binary compatibility with RHEL.

is a free operating system distribution based upon the Linux kernel.

Version 6 was released on 2011-07-10 and uses kernel version 2.6.32-71.

1576 questions
31
votes
9 answers

How to correct system clock in vagrant automatically

How to Correct Timezone Last time, I figured out how to adjust a system clock in vagrant server. However, when I halt the vagrant and start it again, the system clock is always 9 hours late. I can adjust by using ntp command manually, but I'd like…
Sho
  • 343
  • 1
  • 3
  • 9
31
votes
4 answers

NSS: client certificate not found (nickname not specified)?

I'm trying to access a third-party service via PHP curl on a Centos 6 system which comes with curl and libcurl compiled against NSS instead of OpenSSL. This is causing problems for me, every time I try to access the service I get this error NSS:…
Jason
  • 411
  • 1
  • 4
  • 4
23
votes
2 answers

How to install python27-devel on Centos 6.5

I have installed python 2.7.6 from source, but can't find how to install python-devel for python 2.7 yum install python27-devel doesn't work. How to install it?
Deadly
  • 2,034
  • 6
  • 24
  • 32
23
votes
9 answers

MySQL Workbench (version 6.0.8) SSH Authentication Issue

I am trying to connection to a MySQL server on Host X through machine Y over SSH. The same setup (but older version of MySQL workbench) works on my another box (CentOS 6.3). However, the same setup doesn't work on my CentOS 6.5. I tried to use the…
Hei
  • 1,844
  • 3
  • 21
  • 35
22
votes
1 answer

Idle postgres processes taking up lots of memory

I am trying to figure out why ~30 idle postgres processes take up so much process-specific memory after normal usage. I am using Postgres 9.3.1 and CentOS release 6.3 (Final). Using top, I can see that many of the postgres connections are using up…
mtalcott
  • 608
  • 1
  • 4
  • 11
22
votes
4 answers

How do I know which linux user Wordpress uses for plugin installation

I'm trying to setup Wordpress to be able to install plugins via SFTP (SSH) on a Centos 6 VPS. I've been able to modify wp-config so it uses the right credentials with user as my SFTP user. Now I have a permission related problem, as if I do a chmod…
Geoffrey H
  • 1,280
  • 2
  • 10
  • 33
21
votes
3 answers

Locale Error in centos

Every time I login to my CentOS 6 server through SSH I get this error Can anyone please explain what does that error mean & how to fix? -bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Seif Hatem
  • 1,433
  • 2
  • 12
  • 20
19
votes
3 answers

What does the ${-#*i} mean in shell script?

There is a for loop in the file /etc/profile on CentOS 6: for i in /etc/profile.d/*.sh ; do if [ -r "$i" ]; then if [ "${-#*i}" != "$-" ]; then . "$i" else . "$i" >/dev/null 2>&1 fi …
Ren
  • 2,852
  • 2
  • 23
  • 45
19
votes
6 answers

Key issue with installing RVM (Ruby Version Manager)

I am trying to install the Ruby Version Manager( RVM) on my CentOS 6.6 machine. I followed the instructions on the home page at https://rvm.io/rvm/install When I run this command : gpg --keyserver hkp://keys.gnupg.net --recv-keys…
user1805458
  • 1,081
  • 3
  • 9
  • 21
19
votes
1 answer

Switch java version on CentOS 6

I have a CentOS 6 virtual box with Java 1.7 present. $ java -version java version "1.7.0_51" OpenJDK Runtime Environment (rhel-2.4.4.1.el6_5-x86_64 u51-b02) OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode) $ javac -version javac 1.7.0_51 I…
Olivier Grégoire
  • 33,839
  • 23
  • 96
  • 137
19
votes
17 answers

MySQL Daemon Failed to Start - centos 6

EDIT: Look at the checkmarked answer comments to get your issue solved. Whenever I try to start the SQLD service I get MySQL Daemon Failed to Start. I infact tried to "start" the service by doing the following: service mysqld start Also When I…
Travis
  • 395
  • 2
  • 3
  • 11
18
votes
2 answers

Is it possible to mount an ISO inside a docker container?

I am using a docker container (based on the official centos:6.4 image) to build an ISO which I then need to mount and verify. I am unable to mount the ISO using: sudo mount -o loop /path/to/iso /mnt Gives: mount: Could not find any loop device.…
pxul
  • 497
  • 1
  • 3
  • 13
17
votes
5 answers

Fixing "warning: GMP or MPIR library not found; Not building Crypto.PublickKey._fastmath" error on Python 2.7 with CentOS 6.4

I'm running a CentOS 6.4 server with Python 2.7 (installed via PythonBrew script) I have gmp installed via 'yum install gmp' and python-devel installed via 'yum install python-devel' (but it's for python 2.6 series) I'm trying to install pycrypto on…
user269334
  • 539
  • 1
  • 6
  • 13
16
votes
3 answers

Build docker behind VPN

At the project I am at now, we have Github Enterprise set up behind a VPN, so I use OpenVPN to connect with my desktop (Ubuntu 14.04 LTS), but when I try to build with Docker (using Centos6) I always get ssh: Could not resolve hostname…
Kyrremann
  • 571
  • 1
  • 5
  • 16
16
votes
2 answers

Nginx to allow only POST requests for certain URL's

I have an application which will be served using GET & POST method's. For better security, I have configured Nginx to serve the pages using only POST requests. Below is the config I have used in Nginx. Config in Nginx: if ($request_method !~…
user3119077
  • 189
  • 1
  • 1
  • 5