Directadmin: Cannot find the script

I was having some problems on different servers when i tried to reload a service.

It was displaying “Cannot find the script” for all services

This probably started when we upgraded to CB 2.0….

Anyhow you can fix this by editing the “/usr/local/directadmin/conf/directadmin.conf” and change/add the following value to: systemd=1

Reload DirectAdmin afterwords and you should be able to restart services from directadmin again.

 

How to install/repair Installatron

This is how to install Installatron on a Centos server:

wget http://data.installatron.com/installatron-plugin.sh
chmod +x installatron-plugin.sh
./installatron-plugin.sh -f

 

If the normal install gets stuck, or your current installation is broken, try this full repair command:

rm -fr /usr/local/installatron/lib /usr/local/installatron/etc/php.ini 
curl -O http://data.installatron.com/installatron-plugin.sh 
chmod 755 installatron-plugin.sh 
./installatron-plugin.sh -f --stable 
rm -f /var/installatron/data.db /var/installatron/data.db-* 
/usr/local/installatron/installatron --repair --recache 
/usr/local/installatron/installatron --send-update-report