Install GPMDP using Ansible

Just a quick playbook to install/update GPMDP using Ansible.

 

NextCloud install on Apache/2.4.18 php7.0-fpm ERR_TOO_MANY_REDIRECTS

I was confronted with an ERR_TOO_MANY_REDIRECTS when installing NextCloud on my Apache/2.4.18 php7.0-fpm setup.

It took some searching but this fix was so unbelievably easy thanks to this guy.

http://serverfault.com/questions/263589/how-to-fix-script-name-with-php-fpm-and-apaches-mod-fastcgi#423965

So basically modifying:

To:

And/etc/php/7.0/fpm/php.ini, restarting apache2 & php7.0-fpm made my day.

 

Ubuntu 16.04 virt-manager over X11

Had a little trouble accessing virt-manager or firefox over SSH with X11 forwarding from my headless Ubuntu 16.04 KVM server to my Windows 7 work-laptop with Cygwin.

It kept giving me this error:

Installing libglu1-mesa fixed it for me.

 

Proxmox 4 pve-no-subscription

Proxmox 4

Proxmox is a fine open-source product and version 4 is recently it’s newest version.

If you’re using Proxmox in a production set-up consider purchasing a Subscription at: http://proxmox.com/en/proxmox-ve/pricing.

If you’re only using it personally like I do I’d like to get rid of alle annoyances like not being able to update/upgrade and the pop-up once you log-in.

Pop-up

After installing Proxmox 4 you’ll probably encounter a popup with the following:

You do not have a valid subscription for this server. Please visit www.proxmox.com to get a list of available options.

If you don’t have a subscription this pop-up can be quite annoying so here’s how to remove it.

PVE No Subscription list

Having removed this pop-up won’t mean you can upgrade your PVE instance.

Here’s how to use the PVE No Subscription list:

Now apply those upgrades

 

CentOS 7 install ReaR

Install Relax-and-Recover on CentOS 7

Add EPEL repository

Install ReaR

Plesk 12 list all domains’ PHP handler ID’s and PHP versions

Plesk 12 doesn’t facilitate a way to show all domains and their PHP handler and versions, thus a SQL query combined with soms awk magic does the trick.

mysql -uadmin -p$(cat /etc/psa/.psa.shadow) psa -e "select dom_id,www_root,php_handler_id,php from hosting;" | while read HOSTING; do DOMAIN=$(echo ${HOSTING} | awk '{print $2}' | awk -F'/' '{print $5}'); HANDLERID=$(echo ${HOSTING} | awk '{print $3}'); PHPVERSION=$(/usr/local/psa/bin/php_handler --list | grep ${HANDLERID} | awk "{if (\$1 == \"${HANDLERID}\") {print \$3}}"); echo "${DOMAIN} - ${HANDLERID} - ${PHPVERSION}"; done

Install Gitlab on OpenVZ CentOS 7 container

I’m a fan of Git and Gitlab but Gitlab was a bit difficult to install earlier because it involved compiling from source and such.

Nowadays there is a nice script you can run to install the whole kaboozle.

https://about.gitlab.com/downloads/

(When you select your distribution of choice, in my case this moment: CentOS 7, you’ll see the simple beauty of it all).

The only thing I ran into when I wanted to install the package on a CentOS 7 OpenVZ Template was that there were some dependencies missing which you’ll find on a proper minimal install of CentOS 7 but not on the OpenVZ Template.

After this I could run the gitlab-ctl reconfigure command and enjoy the Gitlab server.