HOW TO GET RID OF PHOTO ORGANIZER
Preparation
To uninstall the system perform the following steps (the order does not matter):
- Remove the Photo Organizer PHP files.
- Remove the Photo Organizer Image Repository.
- Drop Photo Organizer's PostgreSQL database and database user.
Remove the PHP files
Locate the Photo Organizer php files (which should be located in the HTTP server's
document root directory). As root, remove all files with the following command:
[root@everest ~]$ cd /var/www/html/po
[root@everest po]$ pwd
/var/www/html/po
[root@everest po]$ rm -rf *
|
Remove the Photo Organizer Image Repository
Locate the Photo Organizer image repository. As root, remove all files with the following command:
[root@everest ~]$ cd /export/my.repository
[root@everest my.repository]$ rm -rf *
|
Drop Photo Organizer's PostgreSQL database and database user
First list all databases and their users:
[balint@everest ~]$ psql -l
List of databases
Name | Owner | Encoding
-------------+--------------+-----------
po_database | po_user | SQL_ASCII
template0 | pg_superuser | SQL_ASCII
template1 | pg_superuser | SQL_ASCII
(3 rows)
|
Remove first the database, than the database user. The order does matter here because
the database user cannot be removed as long there are databases created by that user.
[balint@everest ~]$ dropdb -U po_user po_database
DROP DATABASE
[balint@everest ~]$ dropuser -U pg_superuser po_user
DROP USER
[balint@everest ~]$
|
You can check that your database was removed with the same command used
above to list the databases:
[balint@everest ~]$ psql -l
List of databases
Name | Owner | Encoding
-------------+--------------+-----------
template0 | pg_superuser | SQL_ASCII
template1 | pg_superuser | SQL_ASCII
(2 rows)
|
|