-
Notifications
You must be signed in to change notification settings - Fork 35
Uninstall
What!? you really want to uninstall OpenNetAdmin? Well ok, sorry it didn't work out for you. If you are inclined to, email us at feedback@opennetadmin.com and tell us why it didn't work out for you. If you are simply needing to move it to another server then hey, we'll help you out there too!
The process of removing ONA is fairly simple. It consists of removing the database tables and the application code.
Since mysql is the default install option then the following is how one would remove the mysql table data.
Log into your mysql database as an administrator who can drop databases.
mysql> SHOW DATABASES;
+-------------+
| Databases |
+-------------+
| oan_default |
| mysql |
| test |
+-------------+
You should see your ONA instance(s) listed there. By default it should be oan_default
.
Then drop the data as follows:
mysql> drop database ona_default;
Once the database has been removed, you need to remove the application files themselves. The goal is that most, if not all data is located in /opt/ona. Simply remove this directory. There are a few other things like the ona.log
file and possibly dcm.pl
if you have installed them to somewhere other than /opt/ona
.
rm -rf /opt/ona
rm /var/log/ona.log
You should also remove any apache configuration for the vhost or directory path. This task depends on how you installed your system but if you followed the basic installation instructions here then you should be able to perform the following tasks.
- If you created a symlink in your web server root, then simply remove it using
rm /var/www/ona
assuming your apache root is/var/www
. - If you added a directory or vhost statement to your apache configuration, simply remove the following statements. NOTE This configuration block was in our installation instructions and may not be exactly what you used.
Alias /ona "/opt/ona/www/" <Directory "/opt/ona/www/"> Options Indexes MultiViews FollowSymLinks AllowOverride All Order allow,deny allow from all </Directory>