Page 1 of 1

Deleting Web-apps

Posted: Sun Feb 13, 2011 7:17 am
by bluegold92
Somehow my LAMP server has gotten a web-app out of sync. I apparently have some remnants of "Webchess" installed on my system, because it shows up in my HDA web-apps server list, but not in the "installed" list. Plus, if I then try to install "webchess," I get a 2nd instance of it at "webchess1" instead. I'd like to somehow delete all evidence of webchess and start over. Any ideas on how to do this?

Also, once I've installed a webapp, how do I access it from an external URL? I tried http://xxxx.yourhda.com/webchess, but that does not seem to work. I'm confused about how the URL scheme works for web-apps.

Re: Deleting Web-apps

Posted: Mon Feb 14, 2011 5:57 am
by bigfoot65
First, to remove any ghost web-apps, you must delete them manually. As root user, do the following:

cd /var/hda/web-apps
rm -rf webchess (or whatever app you are trying to remove)

Next cd /etc/httpd/conf.d
rm -rf ####-webchess.conf (or whatever app you are trying to remove)

Remember, this is ONLY for apps that do not appear in the dashboard as Installed. This is the brute force way to remove them and can cause issues if used for apps listed as Installed.

Finally, you will need to use an app like Adminer or phpMyAdmin to check that there is no database still installed. If you find one, remove it. Again, this is the brute force method and should NOT be done for anything that is listed in the apps tab as Installed.

For accessing apps by external URL, do you mean outside your LAN? If so, see the wiki for guidance. You will need to forward a port on your router and make some modification to your .conf files. You could use Web-Apps Proxy and avoid modifying the .conf files as will do it for you.

Hope this helps.

Re: Deleting Web-apps

Posted: Mon Feb 14, 2011 6:35 am
by bluegold92
cd /var/hda/web-apps
rm -rf webchess (or whatever app you are trying to remove)

Next cd /etc/httpd/conf.d
rm -rf ####-webchess.conf (or whatever app you are trying to remove)
Thanks - step 2 is the key. I had done step 1, and the LAMP server would not start because it doesn't find the files specified in the .conf.
Finally, you will need to use an app like Adminer or phpMyAdmin to check that there is no database still installed. If you find one, remove it. Again, this is the brute force method and should NOT be done for anything that is listed in the apps tab as Installed.
I tried this:

Code: Select all

mysqladmin drop webchess -u webchess -pwebchess
but I don't have the necessary password. What is the MySql database username and password so that I can delete the webchess database?

Finally - is it advisable to enable this for WAN access? The idea is to allow friends from outside my LAN to access the server, but of course this would expose my server to the Internet, and I have no idea how well locked down it is.