Webserver

Articles on all sort of webservers like Apache, NginX, Lighttpd


Installing PHP7-FPM with Apache2 Worker on Ubuntu

First add some prerequesites and add the PHP7 repository: apt-get update apt-get install software-properties-common python-software-properties LC_ALL=en_US.UTF-8 add-apt-repository ppa:ondrej/php-7.0 Then install the actual PHP packages (remove those form the list that you do not need): apt-get install php7.0-fpm php7.0-cli php7.0-common php7.0-json php7.0-opcache php7.0-mysql php7.0-phpdbg php7.0-dbg php7.0-gd php7.0-imap php7.0-ldap php7.0-pgsql php7.0-pspell php7.0-recode php7.0-snmp php7.0-tidy php7.0-dev php7.0-intl php7.0-gd php7.0-curl Then […]


Installing Nginx 1.7.9 with Google Pagespeed on Ubuntu 14.04 (Trusty)

Basically we're going to rebuild .deb packages, adding the Pagespeed module. So first we're adding the repo and preparing some dependencies: add-apt-repository -s -y ppa:nginx/development apt-get update apt-get -y install devscripts apt-get -y build-dep nginx=1.7.9 We're building the packages using an unprivileged user: adduser bob −−shell /bin/bash \ –disabled-password –gecos bob sudo su – bob […]


Create self-signed SSL certificate for Nginx

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 […]


Adding new Admins in Virtualmin

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 […]


Configuring Nginx for WordPress

A typical Vhost file (for example /etc/nginx/sites-available/default) would look like this: server {   listen   80;   server_name  YOUR_SERVER_NAME;   access_log  /var/log/nginx/access.log;   root /var/www;   index index.php;   location / {    index index.php;    try_files $uri $uri/ /index.php?q=$uri&$args;   }   location ~ \.php$ {               […]