Questions tagged as ['centos']

CentOS is a free (as in beer and speech) GNU/Linux distribution that is community driven and based on source code released from RedHat.
Score: 2
mahen3d avatar
SELinux - blocks postfix emails sending out from the Web Application
cn flag

My System environment, is Centos-7.9, Apache2.4, Php-fpm, PHP-7.4

I have postfix setup to send emails from the website, which is working in stand-alone test emails and when I turn the SELinux off.

However, if SELinux is enabled it will block sending the emails out from the server with below error in the /var/log/maillog

 postfix/sendmail[10883]: fatal: execv /usr/libexec/postfix/smtpd: Permission  ...
Score: 1
danone avatar
spawn-fcgi doesn't start automatically even though has root permission Centos 7
br flag

I have very strange problem I don't know how to solve this. I have spawn-fcgi service only starts if I manually start as root but not with on boot

systemctl enable spawn-cgi gives me this information I don't know if this error message or just information

[root@www ~]# systemctl enable spawn-fcgi spawn-fcgi.service is not a native service, redirecting to /sbin/chkconfig. Executing /sbin/chkconfig sp ...

Score: 1
carlitobrigante avatar
Permission denied for gitweb.cgi on CentOS
cn flag

I've set up gitweb on my web server. I have created projects on the server. I can add commits to them and also clone them remotely.

The gitweb "homepage" does display and the static files like css, logo, favicon are loaded when I visit my git.website.

Issue is I only see the message: No such projects found found.. Every time I refresh the webpage I see the following in my /var/log/httpd/error_log

Score: 0
Michael Osakede avatar
PJSIP Call file
zw flag

I use call files to send calls on asterisk. with the change to PJSIP the old script no longer works, can anyone help with a functional call file that works with PJSIP?

my call file

channel: PJSIP/Michrosys-VOX/sip:001110323480972074XX
application: Playback
data: Demo-congrats

error:
- Attempting call on PJSIP/Michrosys-VOX/sip:001110323480972074XX for application Playback(Demo-congrats) (Retry 1)
    ...
Score: 0
mahen3d avatar
Apache - Give Access to /var/log/ folder Only Outside the Document Root ? (Centos Based)
cn flag

My Web server is running on Apache and I have restricted the Apache user not to allow anything outside the Website Document Root, However, I need to write a log file (User Auth Log) which needs to be written into a folder of the "/var/log/app"

How do I achieve this task in Centos7? Should I use a symlink? if so Can that be secure enough? because this log file will contain very sensitive data about the u ...

Score: 2
mahen3d avatar
Centos - Deploy Web Application - What is the best way using non-apache User Account with SFTP/WinSCP
cn flag

I have a simple question, however, I am struggling to understand how to do this in a secure manner,

I have a PHP-based web application that runs on Linux (Centos7), I have "user" access with Sudo privilege on the Linux server.

The web server (Apache) runs as an "apache" user with an "apache" group,

The problem is when I try to deploy applications using WinSCP, I get permission denied errors, the ONLY w ...

Score: 0
luca ditrimma avatar
Centos Infected By Kinsing Mining Malware
pl flag

My server has been infected by Kinsing malware. I managed to clear it. Remove the cronjob. So far, it didn't return. However, I noticed, another running processes look fishy. Normally, I haven't focused on this item except my regular services like MySQL, apache because they are normally on top of the processes. Now I became paranoid.

Do you spot any culprit here?

running services

Score: 0
Ali Kargar avatar
HP 1/8 G2 medium changer not detected in Oracle Linux 8
vn flag

I have a HP 1x8 G2 Autoloader that connected to a SAN switch, on my VMware environment I have an Oracle Linux that should work with the tape. The problem is after connecting tape to VM, medium changer is not detected but tape drive is OK!

$ cat /proc/scsi/scsi 
Attached devices:
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: VMware   Model: Virtual disk     Rev: 2.0
  Type:   Direct-Access        ...
Score: 0
user3224303 avatar
How to remove git from a specific folder?
tl flag

I have a CentOS 7 system. It has git 2.27.0 installed, but that install, for reasons we can't figure out, won't talk to our https gitlab instance. It keeps failing on "unable to find remote helper for 'https'".

So, I attempted to upgrade git, using 'sudo yum upgrade git', which claims there's no git package installed. But if I do a 'git --version', I get "git version 2.27.0". A "whereis git"  ...

Score: 1
Jose avatar
selinux - why can't stuff_u with sysadm_r run postsuper?
vn flag

I am trying to understand how selinux confined users really work, but there are a few behaviours that I still can not understand. According to redhat

SELinux User Capabilities

stuff_u users should be able to run sudo, but not su. So I have created the user someuser and mapped it to staff_u

[someuser@testserver ~]$ id -Z
staff_u:staff_r:staff_t:s0-s0:c0.c1023

Now if I add full permissions using sudo,  ...

Score: 0
wTrace3zh avatar
How to make Rsync only allow download but not upload
in flag

I know that i can add in Rsync's config file

read only = no

But when I use the synchronization command on the client, rsync tells me

ERROR: module is read only

If I change the value of read only to “no”, the client will automatically upload files when synchronizing files with the server

So what should I do to allow the client to only download changed files from the server and not allow local files  ...

Score: 0
CentOS 8: two external network adapters, two ISPs - routing problems
pr flag

Given: a CentOS 8-powered computer with three network adapters.

eth0, eth2: external, connected to two different ISPs
eth1: faces home network (intranet)

The task: allow accessing certain internal services from either ISP. There are several services, I only mention SSH below.

In the configs below:
IP1: external IP at first ISP (ISP1), assigned to eth0
Gateway1: IP of gateway provided by ISP1
Network1,N ...

Score: 0
Tần Quảng avatar
How to install PHP on CentOS has preinstalled Apache HTTPD?
pk flag

I'm using CentOS 7. I wanted to install PHP 7 so I used remi-php (latest PHP version of yum is 5.4). Since the HTTPD version of yum is too old, I compiled the latest HTTPD version from the source code.

HTTPD compilation goes perfectly, however, when I try to install remi-php using the following command:

yum --enablerepo=remi-php71 install php php-cli php-intl php-mbstring php-mcrypt php-mysqlnd
 ...
Score: 1
GhostWolf avatar
PXE Server on Centos 8, Windows DHCP and DNS on same network. Clients not receiving bootfile
cn flag

I have a Windows AD Domain running on Windows Server 2019, it has DHCP and DNS in addition to AD. I'm trying to setup a PXE server on a different machine running CentOS Stream 8. I got the PXE server installed and it has a static IP address. I added options 66 and 67 in the scope options on Windows DHCP to point to the CentOS PXE server but when I network boot a third machine, it isn't finding the PXE s ...

Score: 0
Khalil avatar
My SMTP server transferring out Terabytes of data in a day
vn flag

We are having an issue with one of our SMTP servers. Problem arises since 3 weeks and is transferring out terabytes of data in a day. Any Idea why is this happening, or suggestion to dig out & resolve this issue.

Thanks Khalil

Score: 0
rk92 avatar
Allow users in chroot to SSH to another VM instance
tr flag

Been coming across some issues with setting up SSH from a chroot directory out to a secondary VM. This is all being done in Google Cloud at the moment using CentOS 8. I think I have created the chroot directory correctly, added /bin/ssh to the chroot directory, added shared libraries for /bin/ssh.

I am stuck currently at running ssh <IP_ADDRESS>. I had to first create a /home/<USER>/.ssh ...

Score: 0
Centos7 booting stuck on Started LVM2 PV scan on device 8:3
id flag

Centos booting stuck on Started LVM2 PV scan on device 8:3.

any suggestion on fixing the issue? I also see SeLinux relablel is required.. I'm not sure how long to wait.

Warning -- Selinux policy relabel is required. Relabeling could take a very long time depending on the file, system size and speed of the hard drives.

Started LVM2 PV scan on device 8:3.

screenshot

Score: 1
CentOS /dev/mapper/centos partition consumes randomly more & more storage with time
in flag

On our CentOS 7.3.1611 system with installed MariaDB, httpd and Postfix the partition /dev/mapper/centos_srv01-root gets with more time more & more full.

  • For two days (2021-07-21) is the output from df -h: df -h output from 2021-07-21

  • The output from today: df -h output from 2021-07-23

We also recursively searched on the root directory for all files over 100MB. However, there were no differences between the two days. Although /dev/mapper/centos

Score: 0
RandString avatar
CentOS keeps making an executable immutable
kr flag

I am on Cent OS 7

NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VER ...
Score: 1
reghorn avatar
Apache 2.4 and LDAP. Basic authentication issues
es flag

I'm using CentOS 8 Stream + Apache 2.4 + Subversion.

I want to allow access to SVN only for users who belong to a specific LDAP group (svn-users).

I have the following problems.


case 1. Enter the correct ID / PW as an LDAP user belonging to svn-users

This works as expected.

This user can access SVN.


case 2. Enter the correct ID / PW as an LDAP user that does not belong to svn-users

This does not work ...

Score: 0
1qwelle avatar
Odd rpcbind connection
cn flag

I ran rpcbind on my Centos 8 server and I noted an odd server:

rpcbind 1038 rpc 13u IPv4 46028565 0t0 TCP CentOS-82-64-minimal:sunrpc->ilijavujovic.tempurl.host:61000 (ESTABLISHED)

Looks very dubious. Any idea how this might have occurred or how to avoid it?

Score: 0
Intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80
ng flag

We are experiencing intermittent "Address already in use: AH00072: make_sock: could not bind to address" on port 80 failures on our servers. I have looked at other answers and they are mostly based around it being a consistent failure and a LISTEN being defined twice, which is not our issue.

Our issue only happens shortly after boot of the instance where we "sudo service httpd restart" the servic ...

Score: 0
Apache2 on Centos 7 will not let me restrict access to IPs other than my own
uz flag
Edm

I am trying to restrict access to any IP but my own, and I've searched up how to do it but it doesn't work. I've searched up how to do it on CentOS, but nobody cares about CentOS so there's no help there. This is what I've done in httpd.conf:

<Directory "/var/www/html">
    Options Indexes FollowSymLinks

    AllowOverride AuthConfig

    <IfModule mod_authz_core.c>
        <RequireA ...
Score: 0
jstnewb avatar
How to mount glusterfs at boot in centOS 7 lxc container?
pk flag

Need to get a glusterfs volume mounted in a centos 7 lxc container.

found this and can do it manually ok...

But it seems that adding it in the fstab doesnt work because it gets executed before gluster client is functional?

fstab:

host:/gv0/Data /data glusterfs defaults,_netdev 0 0

How do you get it to mount at boot?

Score: 0
dcron avatar
Not able to install drivers for sql server on CENTOS
fr flag

I am new at Linux OS but successfully installed apache, PHPMyAdmin, and MariaDB.

All works fine, but I have an issue and am not able to resolve it. My issue is establishing a connection to the SQL Express server which runs on WIndows machine on the same network. My script to sql ex

I was working with Windows environment with XAMPP installed I had no issues drivers for SQL express server were working ...

Score: 0
Okan Türk avatar
Centos GRE Tunnel
in flag

I have two servers. Centos 7 installed on both.

Main Server: 45.x.x.yy/32

Slave Server: 185.x.x.yy/32

I want to use the ip address of the Slave Server on the master server by establishing a GRE Tunnel from the master server to the slave server. So I want to add it as 185.x.x.yy/32 to the main server and use it.

I tried many articles about GRE tunnel on the internet, ping is going between internal ip addre ...

Score: 0
Grismar avatar
Why would a NIC on CentOS 7, attached to a Dell N2048P switch, only get a carrier when plugged in after boot?
cn flag

My situation:

  • I have a new machine, with two NICs (Intel Corporation Intel(R) Ethernet Controller I225-LM (rev 02), according to lspci), but only one is connected.
  • It's connected into a larger network, but directly connects to a Dell N2048P switch.
  • The machine is running the last CentOS 7 (for software compatibility reasons - this may change in the future), minimal installation, entirely vanilla. ...
Score: 0
King David avatar
linux + how to extend sdd1 partition based on that sdd disk have enough space
gb flag

We have rhel server 7.2 version ( VM machine ) with sdd disk

sdd disk have parted partition sdd1 , and our goal is to increase the sdd1 partition to 10g from current 1K size

From

lsblk

sdd                  8:48   0   20G  0 disk
└─sdd1               8:49   0    1K  0 part

so we expect to achieve sdd1 to became 10g

We did the following examples but without good results

parted /dev/sdd
GNU Parted 3 ...
Score: 0
Fail2ban on CentOS 7 with Docker-powered Traefik ban OK without iptables rule addition
fr flag

I set up a Traefik instance run by Docker engine in Swarm mode with a "classical" configuration (see below, for sake of brevity I only put relevant [to me] parts. Feel free to ask more details if you need so).

Fail2Ban is installed, as well as firewalld (CentOS distribution). So far I put simple filter/jail configuration, mostly for blocking DOS and bruteforce, by watching Traefik access log.

My prob ...

Score: 0
mahen3d avatar
Centos 7 pecl install mysqlnd_azure failed to install
cn flag

In Centos 7.9 with PHP - 7.4 enr,

I want to install below Pear Extension

https://pecl.php.net/package/mysqlnd_azure/1.1.1

However When i run below to install it gives me that package is not found.

Any reason why it doesn't recognise the package?

[root@a-1 ~]# pecl install mysqlnd_azure

No releases available for package "pecl.php.net/mysqlnd_azure"
install failed