Posts

Showing posts with the label centos

How can I view the complete httpd configuration?

Image
Clash Royale CLAN TAG #URR8PPP How can I view the complete httpd configuration? I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole running setup configuration in a single file? apachectl -S for running config, apachectl -M to show loaded modules – arco444 Nov 26 '14 at 15:54 apachectl -S apachectl -M Except that apachectl -S does give you neither "the full complete configuration" nor " the whole running setup configuration in a single file". – Frederick Nord Feb 2 '17 at 16:39 ...

Logrotate daily+maxsize is not rotating

Image
Clash Royale CLAN TAG #URR8PPP Logrotate daily+maxsize is not rotating I've CentOS 7.4 with logrotate 3.8.6 installed. I've a custom logrotate file under /etc/logrotate.d/ to rotate some logs on a Tomcat (e.g., catalina.out) which is installed in the same machine. /etc/logrotate.d/ /opt/test/apache-tomcat-8.5.15-client/logs/catalina.out { copytruncate daily rotate 30 olddir /opt/test/apache-tomcat-8.5.15-client/logs/backup compress missingok maxsize 50M dateext dateformat .%Y-%m-%d } I want the log to be rotated daily or if the size reaches 50MB. When this happens log files are compressed and copied into a backup folder and are kept for 30 days before being deleted. I already ran logrotate manually in debug mode with the following command and no errors were displayed (and the expected zipped log files were created): /usr/sbin/logrotate -d /etc/logrotate.d/openncp-tomcat-backoffice 2> /tmp/logrotate.debug /usr/sbin/logrotate -d /etc/logrotate.d/openncp-tomcat-backoffice 2...

No packages marked for update on CentOS 7

Image
Clash Royale CLAN TAG #URR8PPP No packages marked for update on CentOS 7 I have installed Cent OS 7 on my machine. Everything was working fine until today when I entered sudo yum update I receive following - sudo yum update sudo yum update Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile * base: centos.mirror.net.in * elrepo: elrepo.reloumirrors.net * epel: mirror.nes.co.id * extras: mirrors.fibergrid.in * nux-dextop: mirror.li.nux.ro * rpmfusion-nonfree-updates: www.mirrorservice.org * updates: mirrors.fibergrid.in No packages marked for update ` I have tried every possible method provided on the internet but I'm still stuck. # CentOS-Base.repo # # The mirror system uses the connecting IP address of the client and the # update status of each mirror to pick mirrors that are updated to and # geographically close to the client. You should use this for CentOS updates # unless you are manually picking other mirrors. # # If the mirrorlist= doe...