Current File : //root/panel/modules/apache_admin/code/apacheconfigrebuild.sh
HostName=$1
date=`date +"%Y-%m-%d_%H-%M-%S"`
mkdir -p /backup/Domainconfig

`mv -f /etc/sentora/configs/apache/domains/$HostName.conf /backup/Domainconfig/$HostName.conf_$date`
`/usr/bin/setso --set apache_changed true`
php_service=`whereis php | awk '{print $2}'`
$php_service /etc/sentora/panel/bin/daemon.php