Newest centos Questions

Q&A for system and network administrators

Postfix keep sending on port 25 event with submission [closed]

Guys i'm new to this,and i'm trying to build my own web hosting server ,i got it work using sentora on centos 7, everything works fine except sending emails throught my server ,i can receive them , i ...

Can't backup Cisco configuration with tftp

I get the following error: SW-AL710-1#copy running-config tftp: Address or name of remote host []? 10.0.1.130 Destination filename [sw-al710-1-confg]? %Error opening tftp://10.0.1.130/sw-al710-1-...

Ausearch cron script [on hold]

I did create a central auditd server where i'am sending all audit logs form local servers. I created a simple report sript where one line is something like : ausearch -n XXXXX | aureport -i When I ...

DNS resolution fails in some countries

I am checking website via wordwide DNS checker. DNS resolution is incorrect in some countries. What is the cause of this problem? No problem in my other websites only this Web site: downvids.net ...

PHP's $_SERVER showing incorrect host [closed]

The $_SERVER['HTTP_HOST'] variable returns the correct host name on both local and deployed environments. But on client's environment this variable is picking up some different host name. I am pretty ...

CURL connection to domain name pointed at itself gives “Connection Refused”

I have a PHP website on CENTOS which needs to get the contents of its own homepage in order to cache it. To do this I need to use the full URL of it's own domain name that resolves to itself. I tried ...

Rewrite rules in httpd.conf instead of .htaccess?

All of the tutorials I've seen (such as here) for using Rewrite rules with Apache on Centos show how to enable .htaccess and then put the rules in there, which requires enabling AllowOverRide All in ...

Need CentOS VPS to connect to Microsoft AD server via VPN

I've got a CentOS 6 VPS up and running with several websites managed by WHM/cPanel. One of those is to be an intranet site, and I need to connect it to our network over VPN. We're using IKEv1 with ...

microcode.service fails to load where to find rpm microcode_ctl-2.1-16.3.el7_3?

in redhat bugzilla 1412187 microcode.service fails to load due to broken it say's: Verified as fixed in microcode_ctl-2.1-16.3.el7_3 I cannot find where do download this updated rpm from? I can't ...

Nginx server, keep running at 50% cpu usage [on hold]

I have a server at DigitalOcean, and it mostly runs without any issues. 80% of the day it runs normally, but then suddenly it goes up to 50% cpu usage (php-fpm) - and just stays at that for a longer ...

auditd keeps writing to my disk

auditd -n keeps writing and using resources for the stuff below. What is it, and is it necessary for this script to be constantly writing stuff? I am running Cenots 7 and Plex Onyx...if it is not ...

Why does backup script fail with cron?

So I'm doing automated backups of a database. The backup script works properly, both when I run it manually, and also when Cron runs scheduled hourly and daily backups. The backup fails, however, on ...

CentOS with SELinux, systemd and stunnel

I am using CentOS 7.3 with stunnel. If I launch stunnel like that : stunnel /etc/stunnel/stunnel.conf Everything works fine ! I would like to manage stunnel with systemd. Here is my stunnel.service ...

apache tomcat virtual host but different server moodle

I have one project ongoing but I don't know how to resolve this. I have one server CentOS 7 with Apache tomcat serving all my websites. Also, I have another CentOS server with a moodle pack (moodle, ...

Can I safely remove all mail services from CentOS?

I've inherited 3 legacy shared servers all running CentOS. We no longer offer any email subscriptions from our servers and have migrated everyone to cloud services. These servers host about 60 ...

Trying to install memcached error [on hold]

Getting following error when trying to install memcached php yum install php-pecl-memcache Loaded plugins: fastestmirror, security, universal-hooks Setting up Install Process Loading mirror speeds ...

Restore data from lost partition after raid synchronization

I have Centos Linux server hosted online, with 2 hard drives. By mistake I integrated raid array over the hard drive I have data on it, and I stopped synchronize on 20% of synchronization. Is it ...

ipa-server failed to make a configuration? [duplicate]

I want to make a configuration for ipa-server on Centos 7. But I can't do it as I get this message: DNS zone example.com already exists in DNS and is handled by servers: ns1.uniregistrymarket.link ...

Board support differences between CentOS and RHEL

On SuperMicros site in OS support, there are boards that support RHEL of version X but not CentOS of version X and vice versa. I have encountered such problems my self. My question is how and why is ...

How to set up DNS when connecting to two networks?

I have a linux machine with two network interfaces. They are both connected to local networks -- one is 192.168.*.*, the other is 10.*.*.*. The 192.168.*.* network is completely private and does not ...

Where do I set the username and password for an OpenVPN server?

I'm having trouble finding where to edit the password of a VPN user that I setup over 5 years ago. I don't know a lot about this stuff and surprised I ever got this working many years ago. It's a ...

I want to print PDFs in Windows 10 to a Linux Centos and conserve selectable text

I have a Generic PostScript Printer (color, 2-sided printing) installed in my CUPs server as a Virtual PDF Printer which stores documents that I "print" as PDFs in my server. With my old Windows 7 I ...

“Hosts” file: Is there anything equivalent on CentOS 6.8 / Plesk 12.5? [closed]

I am migrating a set of live, production PHP websites to a new Server and am testing the migrated sites from my laptop by editing the hosts file so that for selected domains, all browsers use the new ...

KVM virtual machine won't start and gives the following error

I have a kvm virtual machine with a web-server. Yesterday, without doing any modification on the server or the host, this virtual machine stopped responding. As far i can see it freezes at boot time, ...

Centos 5 server [duplicate]

Would you please help me with this issue? I have a server with centos 5 installed in it, recently i can't login with my root password, So, I have reset root password but nothing happen and still can'...

IBM Domino 9.0.1 FP7 x64 periodically reboots on AWS EC2 [closed]

can not find similar issue in the Internet, decided to post a question and ask community about the following issue: IBM Domino Server x64 (v9.0.1 - any FixPacks, including latest FP7 as of today) - ...

system.journal files “Entry timestamp out of synchronization” after each reboot

I am facing a very odd issue with one of my vps centos 7 machines. My logfiles (messages, secure, cron etc) are totally messed up like this: cron log Feb 15 19:06:10 host run-parts(/etc/cron.hourly)[...

Messed up the .bashrc file [migrated]

So i messed up the .bashrc file and now only the "cd" command works, how can i reset it to default. be advice that "mv", "cp", "vi", etc does not works so i can't use them. I searched for solutions ...

SSH fails after Port change on CentOS 7 with Plesk

After changing the port. And restarting the SSH service, it failed on me. I got the following info when I ran systemctl status sshd.service: sshd.service: main process exited, code=exited, status=...

force downgrade on the next `yum update`

I have microcode_ctl-2.1-16.1.el7_3.x86_64 I have control of the centos repo I want the next yum update which runs on any machine to automatically downgrade this package to microcode_ctl-2.1-16.el7....

how to “--setopt=protected_multilib=false -y” without yum install

We have a client who needs an installation on a VM with no connection to the internet. Usually I would've used a chef client who will preform command lines such as: "yum install glibc.i686 --setopt=...

Increasing mail size for postfix with amavisd-new and spamassassin

I have a Centos 6 setup running a web and mail server. Email server works fine, however, my clients cannot send or receive emails with attachments size greater than 10MB. I tried setting ...

Run rc.local only once Mongodb is running in CentOs 7

I have the following script in my rc.local: This runs the services on ports 8080, 8081, 8082, 8083. They are actually node servers that NEED mongod to startup. So, I edited /lib/systemd/system/rc-...

Postfix mail lost in active queue

I am facing a strange situation with our relay mail servers that send emails on behalf of our clients. Our current infra is composed of 2 mail relays servers configured with Postfix that receive all ...

php ssh2_exec hangs on “crontab -e” command

I connected to remote server with ssh2_connect. In my secure log I got Feb 22 11:41:57 centos sshd[3243]: Accepted publickey for subscr from 83.166.241.41 port 53306 ssh2 Feb 22 11:41:57 centos sshd[...

i install dns in centos machine but it not resolve ip to name and name to ip

i have some problem regarding DNS. i install DNS in centos 7 machine and my centos machine ip is 192.168.0.155 .if i run nslookup FQDN (centos7.unixmen.local) name then it resolve into ip means my ...

SSL certs, how it's works? Which one I can remove which one need to stay on my CentOS VPS?

How can I check, know which cert file are needed/used on my VPS? Only one what I know is that I need cert file used in my httpd.conf for my mail server. SSLCertificateFile /etc/pki/tls/certs/...

Centos 5.4 wont boot

I have three disks in a centos server but it won boot,I have no grub at all.I tried to install grub with super grub and fix the system with rescatux but in vain.Is there a way to boot into centos?Here ...

Route FTP Traffic via 2nd Ethernet Port in Centos

This is my first post and at this stage is research, I run a server that uses a 1gb ethernet port and trunk, the data limit on this is 1TB (either upload or download) a month, i'm doing offsite FTP ...

What is the concept of “tcp-reset” and “icmp-port-unreachable” in the following example? [closed]

example: -p tcp -j REJECT --reject-with tcp-reset -p udp -j REJECT --reject-with icmp-port-unreachable

Adding public key to ~/.ssh/authorized_keys still need password

I've misplaced my password for a CentOS VPS I manage. I'm able to use a rescue tool to log in, mount, and chroot into the machine. Through this, I have tried to add my public key to /root/.ssh/...

Apache version deception? [duplicate]

I have a web server, and I was told that the version of Apache running on it is the latest version, regardless of what the output of httpd -v states. When I execute httpd -v, I see 'Server version: ...

How to block all ip's which are not in ipset list

I am trying to block all traffic except US and Canada. I added all US and Canada IP's to ipset geoblock and when i am trying this command. I am getting an error. iptables -A INPUT -m set --set !...

ACL problems with PHP [duplicate]

I got a problem with some ACL on a centOS 7 webserver. I want to have to give all the rights to php ( read, write) on a specific folder. However, even if it has all the rights: default:group:apache:...

Number of inodes explodes on reiserfs after certain number is reached/quota exceeded

I am using a CentOS 7 machine as a BackupPC server to pull in backups from my two frontend servers once per night. Last night the backups failed so I checked the server to see where the problem is. ...

CentOS 7 - wait with login until script is running

Is there a method to delay the login for the user on CentOS 7 Minimal until a specific service is running? I've created a service for it, so it runs right after install via kickstart and it works ...

Init scripts and shutdown order in centos

My current issue is that I have a process hanging from supervisord that I want to make sure it gracefully sending network exists etc.., but by the time supervisor is brought down there is no network. ...

Wait for systemd oneshot service to finish

I am doing some server provisioning and I need to run a script AFTER installation as it requires the system to be fully functional, include services. So I cannot put it inside the %post section of my ...

CentOs 7: http won't start at boot if it listens to a specific IP address

I have this in my httpd.conf: Listen 216.XX.YY.ZZZZ:80 Just to make sure, I made sure httpd is enabled at boot: systemctl httpd enable When the system boots, I have: systemctl status httpd ● ...

Is it possible to install the grub on a disk and the system in another disk? [closed]

Is it possible to install the grub on a disk and the system in another disk? I want to do that because my system does not see the disk in which I installed Linux (CentOS6) but he can see another disk (...
Translating... 0%