Questions specific to the CentOS Linux distribution. Use this tag if your question relates to how the CentOS distribution affects your problem; do not use it if you just happen to be using CentOS and your question is about a specific configuration detail or syntax.

learn more… | top users | synonyms (2)

0
votes
0answers
9 views

File attributes and permissions

I read that any other user except owner and group owner of a file if given write access to a file then that user can modify the contents of file and he can create and delete the file.So in above ...
0
votes
2answers
1k views

How find and install PHP 5.3.10 or later on CentOS 6.5?

When I check yum list php it only shows 5.3.3 which is older than 5.3.10. How do I get and install the newer PHP? (Using CentOS 6.5)
0
votes
1answer
82 views

no iptables, no selinux, port 81 in virtualhost still not working

I try to open port 81 as a virtualhost. after setting apache, I can CURL localhost:81 from local machine and get response(yes it was listening port 81). However, when visit the same address from ...
1
vote
2answers
1k views

How do I install an older version of Apache httpd in CentOS 6 using YUM

How do I install an older version of Apache httpd on my CentOS 6 machine? When I do: # sudo yum --showduplicates list httpd | expand I get: file:///media/project/repodata/repomd.xml: [Errno 14] ...
0
votes
1answer
17 views

User home directory

I am learning Centos and I created some users and then deleted but I used userdel without any option. So will it remove the home directory and other things related to those users? If not then is there ...
0
votes
1answer
17 views

How to install opencl in CentOS 7 using yum?

I need to install opencl in CentOS 7 nvidia. I already installed cuda. But when i try to install ImageMagick with OpenCL it is showing CL/cl.h not found. But there are files in /usr/local/cuda-7....
1
vote
1answer
152 views

apache Virtual Host Configuration CentOS7

My host machine is Windows 7 and guest machine is CentOS 7. I am a new to Apache and I am trying to create VirtualHost on CentOS7. I have read a lot of documentation and a lot of answers over ...
-1
votes
1answer
25 views

How to convert RHEL rpm to CentOS

My team receives software in a RHEL format from another team. RHEL requires licensing to use and deliver their media. Our team converts the operating system to CentOS which is based on RHEL but does ...
1
vote
1answer
236 views

Can I use CentOS CBS as yum's base repository?

I found package python-six-1.9.0-1.el7 on cbs.centos.org, while it is not contained in the base repository in my centos 7. Is CBS a package repo like others, such as mirrors.mit.edu/centos? If so, ...
0
votes
1answer
102 views

Trying to install CentOS 7 Server with manual partitioning but GUI is very different from CentOS 6

When I installed on CentOS 6, to get a "headless" or command-line only server with the manual partioning I wanted I went through the below steps: Choose "Install with basic video driver" Choose type ...
1
vote
0answers
516 views

Centos 5.3 - Need to use 4 com ports without resource conflicts (system has 6 com ports)

we hope to use 4 serial ports together on Centos 5.3 (could not upgrade to newer version due to application limitation). COM1 and COM2 works perfectly. We use echo to output to customer display to ...
-4
votes
0answers
8 views

Linux Centos App machine [on hold]

I have 20 node server & I need to see what is the CPU Usage, Memory usage from that as a output file. Also need to get an alert message when CPU reaches 70%.
0
votes
1answer
23 views

Centos, uploaded files from application have different owner and group [duplicate]

I have an application that uploads a file via SFTP using sftpuser. Once the file is uploaded the owner and group is user1:user1. The owner of the parent directory is apache:apache. I can not figure ...
1
vote
2answers
34 views

Setting old system date

I have a Centos 7 server running in a cloud-server provider (ProfitBricks). I need to setup a demo system but is really hard to create daily fake data. My idea is to configure this server with an old ...
1
vote
2answers
596 views

Disable and Enable modules in apache CentOS7

My goal is to optimize my apache server. At first I want to disable some modules on it. I was surfing over the Internet and didn't find anything dedicated to apache which is installed on CentOS7. Here ...
3
votes
2answers
16k views

why can't this CentOS 7 server see wifi connections?

I recently installed CentOS 7 as the sole OS on an Acer Aspire T. There is no GUI, as it is a server with a terminal-only interface. What do I need to do to get CentOS 7 to be able to see and list ...
0
votes
0answers
14 views

pptpd service start failed in centos 6.8

In my centos 6.8, pptpd service failed to start. If is send command service pptpd status it shows "pptpd dead but subsys locked" then I tried to remove the subkeys by using the command rm -r /var/lock/...
0
votes
1answer
2k views

How do I get debug information from rsyslog?

I followed the directions from: http://www.rsyslog.com/doc/debug.html I put the following in /etc/rsyslog.conf: $DebugLevel 2 $DebugFile /root/RSYSLOG.txt then I try: kill -USR1 `cat /var/run/...
2
votes
1answer
895 views

pptpd dead but subsys locked? on cent os

i install point to point tunnel (PPTP) in my VPS. (Cent OS 6 64 Bit) everything fine after reboot the PPTP not worked client side. the pptpd status shows " pptpd dead but subsys locked ". how to ...
0
votes
1answer
203 views

500 OOPS: chroot on vsftpd login

I'm aware this question has been asked a lot in the past, but my problem seems to be a bit different. I'm using vsftpd on my CentOS 7 server and I have specified chroot_local_user to YES in /etc/...
0
votes
2answers
2k views

vgdisplay shows 0 free PE/size

I'm trying to configure a CentOS HA system with 2 nodes, with DRBD for replicated storage. I'm following the "Clusters from Scratch" guide, and at the DRBD portion, I need to create a partition for ...
1
vote
1answer
18 views

Any consideration for oracle installation which need to be done in OS installation?

Please forgive me if I post the question in the inappropriate place. Because I am not sure if it belongs to the DBA SO. Thanks. I am trying to install CentOS 64bit in the VMware for Oracle 11g 64bit. ...
0
votes
1answer
15 views

linux server memory leakage, it grows inactive memory, how to find the process in inactive memory and to kill?

I have a problem with my Linux cent OS server, leakage of memory grows inactive memory, so how to find the process consists with huge memory in inactive memory to kill
0
votes
1answer
2k views

Getting Minor Version Mismatch Error with Php and Mysql

I randomly started getting this error when trying to instantiate a new mysqli instance in php script: mysqli::mysqli(): Headers and client library minor version mismatch. Headers:50541 Library:...
1
vote
3answers
16k views

PPTP VPN in CentOS 7

I recently installed CentOS 7 (GNOME), but I realized that there is no option for setting up a PPTP VPN client. I tried to install networkmanager-pptp-gnome, but unfortunately it's not available in ...
0
votes
2answers
9k views

How can I see settings of the email server?

I have root access to a Linux server (CentOS 5.10). I want to see the email server's settings such as whether SMPT is working, wheter there is an email server, port number, does it require SSL, what ...
1
vote
2answers
995 views

Failed to join domain: failed to set machine kerberos encryption types: Insufficient access

did someone have this error when try to join CentOS 7 to Active Directory. I tried on a various ways(via cli, gui, tui) and always get same error. Failed to join domain: failed to set machine ...
1
vote
2answers
2k views

Installing MySQL on CentOS throws error that cannot find mysqld.sock

I have yum install mysql in CentOS 6.4. Now, when I use mysql command, it throws the following error: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld....
0
votes
1answer
24 views

Add shared module to apache CentOS7

I have practiced with my apache 2.4.6 on CentOS7 and I have tried to add shared module. I can list my compiled modules using this command httpd -l. All shared modules is located in /etc/httpd/modules. ...
1
vote
2answers
1k views

install opencv-2.4-9 on centos 6.5 with cuda 5.5 support

I can't seem to install opencv 2.4.9 on centos 6.5 with cuda 5.5 support. This is my cmake output: [root@cadejos-0 opencv]# cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/opt/opencv -D ...
0
votes
1answer
39 views

Set Document Root for site?

Apologies up front for the silly noob question .... I have a CentoOS 6.7 server set up with Apache. I can confirm it is working correctly - say the machine's IP is 123.456.789.123, I can navigate to ...
3
votes
2answers
962 views

tmux unable to start a new session? “1;2c”

Introduction I just installed tmux onto my CentOS 7 machine, but I have encountered a bewildering issue. Whenever I try to attempt to start up a session using tmux or tmux new -s session-name, it ...
5
votes
2answers
10k views

How can I add an application to the Favorites section of the Applications menu in CentOS 7?

I have created a custom application entry in the applications menu for Eclipse as follows in a file /usr/share/applications/eclipse.desktop as follows [Desktop Entry] Version=1.0 Name=Eclipse Exec=...
7
votes
3answers
62k views

pdksh missing from RHEL 6 and CentOS 6?

The package pdksh does not exist on RHEL 6 or CentOS 6 when I try to install it through yum. So my questions: Why is it no longer available in the default repositories? It is available in version 5....
0
votes
0answers
23 views

Error while shrinking root filesystem without booting a lived in centos 7 [duplicate]

I am following the steps in How to shrink root filesystem without booting a livecd After unmounting /oldroot, I am getting below error while resizing the rootlv. Please help. CentOs 7 ...
12
votes
1answer
5k views

How to shrink root filesystem without booting a livecd

I find myself needing to rearrange a system's partitions to move data previously under the root filesystem into dedicated mount points. The volumes are all in LVM, so this is relatively easy: create ...
2
votes
1answer
83 views

clang-tidy install

I have clang installed from packages on both Ubuntu 14.07, Centos 7 and Fedoara 22. I would like to use clang-tidy but can neither find a package nor how to install it without installing clang from ...
0
votes
1answer
3k views

No IP address on VMware running centos 7

I just now installed Cent OS 7 on my VMware 8 and I am not able to connect it to a network. I checked the VM network and its mapped to the physical NIC. The same setting work like charm on my CentOS ...
0
votes
1answer
9k views

How can I extend VMware Partition on Centos 7 using GParted?

I've a problem with increasing a partition from 20GB to 120GB, VMDK file. Here is what I've done: using vmware-diskmanager to increase vmdk file from 20 GB - 120 GB. It's ok. download and boot from ...
0
votes
1answer
2k views

Update yum fails

I'm using centOS 6.4. I'm getting this error when I use "yum update" in the terminal window. Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=6&arch=x86_64&repo=os ...
1
vote
3answers
95 views

preventing DoS attack in Apache webserver

This is the version of apache we're using - httpd-2.2.15-39.el6.centos.x86_64 We recently had our website down due to DoS attack and hence started exploring iptables, and how to use it to prevent DoS ...
1
vote
1answer
911 views

centos: ping6 unknown host

I have centos 6.5 with ipv6 enabled and working (partially). When I'm trying to execute "ping6 bin6.it" it returns error "unknown host": [root@centos ~]# ping6 bin6.it unknown host Host is ...
0
votes
1answer
2k views

Unable to view traps through snmptrad?

I've been unable to view traps through snmptrapd. I generated a SNMP trap manually using the below provided snmptrap command: snmptrap -c public -v 2c -n "" localhost 0 uptime But I'm ...
2
votes
1answer
5k views

SELinux Write access for vsftpd and samba

This should be easy enough I think, but I'm new to SELinux. I have a CentOS 6 file server. I have some LVM file systems at /var/media and I want to use both Samba and FTP to share them with a Windows ...
0
votes
1answer
44 views

Mixing yum repos for different OS major versions does not work

First of all: I am well aware that in general it is a very bad idea to mix yum repos for different major OS versions. However on CentOS 7 I need a few packages from CentOS 6. So I have added CentOS 6 ...
3
votes
2answers
1k views

How to scroll in a terminal by line in GNOME Terminal 2.31.3?

I use Shift+(PgUp/PgDown) while scrolling in the terminal. But it seems to scroll one screen (or a half may be) at a time. I feel comfortable scrolling the terminal by line with the mouse, but don't ...
2
votes
1answer
45 views

sed unterminated `s' command [on hold]

I'm getting: sed: -e expression #1, char 46: unterminated `s' command On this code: sed -i.bak -c 's|net.ipv4.ip_forward.*|net.ipv4.ip_forward = 1|' /etc/sysctl.conf My editor is showing that ...
1
vote
1answer
1k views

CentOS with AutoSSH, Port Forwarding Clarification

I'm using autossh and set it up like shown in the following example: http://surniaulula.com/2012/12/10/autossh-startup-script-for-multiple-tunnels/ I found it works really well, but need some ...
1
vote
1answer
35 views

kick off a systemd service just before shutdown

I am developing a systemd shutdown script (unit file) for a postgresql database and I followed the below two posts but could not get it to work. How to run a script with systemd right before shutdown?...
4
votes
1answer
208 views

How to know the utilization of intel CPU and GPU in Linux?

In ubuntu, to know the time taken by CPU to run a program we would use time in terminal. Whereas in case of intel GPU, we would use intel_gpu_time. But in case of CentOS time command works. But ...