Archive for Technical issues

lighttpd hangs with logrotate

Because our fileserver is getting inefficient for the insane traffic that our network is generating, i’ve rented a new server to test out lighttpd. However I found out that each time logrotate is run, the lighttpd-process will be frozen.

I’m now changing the logrotate-script. Instead of the usual “reload”, i’ve changed it force-reload. If that doesn’t work either, i’ll have to do a restart…

This is how /etc/logrotate.d/lighttpd looks like now

/var/log/lighttpd/*.log {
daily
missingok
copytruncate
size=100M
delaycompress
rotate 7
compress
notifempty
sharedscripts
postrotate
if [ -f /var/run/lighttpd.pid ]; then \
if [ -x /usr/sbin/invoke-rc.d ]; then \
invoke-rc.d lighttpd force-reload > /dev/null; \
else \
/etc/init.d/lighttpd force-reload > /dev/null; \
fi; \
fi;
endscript
}

Comments

New multiple wordpressproject setup

I always had plans to create a multi-subject content site. There are just too many subjects I want to talk about, but I was missing the tools to create so. I’ve been working on my own multisite-cms because I think that the common opensource cms are not fit for my goal. But creating your own multisite CMS-system is not an easy task if you have a fulltime job too.

So I’ve decided to make use of wordpress to at least get the content sites started, while I can work on my own CMS in the meantime.
I’ve setup a site with one single installation of WP.

This setup has these requirements:

  1. Depending on the subdomain, chose the correct site.
  2. If a subdomain is not valid (blablabla.domain.com) show the default site
  3. Uploads are seperated into sites
  4. Themes and plugins are shared
  5. Each site can have it’s own theme and other configurations
  6. All sites are sharing one user database
  7. One user login into one (sub)site, (s)he will be logged in to all.

Here’s how I did it:

Changed files

  • wp-settings.php
  • capabilities.php
  • wp-config.php

Added files

  • sites_config.php

Read the rest of this entry »

Comments