Is there a way to put offline osTicket from linux terminal? Thanks
linux terminal and offline osticket
if you want to 'turn off' osticket, it depends on what you're using. I use Apache2. So for me, I would a2dissite osticket.conf
and then systemctl reload apache2
, you would replace 'osticket.conf' with whatever .conf is for your site. To reenable, you can a2ensite osticket.conf
and then systemctl reload apache2
. again, this assumes you're using Apache2
from a linux command prompt... You would need to invoke the MySQL command prompt, select the database, and then change the setting.
mysql -u username -p
Connect <databasename>;
UPDATE ost_config SET value='0' WHERE namespace='core' AND key='isonline';
To change it back later... change the 0 to 1.
Thanks, I received this error:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'key='isonline'' at line 1
You might have to escape key.
UPDATE ost_config SET value='0' WHERE namespace='core' AND `key`='isonline';
Thanks
Very welcome.