fcgi-php-apache2 kombón domain törlése

#!/bin/bash
userdel -r -f $1
groupdel $1
a2dissite $1.$2.conf
rm /etc/apache2/sites-available/$1.$2.conf
rm /etc/php5/fpm/pool.d/$1.$2.conf
rm -rf /home/$1

systemctl restart php5-fpm.service
service apache2 restart

Szólj hozzá!