Apache

How to Resolve “NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission denied”

Posted on
There was an error in maillog while sending a mail by PHP.[root@web ~]# tail -f /var/log/maillog…Jan  6 20:38:11 web sendmail[2703]: NOQUEUE: SYSERR(apache): can not chdir(/var/spool/clientmqueue/): Permission deniedIt seems a permission issue. It could be blocked by SELinux, so let’s check SELinux boolean value of sendmail.[root@web ~]# getsebool -a | grep sendmailhttpd_can_sendmail –> offlogging_syslogd_can_sendmail –> offYou […]
Apache

How to Forbid Directory Listing by Apache httpd Server

Posted on
If there is no index or default www file in directories, httpd returns the contents of directory instead like this.Index of /tempNameLast modifiedSizeDescriptionParent Directory– temp.html04-May-2012 05:10300temp2.html24-Nov-2012 09:20200Apache/2.2.26 (CentOS) Server at www.example.com Port 80If you’d like to prevent the directory to be listed, you should reconfigure httpd.conf, here are the steps to do it:Find the right […]