On Debian you can install siege with: apt-get install siege On CentOS, RedHat or Fedora, simple using: yum install siege I had to install it on Mac OS, here you can use: brew install siege Here are the most important parameters: -cNUM : CONCURRENT users, default is 10 -dNUM : test DURATION in seconds (NUM […]

First of all create the server key: openssl genrsa -des3 -out self-signed.key 2048 Enter a password twice and note it! Create the CSR (when requested, enter the password that you used above): openssl req -new -key self-signed.key -out self-signed.csr Answer the questions and put your domain name that you want to use the certificate for […]

I had to work with Virtualmin a little bit and I've been looking around how to create additional admins. It's actually quite easy: useradd newuser passwd newuser Your /etc/passwd should contain something like this now: newuser:x:1549:1549::/home/newuser:/bin/sh The trick is now just to add the new user to /etc/sudoers: newuser ALL=(ALL) ALL Having done this you […]

If you need a simple, non-scientific way of calculating the used bandwidth of your webserver in MB, use this command: cat /var/log/apache2/access.log | awk '{ SUM += $5} END { print SUM/1024/1024 }' Change the log file name to fit your vhost.