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

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

Install Nginx 1.6.0 on Debian Wheezy

Wheezy comes by default with Nginx 1.2 which is already quite old. In my case I needed some features that were only available above 1.3.3 – the latest version is currently 1.7.2. To install it you have to add this repo: echo "deb http://dotdeb.netmirror.org/ stable all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://dotdeb.netmirror.org/ stable all" >> /etc/apt/sources.list.d/dotdeb.list Add […]

Segmentation Fault using Zend Server with SSL and Curl

Using the apache module mod_ssl and the php extension curl may result in apache not running. Usually there's something like this in the logs: seg fault or similar nasty error detected in the parent process It took me quite a while to figure out how to get this working nevertheless, perhaps I can save someone else's time!! […]