• About
  • Everyday Linux Commands

<roughCode/>

~ …so I can find it

Tag Archives: apache

Rotating Apache HTTPD log files

18 Monday Aug 2014

Posted by Scott in Apache Web Server, Linux / UNIX

≈ Comments Off on Rotating Apache HTTPD log files

Tags

apache, Linux Java

On CentOS and RHEL, take advantage of an automatic, daily cron job that runs logrotate.  This example rotates the default logs and my custom logs using a wildcard in the directory for random vhosts.

In /etc/logrotate.d/httpd:

/var/log/httpd/*log /var/www/html/public/*/*log {
missingok
notifempty
sharedscripts
daily
rotate 7
delaycompress
postrotate
/sbin/service httpd reload > /dev/null 2>/dev/null || true
endscript
}

 

Advertisement

Linux link dump for current project (to be sorted later)

25 Wednesday Jul 2012

Posted by Scott in Apache Tomcat, Apache Web Server, Linux / UNIX, Operating Systems

≈ Comments Off on Linux link dump for current project (to be sorted later)

Tags

apache, linux

Working on a new project and the server guys made me a new RHEL server for the dev team to use.  And IT said “here you go, good luck”.  Now, in a previous career choice I was a Windows server admin, and I’ve dabbled in your various Linux and UNIX and Solaris environments.  I have not, however, been a big Apache Tomcat user. The Apache httpd server, sure, but not Tomcat.  So here are some links I’ve been reading to get my local CentOS VM configured before I start trying to blow up configure the dev server that my team will be using to support multiple virtual sites and Tomcat instances…
  • http://articles.slicehost.com/2010/5/19/apache-virtual-hosts-on-centos-part-1
  • http://articles.slicehost.com/2010/5/20/installing-apache-on-rhel
  • http://articles.slicehost.com/2010/7/17/linux-file-permission-concepts
  • http://www.networkclue.com/os/Linux/commands/chcon.aspx
  • http://www.linuxquestions.org/questions/linux-general-1/chcon-cant-apply-partial-context-to-unlabeled-file-371977/
  • http://www.if-not-true-then-false.com/2010/install-sun-oracle-java-jdk-jre-6-on-fedora-centos-red-hat-rhel/
  • (setting up tomcat) http://bobcares.com/blog/?p=451

SELinux again on AJP connection: http://sysadminsjourney.com/content/2010/02/01/apache-modproxy-error-13permission-denied-error-rhel/

 

Recent Posts

  • Bulk commands to install PHP and MySQL on CentOS 7
  • Four year gap? No, had just been self-hosting for a while
  • winhttpcertcfg.exe Example
  • Configure Tomcat 7 to use HTTPS
  • SCP on Mac (and a tool for Windows)

Archives

  • November 2018
  • October 2018
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • January 2013
  • December 2012
  • November 2012
  • October 2012
  • September 2012
  • August 2012
  • July 2012

Categories

  • Apache Tomcat
  • Apache Web Server
  • Application Servers
  • C#
  • CMS
  • Code Samples
  • Databases
  • Development Tools
  • Drupal
  • IIS
  • Java
  • Linux / UNIX
  • MS SQL Server
  • Networking
  • Operating Systems
  • Oracle
  • Uncategorized
  • Video Games
  • Windows
  • WordPress

Meta

  • Register
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.com

Blog at WordPress.com.

Privacy & Cookies: This site uses cookies. By continuing to use this website, you agree to their use.
To find out more, including how to control cookies, see here: Cookie Policy
  • Follow Following
    • <roughCode/>
    • Already have a WordPress.com account? Log in now.
    • <roughCode/>
    • Customize
    • Follow Following
    • Sign up
    • Log in
    • Report this content
    • View site in Reader
    • Manage subscriptions
    • Collapse this bar