#!/bin/bash

# Deactivates PrivateTmp for Apache to let PHP use the correct /tmp directory

sed -i 's/PrivateTmp=true/PrivateTmp=false/g' /etc/systemd/system/apache*
systemctl daemon-reload
/etc/init.d/apache2 restart