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

Settings don't match when script runs (automatically) on startup with manual call

i have an init.d service wich simply calls node.js program cd /impress whoami > whoami.txt nohup node --stack-trace-limit=1000 server > /dev/null 2>&1 & The task of that programm ...
2
votes
2answers
79 views

SELinux - logrotate is not rotating NGINX logs

I am using CentOS, NGINX and Passenger to serve a Rails application. I have SELinux activated, and have had a series of problems with logrotate. I have been able to resolve most of the issues by ...
2
votes
1answer
4k views

Starting Tomcat 7 as a user - init.d script can't write pid

I want to run Tomcat 7 as a user on CentOS 6. I've created a user tomcat:tomcat and changed the ownership under /var/lib/apache-tomcat* etc... There are lots of docs online on how to do that but I ...
0
votes
1answer
1k views

“Disk Not Found” Error when trying to install iso image of CentOs on ESXI using VSphere

When trying to install CentOs setup as an iso image on datastore, i get an error : "Disk Not Found". I am using ESXi 4.1 as host VM. Is there a way to attach DVD/CD as iso image ? I tried "Connect at ...
2
votes
4answers
2k views

Monitoring memory usage on Linux system

We use WhatsUp Gold to monitor all of our web servers. On our Linux servers (and much to the same degree, our FreeBSD servers) I'm having a little bit of an issue with the memory monitors. We're using ...
0
votes
0answers
22 views

Printing HTTPS Webpages in CLI

I have a CentOS 6.6 server, and I am trying to print https://* webpages using the following commands: html2ps https://mywebsite/blah.html | lpr My printer prints out a paper for all HTTPS print ...
2
votes
2answers
1k views

Nginx custom internal error page when upstream is down

I am new to Nginx and have a reverse proxy to an upstream glassfish server. I am trying to set up a custom 503 page for when the app is down for maintenance. I have been failing to do so for several ...
0
votes
1answer
114 views

LDAP Replica with TLS

I'm having trouble to run the replica LDAP with TLS, without TLS, all works !! Provider and Consumer are identical CentOS release 6.5 rpm -qa | grep ldap openldap-clients-2.4.23-34.el6_5.1.x86_64 ...
1
vote
0answers
35 views

Append DNS suffixes to /etc/resolv.conf [migrated]

Is it possible, and how do I configure CentOS 6.6 so that /etc/resolv.conf will obtain its configuration via DHCP, but will also have additional domain names added to the search line? Bonus points if ...
1
vote
2answers
167 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 ...
1
vote
1answer
23 views

SELinux - first attempt to restrict file by type - fails to fail

I have a Centos 6 Linux box. I read tutorials on SELinux and wanted to try it out. Here are steps I followed, set SELINUX=enforcing in /etc/selinux/config turned on SELINUX with setenforce 1 service ...
0
votes
1answer
292 views

Database connection to postgresql refused for flask app under mod_wsgi when started by systemd

I'm having a weird problem where a flask application I am trying to run (https://github.com/pyfarm/pyfarm-master) under mod_wsgi under Apache under CentOS 7 cannot connect to a local postgresql server ...
0
votes
0answers
62 views

upstart CentOS vs upstart Ubuntu is there any difference between them?

I'm moving some server configurations from Ubuntu Server 12.04 to CentOS 6.6. Now I'm working on /etc/init script that should be handled by upstart at both OS as far as I know. The files on both ...
2
votes
2answers
158 views

Custom WHM PORT [closed]

I saw many webhosting companies are changing WHM Port and limiting it's access with the browser user-agent to be only accesses by a specific user-agent. They are using User Agent switcher addon via ...
5
votes
1answer
2k views

Convert exisiting CentOS install to a LiveCD

I would like to create an image of my existing CentOS from hard drive to a livecd. I don't want to customize an installation cd, because I have many installed software which does not have RPM's. I ...
-1
votes
0answers
10 views

How to cronjob a .sh file which contains shell script for copying files form one server to another [duplicate]

I have tried to set the cron with root access as well as without root access. I am rather new to shell script and cannot make to execute the cron for executing a .sh file. Please help guys.
2
votes
1answer
88 views

Website not loading static files when NGINX has static cache content enabled

I have a VPS running CentOS with NGINX/PHP-FPM. Everything works fine, except when I add the following lines to enable the static cache content. If I do, the page does not load those files specified ...
0
votes
1answer
1k views

Kernel panic after boot Centos 6.5 HP DL320 B120i HPVSA

Im working with a new HPDL320 micro server (gen8-2) with a HP Dynamic array B120i My problem is after the setup. I provided the DiskDrive to the installer and everything is fine. at first i used kick ...
1
vote
2answers
3k views

How to fix yum error: No module named CElementTree?

I've the following problem with yum: $ yum There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree Please ...
0
votes
2answers
4k views

How can I install mod_ssl on an existing Apache2 installation without recompiling Apache

Updated question Older question Is mod_ssl not for versions of Apache over 1.3.41? I've got version 2.2.17 (currently latest) http://www.modssl.org/ Original question ./configure ...
2
votes
3answers
2k views

Production Instance : CLOSE_WAIT Connection Issue

I am using 10EC2 Instances behind 1 ELB. And ELB configured 80 to 8080 and 443 to 8080 port. And all 10EC2 instances having installed with Apache Tomcat, total request on ELB around 8000 to 10000 in ...
-1
votes
1answer
45 views

Run cron in centOS as user process, not daemon

According to this site, an easy way to set up a scheduled task in a single Docker container is to create a single crontab that runs your task, and then invoke it as the last Docker CMD with the line ...
0
votes
1answer
1k views

FreeNX 0.7.3 under CentOS 6.3 - Negotiating link parameters

since some days I try to get freenx (CentOS package 0.7.3) running under CentOS 6.3. It is like found on many websites: First login is successfull, after that all login attempts fail with the ...
0
votes
0answers
33 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 ...
2
votes
1answer
915 views

Why can't I setup an SSHFS share? “OSXFUSE file system is not available” error

I'm trying to setup an SSHFS share from my local machine to a remote machine, but it is not working. I'm getting the error OSXFUSE file system is not available (see below). How to fix this?? FYI, my ...
0
votes
2answers
52 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 ...
0
votes
4answers
106 views

Testing DNS configuration of domain by using hosts file?

I'm currently migrating a website to another server, and want to test the DNS configuration (more specifically, email MX records) before moving the domain over. I've configured the DNS on the new ...
-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
2answers
1k 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
777 views

cloud-init does not grow the partition nor the filesystem

I am currenty preparing OpenStack-ready images of CentOS 7 and Ubuntu 14.04. For the "automation" I use Packer, which is provided by you with a JSON-template. Packer then starts the installation ...
0
votes
0answers
21 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 ...
3
votes
2answers
4k views

error while installing the libmemcached

I get this while installing libmemcached root@server [/libmemcached]# make make all-am make[1]: Entering directory `/libmemcached' if /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H ...
4
votes
1answer
5k views

How to upgrade module located inside initramfs?

We have recently upgraded our e1000e (intel ethernet) module on one of our CentOS 6.0 boxes. Even tho the module compile and installed fine, the old version is still being used. We have tracked this ...
1
vote
1answer
2k views

Trying to remove packages with yum, however it is failing?

Trying to uninstall zarafa mail server. I use yum list installed to view the already isntalled packages. After which I use yum erase zarafa* It picks up all the packages but returns: Error in ...
6
votes
5answers
31k views

How to extend an ext4 partition and filesystem?

I have a 400GB disk with a 320GB ext4 partition. I would like to grow the ext4 partition to use the left space (80GB of free space). +--------------------------------+--------+ | ext4 ...
4
votes
5answers
3k views

CPU?: Not responding

I'm attempting to build a system for co-location. I've been running into issues while trying to install CentOS 6.3 System Specs: Motherboard: ASUS m5a99x Process: AMD FX-8120 (8-core Bulldozer) ...
1
vote
1answer
2k views

Tomcat fails to start, no logs or error provided

I have a Centos5 box running tomcat5 (a version before 5.5, there's no bin/version.sh script). When attempting to start tomcat, whether through init.d or service, I get the FAILED message with no ...
1
vote
0answers
26 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
35 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 ...
0
votes
1answer
280 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
vote
1answer
52 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
1answer
222 views

postfix master dead but subsys locked but working

postfix master dead but subsys locked I tried removing the files on /var/lock/subsys/ and restarted postfix, no error on logs and mail is working but when I check the postfix status it still says ...
1
vote
1answer
2k views

Assign ipv6 address to KVM guests on bridge mode

System: CentOS 6.5 Network: Bridge on br0 IPv6: ISP Native /64 block. IPv4: ISP address (not internal LAN) Purpose: To assign IPv6 only to guests (manually), I don't want ipv4 address to be ...
2
votes
1answer
1k views

VPN error 619 - “A connection to the remote computer could not be established.”

Have been trying to get this PPTP VPN working on a CentOS 6 x64 VPS for a few days but im getting: "Error 619 - A connection to the remote computer could not be established." I did research on ...
0
votes
1answer
1k views

How to install pecl spidermonkey on CentOS 6

Running the following command: > sudo pecl install spidermonkey I receive the following error: ... ... a bunch of successful checks ... ... checking whether to enable spidermonkey support... ...
0
votes
1answer
175 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 ...
-1
votes
1answer
76 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
2answers
72 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 ...
0
votes
0answers
46 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 ...
0
votes
1answer
938 views

Installing mysql-devel to match MySQL version

I'm running MySQL 5.1.52 on CentOS 4.6 and I'm trying to install mysql-devel to match my MySQL version. If I do yum install mysql-devel it wants to upgrade MySQL to 5.1.58, yet if I do yum search ...